community.network.ce_evpn_global (5.0.2) — module

Manages global configuration of EVPN on HUAWEI CloudEngine switches.

Authors: Zhijin Zhou (@QijunPan)

Install collection

Install with ansible-galaxy collection install community.network:==5.0.2


Add to requirements.yml

  collections:
    - name: community.network
      version: 5.0.2

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: false
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli

  tasks:

  - name: Configure EVPN as the VXLAN control plan
    community.network.ce_evpn_global:
      evpn_overlay_enable: enable
      provider: "{{ cli }}"

  - name: Undo EVPN as the VXLAN control plan
    community.network.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