1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/integration
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
..
host_vars Simplify Windows versions in ansible-test. 2018-01-17 16:16:15 -08:00
targets nxos_static_route: reconcile_candidate fails to remove 'track' routes (#53806) 2019-03-21 18:52:46 +05:30
cloud-config-aws.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-azure.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-cloudscale.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-cs.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-gcp.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-gitlab.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-hcloud.ini.template Add hcloud server module (#53062) 2019-03-05 07:30:24 +01:00
cloud-config-opennebula.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-openshift.kubeconfig.template Initial OpenShift integration test support. (#36207) 2018-02-14 13:39:42 -08:00
cloud-config-tower.ini.template Overhaul ansible-test cloud test plugins. (#53044) 2019-02-28 18:25:49 -08:00
cloud-config-vultr.ini.template tests: vultr: convert legacy tests to targets (#50156) 2019-01-07 22:23:54 +01:00
integration.cfg Enable force_handlers for integration tests. 2019-01-25 08:51:57 -08:00
integration_config.yml Fix pip integration test. 2018-01-31 23:26:16 -08:00
inventory Overhaul ansible-test code coverage and injector. (#53510) 2019-03-13 07:14:12 -07:00
inventory.networking.template Rename MSC modules to MSO nomenclature (#50959) 2019-01-16 14:53:38 +01:00
inventory.remote.template Add support for OS X CI on Shippable. (#17160) 2016-08-23 10:49:46 -07:00
inventory.winrm.template Cleanup integration test inventory. (#50753) 2019-01-10 14:45:12 -08:00
network-integration.cfg Enable force_handlers for integration tests. 2019-01-25 08:51:57 -08:00
target-prefixes.network Rename MSC modules to MSO nomenclature (#50959) 2019-01-16 14:53:38 +01:00
windows-integration.cfg Enable force_handlers for integration tests. 2019-01-25 08:51:57 -08:00