community.general/lib/ansible/modules
Chris Van Heuveln 8c56c116e5 nxos_snmp_user: platform fixes for get_snmp_user (#55832)
* nxos_snmp_user: platform fixes for get_snmp_user

snmp user output behavior varies quite a bit for the different nxos platforms and required several workarounds:

- N5K/N6k
 - These platforms do not support structured output for `show snmp user`.
 - The current code lands in an `except` clause when the output is not structured; so I added a new `get_non_structured_snmp_user` method to scrape the state from the regular cli output if it's present.

- N9K-F
 - The `group` data in the JSON output is different for this platform; it has a different key (just `group` instead of `TABLE_groups` or `group_names`) and it is not indexed
 - For a single group the value is a string, for multiple groups it's a list

- sanity
 - N5K/N6K/N9K-F platforms will reject `no snmp user <name> <role>` when it's the last role defined for the user.
 - workaround is to use `nxos_user` to remove the user

- Changes validated on:
 - `N3K, N3K-F, N35, N6K, N7K, N9K, N9K-F`
 - `6.0(2)A8`
 - `7.0(3)I2, 7.0(3)I4, 7.0(3)I5, 7.0(3)I6, 7.0(3)I7`
 - `7.3(2)D1`
 - `7.3(3)N1, 7.3(4)N1`
 - `8.3(2)`
 - `9.2(2), 9.2(3)`

* fix lint warning
2019-05-10 13:10:49 +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_snmp_user: platform fixes for get_snmp_user (#55832) 2019-05-10 13:10:49 +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