.. _cisco.nxos.nxos_udld_module:
********************
cisco.nxos.nxos_udld
********************
**Manages UDLD global configuration params.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- Manages UDLD global configuration params.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
aggressive
string
|
Choices:
- enabled
- disabled
|
Toggles aggressive mode.
|
|
msg_time
string
|
|
Message time in seconds for UDLD packets or keyword 'default'.
|
|
reset
boolean
|
|
Ability to reset all ports shut down by UDLD. 'state' parameter cannot be 'absent' when this is present.
|
|
state
string
|
Choices:
present ←
- absent
|
Manage the state of the resource. When set to 'absent', aggressive and msg_time are set to their default values.
|
Notes
-----
.. note::
- Tested against NXOSv 7.3.(0)D1(1) on VIRL
- Unsupported for Cisco MDS
- Module will fail if the udld feature has not been previously enabled.
- For information on using CLI and NX-API see the :ref:`NXOS Platform Options guide `
- For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide `
- For more information on using Ansible to manage Cisco devices see the `Cisco integration page `_.
Examples
--------
.. code-block:: yaml
# ensure udld aggressive mode is globally disabled and se global message interval is 20
- cisco.nxos.nxos_udld:
aggressive: disabled
msg_time: 20
host: '{{ inventory_hostname }}'
username: '{{ un }}'
password: '{{ pwd }}'
# Ensure agg mode is globally enabled and msg time is 15
- cisco.nxos.nxos_udld:
aggressive: enabled
msg_time: 15
host: '{{ inventory_hostname }}'
username: '{{ un }}'
password: '{{ pwd }}'
Return Values
-------------
Common return values are documented `here `_, the following are the fields unique to this module:
.. raw:: html
| Key |
Returned |
Description |
|
changed
boolean
|
always |
check to see if a change was made on the device
Sample:
True
|
|
end_state
dictionary
|
always |
k/v pairs of udld configuration after module execution
Sample:
{'aggressive': 'enabled', 'msg_time': '40'}
|
|
existing
dictionary
|
always |
k/v pairs of existing udld configuration
Sample:
{'aggressive': 'disabled', 'msg_time': '15'}
|
|
proposed
dictionary
|
always |
k/v pairs of parameters passed into module
Sample:
{'aggressive': 'enabled', 'msg_time': '40'}
|
|
updates
list
|
always |
command sent to the device
Sample:
['udld message-time 40', 'udld aggressive']
|
Status
------
Authors
~~~~~~~
- Jason Edelman (@jedelman8)