community.general.ce_evpn_global (0.1.1) — module

Manages global configuration of EVPN on HUAWEI CloudEngine switches.

Authors: Zhijin Zhou (@QijunPan)

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 global configuration of EVPN on HUAWEI CloudEngine switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: evpn global module 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 EVPN as the VXLAN control plan
    ce_evpn_global:
      evpn_overlay_enable: enable
      provider: "{{ cli }}"

  - name: Undo EVPN as the VXLAN control plan
    ce_evpn_global:
      evpn_overlay_enable: disable
      provider: "{{ cli }}"

Inputs

    
evpn_overlay_enable:
    choices:
    - enable
    - disable
    description:
    - Configure EVPN as the VXLAN control plane.
    required: true

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 end attributes on the interface
  returned: always
  sample:
    evpn_overlay_enable: enable
  type: dict
existing:
  description: k/v pairs of existing attributes on the device
  returned: always
  sample:
    evpn_overlay_enable: disable
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    evpn_overlay_enable: enable
  type: dict
updates:
  description: command list sent to the device
  returned: always
  sample:
  - evpn-overlay enable
  type: list