diff --git a/geant/gap_ansible/roles/iptrunk_migration/tasks/compile_template.yaml b/geant/gap_ansible/roles/iptrunk_migration/tasks/compile_template.yaml index 0d645ce6f3de67f19ada01b28c2be34326815f72..da370805d4f18cdf6f6c4241d59b1a3762bdd53a 100644 --- a/geant/gap_ansible/roles/iptrunk_migration/tasks/compile_template.yaml +++ b/geant/gap_ansible/roles/iptrunk_migration/tasks/compile_template.yaml @@ -20,9 +20,9 @@ mode: '0755' 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: - src: "{{ old_node_vendor }}/{{ config_object }}.j2" + src: "{{ old_node.vendor }}/{{ config_object }}.j2" dest: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf" lstrip_blocks: true trim_blocks: true diff --git a/geant/gap_ansible/roles/iptrunk_migration/tasks/main.yml b/geant/gap_ansible/roles/iptrunk_migration/tasks/main.yml index 6de46b5a2abd16c310732f7d6eb94c65f2c545e1..2d3c1b95f26803cc5fb4ec5472210978baa451df 100644 --- a/geant/gap_ansible/roles/iptrunk_migration/tasks/main.yml +++ b/geant/gap_ansible/roles/iptrunk_migration/tasks/main.yml @@ -23,7 +23,7 @@ - name: The old node is ansible.builtin.debug: - msg: "{{ old_node }}" + msg: "{{ old_node.fqdn }}" - name: The new node is ansible.builtin.debug: diff --git a/geant/gap_ansible/roles/iptrunk_migration/vars/main.yml b/geant/gap_ansible/roles/iptrunk_migration/vars/main.yml index 2abc10e4d3d284aeac6830cc7cf03cd7ee9c49a2..2fdb32327f536e06cf27e069098ef302c4a20c5a 100644 --- a/geant/gap_ansible/roles/iptrunk_migration/vars/main.yml +++ b/geant/gap_ansible/roles/iptrunk_migration/vars/main.yml @@ -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_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: id: "{{ wfo_trunk.iptrunk.geant_s_sid }}" @@ -35,5 +37,5 @@ new_side: loopback: "{{ wfo_trunk.iptrunk.iptrunk_sides[replace_index | int].iptrunk_side_node.router_lo_ipv4_address }}" ae_name: "{{ new_lag_interface }}" 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 }}"