Added in version 1.0
Manage dldp authentication,interface,timeout and mode on Comware 7 devices.author: gongqianyu
parameter | required | default | choices | comments |
---|---|---|---|---|
global_enable | no | disable | global dldp enable or disable | |
auth_mode | no | Configure dldp authentication mode between current device and neighbor device. | ||
pwd_mode | no | Configure the dldp authentication password mode between the current device and the neighbor device. | ||
pwd | no | Configure the dldp authentication password between the current device and the neighbor device | ||
timeout | no | 5 | Configure the sending interval of advertisement message(1~100) | |
shutdown_mode | no | auto | Global configuration of interface shutdown mode after dldp discovers unidirectional link. | |
name | no | The full name of the interface. | ||
interface_enable | no | Enable dldp function on the interface. | ||
init_delay | no | Delay time of dldp blocking interface from initial state to single pass state.(1~5) |
- name: config dldp comware_dldp: global_enable=enable auth_mode=md5 shutdown_mode=auto pwd_mode=cipher pwd=123456 timeout=10 name=HundredGigE1/0/27 interface_enable=disable state=present username={{ username }} password={{ password }} hostname={{ inventory_hostname }} - name: delete dldp configuration comware_dldp: global_enable=enable auth_mode=md5 shutdown_mode=auto pwd_mode=cipher pwd=123456 timeout=10 name=HundredGigE1/0/27 interface_enable=disable state=absent username={{ username }} password={{ password }} hostname={{ inventory_hostname }}
Note
To enable the dldp feature, the dldp feature must be enabled on both the global and the interface.when config interface_enable、init_delay and port_shutdown,name must be exit.