ce_mdn_interface – Manages MDN configuration on HUAWEI CloudEngine switches

Synopsis

  • Manages MDN configuration on HUAWEI CloudEngine switches.

Parameters

Parameter Choices/Defaults Comments
ifname
string
Interface name.
lldpenable
string
    Choices:
  • enabled
  • disabled
Set global LLDP enable state.
mdnstatus
string
    Choices:
  • rxOnly
  • disabled
Set interface MDN enable state.
state
string
    Choices:
  • present ←
  • absent
Manage the state of the resource.

Notes

Note

  • This module requires the netconf system service be enabled on the remote device being managed.
  • This module works with connection netconf.

Examples

- name: "Configure global LLDP enable state"
  ce_mdn_interface:
    lldpenable: enabled

- name: "Configure interface MDN enable state"
  ce_mdn_interface:
    ifname: 10GE1/0/1
    mdnstatus: rxOnly

Return Values

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 global LLDP configration after module execution

Sample:
{'lldpenable': 'enabled', 'ifname': '10GE1/0/1', 'mdnstatus': 'rxOnly'}
existing
dictionary
always
k/v pairs of existing global LLDP configration

Sample:
{'lldpenable': 'enabled', 'ifname': '10GE1/0/1', 'mdnstatus': 'disabled'}
proposed
dictionary
always
k/v pairs of parameters passed into module

Sample:
{'lldpenable': 'enabled', 'ifname': '10GE1/0/1', 'mdnstatus': 'rxOnly', 'state': 'present'}
updates
list
always
command sent to the device

Sample:
['interface 10ge 1/0/1', 'lldp mdn enable']


Status

Authors

  • xuxiaowei0512 (@CloudEngine-Ansible)

Hint

If you notice any issues in this documentation, you can edit this document to improve it.