Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohitthakur2590/9ad74cb8fc1e7558b7d916856bbc4676 to your computer and use it in GitHub Desktop.
Save rohitthakur2590/9ad74cb8fc1e7558b7d916856bbc4676 to your computer and use it in GitHub Desktop.
Junos BGP address family fact diff
- name: Gather current BGP address family configuration from the device
junipernetworks.junos.junos_bgp_address_family:
state: gathered
register: result
- name: Find out diff between intended and current configuration
ansible.utils.fact_diff:
before: "{{ bgp_address_family|ansible.utils.to_paths }}"
after: "{{ result['gathered']|ansible.utils.to_paths }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment