New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix nxos_snmp_traps issues #39444
fix nxos_snmp_traps issues #39444
Conversation
The test
|
|
||
always: | ||
- name: Cleanup | ||
nxos_snmp_traps: *remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saichint The PR looks good, Any chance that nxapi might fail for *remove
and require ignore_errors: yes
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trishnaguha It is fine without ignore_errors: yes. This is because when try to disable a trap, the code basically checks that, if the existing state for that trap is in enabled state or not and only runs the 'no' cmd, if it is already in enabled state. So there is no issue here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. will merge the PR.
cherry-picked to 2.5 |
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore (cherry picked from commit 99748cb)
* Handle nxos_feature issue where json isn't supported (#39150) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 9eff1f1) * Integration Tests only: nxos_snmp_contact (#39318) * add integration test cases for snmp_contact * removing unnecessary files (cherry picked from commit bdb75cd) * fix nxos_ntp issues (#39178) * fix nxos_ntp issues * review comments * fix idempotent fail case (cherry picked from commit 2f99a17) * nxos_interface: AttributeError: 'NoneType' object has no attribute 'group' (#38544) This fixes an issue we recently encounteredi with nxos_interface: ``` Traceback (most recent call last): File "/tmp/ansible_JmLoba/ansible_module_nxos_interface.py", line 777, in main have = map_config_to_obj(want, module) File "/tmp/ansible_JmLoba/ansible_module_nxos_interface.py", line 606, in map_config_to_obj obj['speed'] = re.search(r'speed (\d+)', body).group(1) AttributeError: 'NoneType' object has no attribute 'group' ``` (cherry picked from commit dca6e2d) * fix nxos_snmp_community issues (#39258) (cherry picked from commit 1afec5a) * Add aggregate example in nxos_l2_interface module doc (#39275) Signed-off-by: Trishna Guha <trishnaguha17@gmail.com> (cherry picked from commit 86817cd) * Fix misuse of 'self' in lib/ansible/module_utils/network/eos/eos.py. … (#39074) * Fix misuse of 'self' in lib/ansible/module_utils/network/eos/eos.py. Method load_config * Fix all instances of self.config(self,... (cherry picked from commit 80d7e22) * Fix for nxos_snmp_host issues (#39642) * fix snmp_host issues * source files * fix shippable * remove defaults to match arg spec (cherry picked from commit f99bae1) * fix nxos_snmp_traps issues (#39444) * fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore (cherry picked from commit 99748cb) * changelog Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
* fix snmp_traps code * add IT cases * fix shippable * fix shippable without ignore
SUMMARY
fixes #39443
ISSUE TYPE
COMPONENT NAME
nxos_snmp_traps
ANSIBLE VERSION
ADDITIONAL INFORMATION