From 5efbece8c3ad443360901a656a243b9f7315f7a0 Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <ak@geant.org> Date: Tue, 12 Nov 2024 10:51:47 +0000 Subject: [PATCH] iBGP-update: change ansible_connection selectors (vendor var) --- geant/gap_ansible/roles/ibgp_update/tasks/compile.yaml | 2 +- .../roles/ibgp_update/tasks/modify_router_list.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/geant/gap_ansible/roles/ibgp_update/tasks/compile.yaml b/geant/gap_ansible/roles/ibgp_update/tasks/compile.yaml index e393218b..538be40b 100644 --- a/geant/gap_ansible/roles/ibgp_update/tasks/compile.yaml +++ b/geant/gap_ansible/roles/ibgp_update/tasks/compile.yaml @@ -26,7 +26,7 @@ - name: Set back ansible_host to target terminal server ansible.builtin.set_fact: ansible_host: "{{ wfo_router.router.router_site.site_ts_address }}" - ansible_connection: "{{ netconf_access[wfo_router.router.vendor].ansible_connection }}" + ansible_connection: "{{ netconf_access[vendor].ansible_connection }}" when: wfo_router.router.router_access_via_ts is defined and ( wfo_router.router.router_access_via_ts | ansible.builtin.bool ) is true diff --git a/geant/gap_ansible/roles/ibgp_update/tasks/modify_router_list.yaml b/geant/gap_ansible/roles/ibgp_update/tasks/modify_router_list.yaml index bd6e905a..6edfd878 100644 --- a/geant/gap_ansible/roles/ibgp_update/tasks/modify_router_list.yaml +++ b/geant/gap_ansible/roles/ibgp_update/tasks/modify_router_list.yaml @@ -4,8 +4,8 @@ - name: Adjust network connection according to the vendor ansible.builtin.set_fact: - ansible_connection: "{{ netconf_access[wfo_router.router.vendor].ansible_connection }}" - ansible_network_os: "{{ netconf_access[wfo_router.router.vendor].ansible_network_os }}" + ansible_connection: "{{ netconf_access[vendor].ansible_connection }}" + ansible_network_os: "{{ netconf_access[vendor].ansible_network_os }}" - name: Include compile tasks ansible.builtin.include_tasks: compile.yaml -- GitLab