ansible.builtin.ce_evpn_global (v2.9.27) — module

Manages global configuration of EVPN on HUAWEI CloudEngine switches.

| "added in version" 2.4 of ansible.builtin"

Authors: Zhijin Zhou (@QijunPan)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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