You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration
Chris Van Heuveln 1554befd95 nxos_vpc:Fix multiple idempotency issues, add missing commands (#55735)
* nxos_vpc:Fix idempotency issues with multiple attributes

Several attributes were causing idempotency problems on various platforms:

- `auto_recovery`
 - This command can be disabled on certain platforms and will nvgen as `no auto-recovery`
 - When enabled it has an additional optional-keyword for changing the `reload-delay` timer value
  - This was addressed by adding a new attribute `auto_recovery_reload_delay` to handle setting the timer value
  - This new attribute is mutually exclusive with `auto_recovery`

- `/show run vpc/show run vpc all/`
 - Changed the command that gets state to `all` so that it could differentiate between `auto-recovery` and `auto-recovery reload-delay`
 - This change resulted in also changing some attribute handling withing `get_vpc`, since some attributes like `peer_gw` relied on presence of the config to determine state true or false. With `all` the config is always there so these attrs must specifically check for `'no '` in the string.

- `delay_restore`
 - This command has two additional, optional keywords that exist on some platforms and not others.
 - New attrs:
  - `delay_restore_interface_vlan`
  - `delay_restore_orphan_port`

- Modified the `sanity` test to include the new attributes and to fix the platform issues.

- Bugfix Pull Request

`modules/network/nxos/nxos_vpc.py`

- Validated `nxos_vpc` `sanity` test on these platforms, all are now 100% Pass: N35, N3K, N3K-F, N6K, N7K, N9K, N9K-F

- TBD: Future work is needed to add support for `peer_gw_exclude_gw` timers. This could be addressed in the same way as the `auto_recovery_reload_delay` changes included here.

* lint fix

* Add 'version_added' tags for new options
6 years ago
..
host_vars ansible-test: Use psrp for 2008 host ci_complete (#55273) 6 years ago
targets nxos_vpc:Fix multiple idempotency issues, add missing commands (#55735) 6 years ago
cloud-config-aws.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-azure.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-cloudscale.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-cs.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-gcp.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-gitlab.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-hcloud.ini.template Add Hetzner Cloud to CI integration tests. 6 years ago
cloud-config-hwc.yml.template cloud: huawei: Add new module hwc_network_vpc (#54102) 6 years ago
cloud-config-opennebula.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-openshift.kubeconfig.template Initial OpenShift integration test support. (#36207) 7 years ago
cloud-config-scaleway.ini.template Migrate Scaleway tests to integration tests 6 years ago
cloud-config-tower.ini.template Overhaul ansible-test cloud test plugins. (#53044) 6 years ago
cloud-config-vultr.ini.template tests: vultr: convert legacy tests to targets (#50156) 6 years ago
integration.cfg Force tests to set ansible_python_interpreter. (#54191) 6 years ago
integration_config.yml Fix pip integration test. 7 years ago
inventory Overhaul ansible-test code coverage and injector. (#53510) 6 years ago
inventory.networking.template Rename MSC modules to MSO nomenclature (#50959) 6 years ago
inventory.remote.template Add support for OS X CI on Shippable. (#17160) 8 years ago
inventory.winrm.template Cleanup integration test inventory. (#50753) 6 years ago
network-integration.cfg Use stdout_callback yaml for network-integration tests (#56102) 6 years ago
target-prefixes.network Rename MSC modules to MSO nomenclature (#50959) 6 years ago
windows-integration.cfg Enable force_handlers for integration tests. 6 years ago