Skip to content
Snippets Groups Projects
Commit 2a651c90 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Update in vars

Unpacking `old_node` from GSO for convinience.
parent 1dbfa7fb
No related branches found
No related tags found
1 merge request!111deactivate_trunk_side: module update
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
mode: '0755' mode: '0755'
delegate_to: localhost delegate_to: localhost
- name: Print template for the old node "{{ old_node_fqdn }}" in "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf" - name: Print template for the old node "{{ old_node.fqdn }}" in "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
ansible.builtin.template: ansible.builtin.template:
src: "{{ old_node_vendor }}/{{ config_object }}.j2" src: "{{ old_node.vendor }}/{{ config_object }}.j2"
dest: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf" dest: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
lstrip_blocks: true lstrip_blocks: true
trim_blocks: true trim_blocks: true
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
- name: The old node is - name: The old node is
ansible.builtin.debug: ansible.builtin.debug:
msg: "{{ old_node }}" msg: "{{ old_node.fqdn }}"
- name: The new node is - name: The new node is
ansible.builtin.debug: ansible.builtin.debug:
......
...@@ -21,7 +21,9 @@ side_a_ipv6_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv6_network | ansible.utils. ...@@ -21,7 +21,9 @@ side_a_ipv6_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv6_network | ansible.utils.
side_b_ipv4_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv4_network | ansible.utils.ipaddr('net') | ansible.utils.ipaddr('1') | ansible.utils.ipaddr('address') }}/31" side_b_ipv4_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv4_network | ansible.utils.ipaddr('net') | ansible.utils.ipaddr('1') | ansible.utils.ipaddr('address') }}/31"
side_b_ipv6_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv6_network | ansible.utils.ipaddr('net') | ansible.utils.ipaddr('2') | ansible.utils.ipaddr('address') }}/126" side_b_ipv6_address: "{{ wfo_trunk.iptrunk.iptrunk_ipv6_network | ansible.utils.ipaddr('net') | ansible.utils.ipaddr('2') | ansible.utils.ipaddr('address') }}/126"
old_node: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.router_fqdn }}" old_node:
fqdn: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.router_fqdn }}"
vendor: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.vendor }}"
new_side: new_side:
id: "{{ wfo_trunk.iptrunk.geant_s_sid }}" id: "{{ wfo_trunk.iptrunk.geant_s_sid }}"
...@@ -35,5 +37,5 @@ new_side: ...@@ -35,5 +37,5 @@ new_side:
loopback: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.router_lo_ipv4_address }}" loopback: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.router_lo_ipv4_address }}"
ae_name: "{{ new_lag_interface }}" ae_name: "{{ new_lag_interface }}"
members: "{{ new_lag_member_interfaces }}" members: "{{ new_lag_member_interfaces }}"
members_descriptions: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_ae_members_description }}" # members_descriptions: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_ae_members_description }}"
port_sid: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_ae_geant_a_sid }}" port_sid: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_ae_geant_a_sid }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment