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

iptrunks_migration: netconf_access

Correctly set `ansible_connection` and `ansible_network_os` for Nokia when deploying and the target is not connected via TS.
parent 7cbbba89
No related branches found
No related tags found
1 merge request!116Cleanup
Pipeline #85880 failed
...@@ -45,10 +45,16 @@ ...@@ -45,10 +45,16 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
ansible_host: "{{ new_node.router.router_site.site_ts_address }}" ansible_host: "{{ new_node.router.router_site.site_ts_address }}"
ansible_port: "{{ new_node.router.router_ts_port }}" ansible_port: "{{ new_node.router.router_ts_port }}"
when:
verb == "deploy" and ( new_node.router.router_access_via_ts | ansible.builtin.bool ) is true
# TODO: set ansible_connection / ansible_network_os when not TS
- name: Set connection and host OS
ansible.builtin.set_fact:
ansible_connection: "{{ netconf_access[new_node.router.vendor].ansible_connection }}" ansible_connection: "{{ netconf_access[new_node.router.vendor].ansible_connection }}"
ansible_network_os: "{{ netconf_access[new_node.router.vendor].ansible_network_os }}" ansible_network_os: "{{ netconf_access[new_node.router.vendor].ansible_network_os }}"
when: when:
verb == "deploy" and ( new_node.router.router_access_via_ts | ansible.builtin.bool ) is true verb == "deploy"
- name: Print the ID - name: Print the ID
ansible.builtin.debug: ansible.builtin.debug:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment