community.general.ce_mdn_interface (0.1.1) — module

Manages MDN configuration on HUAWEI CloudEngine switches.

Authors: xuxiaowei0512 (@CloudEngine-Ansible)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Manages MDN configuration on HUAWEI CloudEngine switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: "Configure global LLDP enable state"
    ce_mdn_interface:
      lldpenable: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: "Configure interface MDN enable state"
    ce_mdn_interface:
      ifname: 10GE1/0/1
      mdnstatus: rxOnly

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Manage the state of the resource.
    type: str

ifname:
    description:
    - Interface name.
    type: str

mdnstatus:
    choices:
    - rxOnly
    - disabled
    description:
    - Set interface MDN enable state.
    type: str

lldpenable:
    choices:
    - enabled
    - disabled
    description:
    - Set global LLDP enable state.
    type: str

Outputs

changed:
  description: check to see if a change was made on the device
  returned: always
  sample: true
  type: bool
end_state:
  description: k/v pairs of global LLDP configration after module execution
  returned: always
  sample:
    ifname: 10GE1/0/1
    lldpenable: enabled
    mdnstatus: rxOnly
  type: dict
existing:
  description: k/v pairs of existing global LLDP configration
  returned: always
  sample:
    ifname: 10GE1/0/1
    lldpenable: enabled
    mdnstatus: disabled
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    ifname: 10GE1/0/1
    lldpenable: enabled
    mdnstatus: rxOnly
    state: present
  type: dict
updates:
  description: command sent to the device
  returned: always
  sample:
  - interface 10ge 1/0/1
  - lldp mdn enable
  type: list