community.general/lib/ansible/modules/network
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
..
a10
aci fixed docbuild errors (#54061) 2019-03-20 11:23:06 -05:00
aireos
aos
aruba
asa
avi Avi: Fixed import issues (#52661) 2019-03-06 12:09:49 -05:00
bigswitch
checkpoint
citrix
cli
cloudengine
cloudvision
cnos Lenovo cnos system module (#53764) 2019-03-20 08:50:45 -04:00
cumulus
dellos6
dellos9
dellos10
edgeos
edgeswitch
enos
eos New module for BGP configuration management in Arista EOS (#52722) 2019-03-12 17:31:58 +05:30
exos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
f5 removes redundant functions (#53989) 2019-03-20 14:44:41 +00:00
files
fortimanager FortiManager Plugin Module Conversion: fmgr_ha (#52768) 2019-03-07 12:31:17 +05:30
fortios Fortinet's FortiOS voip profile (#52833) 2019-03-13 13:07:19 +05:30
frr Update frr_facts (#53439) 2019-03-11 10:55:09 +05:30
ftd
illumos
ingate
interface
ios Add platform facts in network facts modules (#51434) 2019-03-11 10:56:39 +05:30
iosxr New module for BGP configuration management in iosxr (#53121) 2019-03-12 17:47:40 +05:30
ironware Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
itential itential iap_start_workflow module (#51238) 2019-03-07 13:23:40 -05:00
junos junos_user add condition when user = root (#53111) 2019-03-14 23:04:47 +05:30
layer2
layer3
meraki Parameter change from orgAccess to org_access (#53574) 2019-03-16 03:12:12 +01:00
netact
netconf
netscaler
netvisor Pluribus Networks network cli terminal and cliconf plugins (#53735) 2019-03-15 13:51:50 +05:30
nos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
nso nso documentation fixes (#53478) 2019-03-11 14:23:19 -05:00
nuage
nxos nxos_static_route: reconcile_candidate fails to remove 'track' routes (#53806) 2019-03-21 18:52:46 +05:30
onyx
opx opx_cps_changes (#51952) 2019-03-07 03:41:36 -05:00
ordnance
ovs
panos
protocol
radware
restconf Add missing RETURN to restconf_config (#53324) 2019-03-05 08:53:23 -05:00
routeros
routing
skydive PR to include support for Skydive Node and Edge modules with Ansible (#53112) 2019-03-13 16:22:31 +05:30
slxos Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
sros
system
voss Update slxos_vlan for new SLX-OS versions, linting fixes (#52956) 2019-03-15 08:55:50 +00:00
vyos Add platform facts in network facts modules (#51434) 2019-03-11 10:56:39 +05:30
__init__.py