ce_lldp – Manages LLDP configuration on HUAWEI CloudEngine switches

Synopsis

  • Manages LLDP configuration on HUAWEI CloudEngine switches.

Parameters

Parameter Choices/Defaults Comments
bind_name
string
Default:
null
Binding interface name.
fast_count
integer
The number of LLDP messages sent to the neighbor nodes by the specified device.
hold_multiplier
integer
Time multiplier for device information in neighbor devices.
interval
integer
Frequency at which LLDP advertisements are sent (in seconds).
lldpenable
string
    Choices:
  • enabled
  • disabled
Set global LLDP enable state.
management_address
string
Default:
null
The management IP address of LLDP.
mdn_notification_interval
integer
Delay time for sending MDN neighbor information change alarm.
mdnstatus
string
    Choices:
  • rxOnly
  • disabled
Set global MDN enable state.
notification_interval
integer
Suppression time for sending LLDP alarm.
restart_delay
integer
Specifies the delay time of the interface LLDP module from disabled state to re enable.
state
string
    Choices:
  • present ←
  • absent
Manage the state of the resource.
transmit_delay
integer
Delay time for sending LLDP messages.

Notes

Note

  • This module requires the netconf system service be enabled on the remote device being managed.
  • Recommended connection is netconf.
  • This module also works with local connections for legacy playbooks.

Examples

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

- name: "Configure global MDN enable state"
  ce_lldp:
    mdnstatus: rxOnly

- name: "Configure LLDP transmit interval and ensure global LLDP state is already enabled"
  ce_lldp:
    enable: enable
    interval: 32

- name: "Configure LLDP transmit multiplier hold and ensure global LLDP state is already enabled"
  ce_lldp:
    enable: enable
    hold_multiplier: 5

- name: "Configure the delay time of the interface LLDP module from disabled state to re enable"
  ce_lldp:
    enable: enable
    restart_delay: 3

- name: "Reset the delay time for sending LLDP messages"
  ce_lldp:
    enable: enable
    transmit_delay: 4

- name: "Configure device to send neighbor device information change alarm delay time"
  ce_lldp:
    lldpenable: enabled
    notification_interval: 6

- name: "Configure the number of LLDP messages sent to the neighbor nodes by the specified device"
  ce_lldp:
    enable: enable
    fast_count: 5

- name: "Configure the delay time for sending MDN neighbor information change alarm"
  ce_lldp:
    enable: enable
    mdn_notification_interval: 6
- name: "Configuring the management IP address of LLDP"
  ce_lldp:
    enable: enable
    management_address: 10.1.0.1

- name: "Configuring LLDP to manage the binding relationship between IP addresses and interfaces"
  ce_lldp:
    enable: enable
    bind_name: LoopBack2

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

Sample:
{'lldpenable': 'enabled', 'mdnstatus': 'rxOnly', 'interval': '32', 'hold_multiplier': '5', 'restart_delay': '3', 'transmit_delay': '4', 'notification_interval': '6', 'fast_count': '5', 'mdn_notification_interval': '6', 'management_address': '10.1.0.1', 'bind_name': 'LoopBack2'}
existing
dictionary
always
k/v pairs of existing global LLDP configuration.

Sample:
{'lldpenable': 'disabled', 'mdnstatus': 'disabled'}
proposed
dictionary
always
k/v pairs of parameters passed into module

Sample:
{'lldpenable': 'enabled', 'mdnstatus': 'rxOnly', 'interval': '32', 'hold_multiplier': '5', 'restart_delay': '3', 'transmit_delay': '4', 'notification_interval': '6', 'fast_count': '5', 'mdn_notification_interval': '6', 'management_address': '10.1.0.1', 'bind_name': 'LoopBack2', 'state': 'present'}
updates
list
always
command sent to the device

Sample:
['lldp enable', 'lldp mdn enable', 'lldp transmit interval 32', 'lldp transmit multiplier 5', 'lldp restart 3', 'lldp transmit delay 4', 'lldp trap-interval 6', 'lldp fast-count 5', 'lldp mdn trap-interval 6', 'lldp management-address 10.1.0.1', 'lldp management-address bind interface LoopBack 2']


Status

Authors

  • xuxiaowei0512 (@CloudEngine-Ansible)

Hint

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