mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
nxos_snmp_traps: fix 'group: all' for N35 platforms (#55995)
* nxos_snmp_traps: fix 'group: all' for N35 platforms - `group: all` attempts to enable traps for all features defined in the module's `feature_list` - `N35` platforms do not support `snmp-server enable traps bfd`; so removing `bfd` from the `feature_list` for that platform - Minor cleanup in `sanity.yaml` test file * whitespace lint fix
This commit is contained in:
committed by
Trishna Guha
parent
d39be3d3e0
commit
0e0c2a7db7
@@ -5,14 +5,14 @@
|
||||
|
||||
- name: Setup - Remove snmp_traps if configured
|
||||
nxos_snmp_traps: &remove
|
||||
group: all
|
||||
group: all
|
||||
provider: "{{ connection }}"
|
||||
state: disabled
|
||||
|
||||
- block:
|
||||
- name: Configure one snmp trap group
|
||||
- name: Configure one snmp trap group
|
||||
nxos_snmp_traps: &config
|
||||
group: bridge
|
||||
group: bridge
|
||||
provider: "{{ connection }}"
|
||||
state: enabled
|
||||
register: result
|
||||
@@ -60,10 +60,9 @@
|
||||
- name: Idempotence Check
|
||||
nxos_snmp_traps: *config1
|
||||
register: result
|
||||
when: imagetag is not search("I2|I7|D1")
|
||||
|
||||
- assert: *false
|
||||
when: imagetag is not search("I2|I7|D1")
|
||||
when: imagetag is not search("I2|I7|D1")
|
||||
|
||||
- name: Cleanup
|
||||
nxos_snmp_traps: *remove
|
||||
|
||||
Reference in New Issue
Block a user