mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-21 07:40:22 -07:00
nxos_logging message fix (#49205)
* nxos_logging message fix * Remove rescue in block
This commit is contained in:
parent
dc871bd493
commit
374ca783bb
3 changed files with 28 additions and 9 deletions
|
@ -74,7 +74,7 @@ options:
|
|||
- Link/trunk enable/default interface configuration logging
|
||||
choices: ['link-enable', 'link-default', 'trunk-enable', 'trunk-default']
|
||||
version_added: '2.8'
|
||||
message:
|
||||
interface_message:
|
||||
description:
|
||||
- Add interface description to interface syslogs.
|
||||
Does not work with version 6.0 images using nxapi as a transport.
|
||||
|
@ -163,7 +163,7 @@ EXAMPLES = """
|
|||
state: present
|
||||
- name: Configure logging message ethernet description
|
||||
nxos_logging:
|
||||
message: add-interface-description
|
||||
interface_message: add-interface-description
|
||||
state: present
|
||||
- name: Configure logging event link enable
|
||||
nxos_logging:
|
||||
|
@ -679,7 +679,7 @@ def map_params_to_obj(module):
|
|||
'state': module.params['state'],
|
||||
'facility_link_status': module.params['facility_link_status'],
|
||||
'event': module.params['event'],
|
||||
'message': module.params['message'],
|
||||
'message': module.params['interface_message'],
|
||||
'file_size': file_size,
|
||||
'timestamp': module.params['timestamp']
|
||||
})
|
||||
|
@ -728,7 +728,7 @@ def main():
|
|||
interface=dict(),
|
||||
facility_link_status=dict(choices=['link-down-notif', 'link-down-error', 'link-up-notif', 'link-up-error']),
|
||||
event=dict(choices=['link-enable', 'link-default', 'trunk-enable', 'trunk-default']),
|
||||
message=dict(choices=['add-interface-description']),
|
||||
interface_message=dict(choices=['add-interface-description']),
|
||||
file_size=dict(type='int'),
|
||||
timestamp=dict(choices=['microseconds', 'milliseconds', 'seconds']),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue