Skip to content

Instantly share code, notes, and snippets.

@NilashishC
Created April 27, 2021 11:10
Show Gist options
  • Select an option

  • Save NilashishC/3e9806344ca3bd3aead63234bf5e360d to your computer and use it in GitHub Desktop.

Select an option

Save NilashishC/3e9806344ca3bd3aead63234bf5e360d to your computer and use it in GitHub Desktop.
- name: Gather current route-map configuration from the device
cisco.nxos.nxos_route_maps:
state: gathered
register: result
- name: Find out diff between intended and current route-map configuration
ansible.utils.fact_diff:
before: "{{ route_maps|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