community.network.ce_mdn_interface – Manages MDN configuration on HUAWEI CloudEngine switches.
community.network.ce_mdn_interface – Manages MDN configuration on HUAWEI CloudEngine switches.
Note
This plugin is part of the community.network collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.network
.
To use it in a playbook, specify: community.network.ce_mdn_interface
.
New in version 0.2.0: of community.network
Synopsis
- Manages MDN configuration on HUAWEI CloudEngine switches.
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
ifname string |
Interface name. | |
lldpenable string |
|
Set global LLDP enable state. |
mdnstatus string |
|
Set interface MDN enable state. |
state string |
|
Manage the state of the resource. |
Notes
Note
- This module requires the netconf system service be enabled on the remote device being managed.
- This module works with connection
netconf
.
Examples
- name: "Configure global LLDP enable state"
community.network.ce_mdn_interface:
lldpenable: enabled
- name: "Configure interface MDN enable state"
community.network.ce_mdn_interface:
ifname: 10GE1/0/1
mdnstatus: rxOnly
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 configration after module execution
Sample: {'ifname': '10GE1/0/1', 'lldpenable': 'enabled', 'mdnstatus': 'rxOnly'} |
existing dictionary |
always |
k/v pairs of existing global LLDP configration
Sample: {'ifname': '10GE1/0/1', 'lldpenable': 'enabled', 'mdnstatus': 'disabled'} |
proposed dictionary |
always |
k/v pairs of parameters passed into module
Sample: {'ifname': '10GE1/0/1', 'lldpenable': 'enabled', 'mdnstatus': 'rxOnly', 'state': 'present'} |
updates list / elements=string |
always |
command sent to the device
Sample: ['interface 10ge 1/0/1', 'lldp mdn enable'] |
Authors
- xuxiaowei0512 (@CloudEngine-Ansible)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/network/ce_mdn_interface_module.html