community.general/lib/ansible/modules/network/nxos
Chris Van Heuveln 7b44bc1ac9 nxos_static_route: reconcile_candidate fails to remove 'track' routes (#53806)
* * `reconcile_candidate()`
  * old code searched the ip route configs for a given prefix+nexthop and then tried to remove the route based on prefix+nexthop only; this would fail when a static route was configured with `track` values.
  * new code still looks for prefix+nexthop but uses the route config it finds on the device to remove it; e.g.
    * search for: `ip route 192.168.20.64/24 192.0.2.3`
    * find:       `ip route 192.168.20.64/24 192.0.2.3 track 1 10`
    * remove:  `no ip route 192.168.20.64/24 192.0.2.3 track 1 10`

* logic cleanups:
  * old code did a `show run` for every prefix. This can be a lot of data when there are large configs.
  * new code uses filters to only return the static route configs.
  * The filters now allow a common code path so no need for default vs vrf code paths

* `sanity` test: 100% Pass rate on N9K,N7K,N6K,N3K

- Bugfix Pull Request

`nxos_static_route`

* filter() does not return a list with python3

`filter()` was breaking pytest when it ran with python3, since it returns
an iterable instead of a list with python3.

Found that I didn't really need `filter()` anyway so just removed it

* restore var names /w/want/
2019-03-21 18:52:46 +05:30
..
__init__.py
_nxos_ip_interface.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
_nxos_mtu.py
_nxos_portchannel.py
_nxos_switchport.py
nxos_aaa_server.py
nxos_aaa_server_host.py Update nxos_aaa_server_host.py (#49635) 2019-01-21 10:47:51 -05:00
nxos_acl.py
nxos_acl_interface.py
nxos_banner.py
nxos_bgp.py
nxos_bgp_af.py
nxos_bgp_neighbor.py
nxos_bgp_neighbor_af.py
nxos_command.py added timestamps to nxos_command module (#50261) 2019-01-17 10:14:31 +05:30
nxos_config.py Add more return values to *_config modules (#50702) 2019-01-28 20:49:56 +05:30
nxos_evpn_global.py
nxos_evpn_vni.py Fix pycodestyle E117 issues. 2019-02-13 23:35:39 -08:00
nxos_facts.py nxos_facts fix default udpate platform facts (#53795) 2019-03-14 15:02:21 +05:30
nxos_feature.py
nxos_file_copy.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_gir.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_gir_profile_management.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_hsrp.py Fix typo 2019-03-12 13:34:52 +01:00
nxos_igmp.py
nxos_igmp_interface.py nxos_igmp_interface: argument_spec for oif_ps breaks when 'default' (#53136) 2019-03-11 10:28:29 +05:30
nxos_igmp_snooping.py nxos_igmp_snooping: more group-timeout fixes (#53553) 2019-03-20 13:08:36 +05:30
nxos_install_os.py Fix regular expression for timeout (#53994) 2019-03-20 13:02:11 +05:30
nxos_interface.py
nxos_interface_ospf.py
nxos_l2_interface.py
nxos_l3_interface.py
nxos_linkagg.py nxos_linkagg: `group` type mismatch causes idempotency failure (#53653) 2019-03-13 09:44:00 +05:30
nxos_lldp.py
nxos_logging.py Module nxos logging fixes (#52883) 2019-03-06 13:55:03 -05:00
nxos_ntp.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_ntp_auth.py
nxos_ntp_options.py
nxos_nxapi.py
nxos_ospf.py
nxos_ospf_vrf.py
nxos_overlay_global.py
nxos_pim.py
nxos_pim_interface.py Sanity fixes to parameter types (#52325) 2019-02-15 16:58:58 +01:00
nxos_pim_rp_address.py
nxos_ping.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_reboot.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_rollback.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_rpm.py
nxos_smu.py
nxos_snapshot.py Assorted pylint fixes 2019-02-15 06:54:47 -08:00
nxos_snmp_community.py
nxos_snmp_contact.py
nxos_snmp_host.py
nxos_snmp_location.py
nxos_snmp_traps.py
nxos_snmp_user.py
nxos_static_route.py nxos_static_route: reconcile_candidate fails to remove 'track' routes (#53806) 2019-03-21 18:52:46 +05:30
nxos_system.py
nxos_udld.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_udld_interface.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_user.py nxos_user: fails to remove usernames with embedded '\' (#53149) 2019-03-07 18:45:26 +05:30
nxos_vlan.py Removes superfluous commands nxos_vlan (#51796) 2019-02-08 11:10:45 +05:30
nxos_vpc.py Fix module issues (#52209) 2019-02-15 12:57:20 +01:00
nxos_vpc_interface.py
nxos_vrf.py Fix module issues (#52209) 2019-02-15 12:57:20 +01:00
nxos_vrf_af.py Remove deprecated options from modules (#50246) 2019-01-22 09:18:26 -05:00
nxos_vrf_interface.py
nxos_vrrp.py
nxos_vtp_domain.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_vtp_password.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_vtp_version.py Convert to reduced list of known types (#50010) 2018-12-19 07:25:30 +10:00
nxos_vxlan_vtep.py nxos_vxlan_vtep: Add dependency checks (#53288) 2019-03-08 10:33:54 +05:30
nxos_vxlan_vtep_vni.py