Skip to content

Latest commit

 

History

History
250 lines (216 loc) · 9.28 KB

cisco.nxos.nxos_udld_interface_module.rst

File metadata and controls

250 lines (216 loc) · 9.28 KB

cisco.nxos.nxos_udld_interface

Manages UDLD interface configuration params.

Version added: 1.0.0

  • Manages UDLD interface configuration params.
Parameter Choices/Defaults Comments
interface
string / required
FULL name of the interface, i.e. Ethernet1/1-
mode
string / required
    Choices:
  • enabled
  • disabled
  • aggressive
Manages UDLD mode for an interface.
state
string
    Choices:
  • present ←
  • absent
Manage the state of the resource.

Note

# ensure Ethernet1/1 is configured to be in aggressive mode
- cisco.nxos.nxos_udld_interface:
    interface: Ethernet1/1
    mode: aggressive
    state: present
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

# Remove the aggressive config only if it's currently in aggressive mode and then disable udld (switch default)
- cisco.nxos.nxos_udld_interface:
    interface: Ethernet1/1
    mode: aggressive
    state: absent
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

# ensure Ethernet1/1 has aggressive mode enabled
- cisco.nxos.nxos_udld_interface:
    interface: Ethernet1/1
    mode: enabled
    host: '{{ inventory_hostname }}'
    username: '{{ un }}'
    password: '{{ pwd }}'

Common return values are documented here, the following are the fields unique to this module:

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 configuration after module execution

Sample:
{'mode': 'enabled'}
existing
dictionary
always
k/v pairs of existing configuration

Sample:
{'mode': 'aggressive'}
proposed
dictionary
always
k/v pairs of parameters passed into module

Sample:
{'mode': 'enabled'}
updates
list
always
command sent to the device

Sample:
['interface ethernet1/33', 'no udld aggressive ; no udld disable']


Authors

  • Jason Edelman (@jedelman8)