community.network.ce_lldp module – Manages LLDP configuration on HUAWEI CloudEngine switches.
Note
This module is part of the community.network collection (version 5.0.2).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.ce_lldp
.
New in community.network 0.2.0
Synopsis
Manages LLDP configuration on HUAWEI CloudEngine switches.
Aliases: network.cloudengine.ce_lldp
Parameters
Parameter |
Comments |
---|---|
Binding interface name. |
|
The number of LLDP messages sent to the neighbor nodes by the specified device. |
|
Time multiplier for device information in neighbor devices. |
|
Frequency at which LLDP advertisements are sent (in seconds). |
|
Set global LLDP enable state. Choices:
|
|
The management IP address of LLDP. |
|
Delay time for sending MDN neighbor information change alarm. |
|
Set global MDN enable state. Choices:
|
|
Suppression time for sending LLDP alarm. |
|
Specifies the delay time of the interface LLDP module from disabled state to re enable. |
|
Manage the state of the resource. Choices:
|
|
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"
community.network.ce_lldp:
lldpenable: enabled
- name: "Configure global MDN enable state"
community.network.ce_lldp:
mdnstatus: rxOnly
- name: "Configure LLDP transmit interval and ensure global LLDP state is already enabled"
community.network.ce_lldp:
enable: enable
interval: 32
- name: "Configure LLDP transmit multiplier hold and ensure global LLDP state is already enabled"
community.network.ce_lldp:
enable: enable
hold_multiplier: 5
- name: "Configure the delay time of the interface LLDP module from disabled state to re enable"
community.network.ce_lldp:
enable: enable
restart_delay: 3
- name: "Reset the delay time for sending LLDP messages"
community.network.ce_lldp:
enable: enable
transmit_delay: 4
- name: "Configure device to send neighbor device information change alarm delay time"
community.network.ce_lldp:
lldpenable: enabled
notification_interval: 6
- name: "Configure the number of LLDP messages sent to the neighbor nodes by the specified device"
community.network.ce_lldp:
enable: enable
fast_count: 5
- name: "Configure the delay time for sending MDN neighbor information change alarm"
community.network.ce_lldp:
enable: enable
mdn_notification_interval: 6
- name: "Configuring the management IP address of LLDP"
community.network.ce_lldp:
enable: enable
management_address: 10.1.0.1
- name: "Configuring LLDP to manage the binding relationship between IP addresses and interfaces"
community.network.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 |
Description |
---|---|
check to see if a change was made on the device Returned: always Sample: |
|
k/v pairs of global LLDP configuration after module execution. Returned: always Sample: |
|
k/v pairs of existing global LLDP configuration. Returned: always Sample: |
|
k/v pairs of parameters passed into module Returned: always Sample: |
|
command sent to the device Returned: always Sample: |