ansible / ansible.builtin / v2.5.15 / module / ce_dldp Manages global DLDP configuration on HUAWEI CloudEngine switches. | "added in version" 2.4 of ansible.builtin" Authors: Zhijin Zhou (@CloudEngine-Ansible) preview | supported by communityansible.builtin.ce_dldp (v2.5.15) — module
pip
Install with pip install ansible==2.5.15
Manages global DLDP configuration on HUAWEI CloudEngine switches.
- 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" ce_dldp: enable: enable provider: "{{ cli }}" - name: "Configure DLDP work-mode and ensure global DLDP state is already enabled" 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" ce_dldp: enable: enable time_interval: 6 provider: "{{ cli }}" - name: "Configure a DLDP authentication mode and ensure global DLDP state is already enabled" 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" ce_dldp: enable: enable reset: enable provider: "{{ cli }}"
reset: choices: - enable - disable default: null description: - Specify whether reset DLDP state of disabled interfaces. required: false enable: choices: - enable - disable default: null description: - Set global DLDP enable state. required: false auth_pwd: default: null description: - 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 (?). required: false auth_mode: choices: - md5 - simple - sha - hmac-sha256 - none default: null description: - Specifies authentication algorithm of DLDP. required: false work_mode: choices: - enhance - normal default: null description: - Set global DLDP work-mode. required: false time_internal: default: null description: - 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. required: false
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of global DLDP configration after module execution returned: always sample: enable: enable reset: enable time_internal: '12' work_mode: normal type: dict existing: description: k/v pairs of existing global DLDP configration returned: always sample: enable: disable reset: disable time_internal: '5' work_mode: enhance type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: enable: enable reset: enable time_internal: '12' work_mode: normal type: dict updates: description: command sent to the device returned: always sample: - dldp enable - dldp work-mode normal - dldp interval 12 - dldp reset type: list