Note
This plugin is part of the community.network collection (version 3.0.0).
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_dldp
.
Parameter | Choices/Defaults | Comments |
---|---|---|
auth_mode string |
| Specifies authentication algorithm of DLDP. |
auth_pwd string | Specifies authentication password. The value is a string of 1 to 16 case-sensitive plaintexts or 24/32/48/108/128 case-sensitive encrypted characters. The string excludes a question mark (?). | |
enable string |
| Set global DLDP enable state. |
reset string |
| Specify whether reset DLDP state of disabled interfaces. |
time_internal string | Specifies the interval for sending Advertisement packets. The value is an integer ranging from 1 to 100, in seconds. The default interval for sending Advertisement packets is 5 seconds. | |
work_mode string |
| Set global DLDP work-mode. |
Note
netconf
.local
connections for legacy playbooks.- name: DLDP test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: "Configure global DLDP enable state" community.network.ce_dldp: enable: enable provider: "{{ cli }}" - name: "Configure DLDP work-mode and ensure global DLDP state is already enabled" community.network.ce_dldp: enable: enable work_mode: normal provider: "{{ cli }}" - name: "Configure advertisement message time interval in seconds and ensure global DLDP state is already enabled" community.network.ce_dldp: enable: enable time_interval: 6 provider: "{{ cli }}" - name: "Configure a DLDP authentication mode and ensure global DLDP state is already enabled" community.network.ce_dldp: enable: enable auth_mode: md5 auth_pwd: abc provider: "{{ cli }}" - name: "Reset DLDP state of disabled interfaces and ensure global DLDP state is already enabled" community.network.ce_dldp: enable: enable reset: enable provider: "{{ cli }}"
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 DLDP configuration after module execution Sample: {'enable': 'enable', 'reset': 'enable', 'time_internal': '12', 'work_mode': 'normal'} |
existing dictionary | always | k/v pairs of existing global DLDP configuration Sample: {'enable': 'disable', 'reset': 'disable', 'time_internal': '5', 'work_mode': 'enhance'} |
proposed dictionary | always | k/v pairs of parameters passed into module Sample: {'enable': 'enable', 'reset': 'enable', 'time_internal': '12', 'work_mode': 'normal'} |
updates list / elements=string | always | command sent to the device Sample: ['dldp enable', 'dldp work-mode normal', 'dldp interval 12', 'dldp reset'] |
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/network/ce_dldp_module.html