community.general/lib/ansible/modules
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
2019-05-10 13:17:02 +05:30
..
cloud updated to describe required parameter (#56197) 2019-05-09 17:44:53 -05:00
clustering Update k8s_facts.py (#56193) 2019-05-08 11:36:10 +10:00
commands Updated playbook works sample. (#51673) 2019-03-11 17:12:05 -05:00
crypto Update openssl_privatekey.py (#55438) 2019-05-03 18:52:26 +01:00
database postgresql_table: added cascade option (#56068) 2019-05-07 16:08:03 +05:30
files remove deprecated get_md5 from stat (#55659) 2019-05-08 10:45:45 -04:00
identity New module: keycloak_group (#35637) 2019-04-10 15:58:20 -04:00
inventory utilities: Clean up parameter types and add seealso (#53063) 2019-03-07 00:25:59 +01:00
messaging standardize TLS connection properties (#54315) 2019-03-28 00:19:28 -05:00
monitoring sensu_subscription very minor docstring typo (#55675) 2019-04-23 16:42:01 -05:00
net_tools Hetzner failover IP: refactoring (#56203) 2019-05-10 08:33:51 +02:00
network nxos_vpc:Fix multiple idempotency issues, add missing commands (#55735) 2019-05-10 13:17:02 +05:30
notification modules/notification/irc: Fix channel joining for some IRC servers. (#55444) 2019-04-17 18:55:43 -04:00
packaging package_facts: Trivial docs cleanup (#56015) 2019-05-06 09:59:14 -05:00
remote_management Add new command GetVolumeInventory / GetSessions / GetVirtualMedia (#55433) 2019-05-09 09:45:08 -04:00
source_control gitlab_group: doc: fix sample code that used 'parent_path' which does not exists (#56256) 2019-05-09 14:14:26 +02:00
storage na_ontap_qtree / na_ontap_gather_facts: qtree new params and modify operation / new subsets (#55825) 2019-05-07 14:32:27 -04:00
system sysctl will now return an error if the value is invalid (#55695) 2019-05-08 11:34:55 -04:00
utilities Update include_role description (#56001) 2019-05-06 16:17:50 -04:00
web_infrastructure Add missing roles to tower_role module (#56182) 2019-05-08 13:11:50 -04:00
windows win_acl - fix network path qualifier parsing (#55970) 2019-05-01 17:21:26 +10:00
__init__.py Re-adding the init py for modules 2016-12-08 11:35:20 -05:00