April 2020
Intermediate to advanced
482 pages
15h 16m
English
$ cat cat pb_napalm_get_facts.yml---- name: " Collect Network Facts using NAPALM" hosts: sp_core tasks: - name: "P1T1: Collect NAPALM Facts" napalm_get_facts: hostname: "{{ ansible_host }}" username: "{{ ansible_user }}" password: "{{ ansible_ssh_pass }}" dev_os: "{{ ansible_network_os }}" filter: - bgp_neighbors
$ cat pb_napalm_get_facts.yml< -- Output Omitted for brevity -->- name: Validate All BGP Routers ID is correct assert: that: napalm_bgp_neighbors.global.router_id == lo_ip[inventory_hostname].split('/')[0] when: napalm_bgp_neighbors ...Read now
Unlock full access