community.general.ce_vxlan_global (0.1.1) — module

Manages global attributes of VXLAN and bridge domain on HUAWEI CloudEngine devices.

Authors: QijunPan (@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 attributes of VXLAN and bridge domain on HUAWEI CloudEngine devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: vxlan global module test
  hosts: ce128
  connection: local
  gather_facts: no
  vars:
    cli:
      host: "{{ inventory_hostname }}"
      port: "{{ ansible_ssh_port }}"
      username: "{{ username }}"
      password: "{{ password }}"
      transport: cli

  tasks:

  - name: Create bridge domain and set tunnel mode to VXLAN
    ce_vxlan_global:
      bridge_domain_id: 100
      nvo3_acl_extend: enable
      provider: "{{ cli }}"

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - Determines whether the config should be present or not on the device.

nvo3_ecmp_hash:
    choices:
    - enable
    - disable
    description:
    - Load balancing of VXLAN packets through ECMP in optimized mode.

nvo3_acl_extend:
    choices:
    - enable
    - disable
    description:
    - Enabling or disabling the VXLAN ACL extension function.

bridge_domain_id:
    description:
    - Specifies a bridge domain ID. The value is an integer ranging from 1 to 16777215.

nvo3_gw_enhanced:
    choices:
    - l2
    - l3
    description:
    - Configuring the Layer 3 VXLAN Gateway to Work in Non-loopback Mode.

tunnel_mode_vxlan:
    choices:
    - enable
    - disable
    description:
    - Set the tunnel mode to VXLAN when configuring the VXLAN feature.

nvo3_prevent_loops:
    choices:
    - enable
    - disable
    description:
    - Loop prevention of VXLAN traffic in non-enhanced mode. When the device works in
      non-enhanced mode, inter-card forwarding of VXLAN traffic may result in loops.

nvo3_eth_trunk_hash:
    choices:
    - enable
    - disable
    description:
    - Eth-Trunk from load balancing VXLAN packets in optimized mode.

nvo3_service_extend:
    choices:
    - enable
    - disable
    description:
    - Enabling or disabling the VXLAN service extension function.

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 configuration after module execution
  returned: verbose mode
  sample:
    bridge_domain_id:
      '100': null
      '80': null
      '90': null
    nvo3_acl_extend: enable
  type: dict
existing:
  description: k/v pairs of existing configuration
  returned: verbose mode
  sample:
    bridge_domain:
      '80': null
      '90': null
    nvo3_acl_extend: disable
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: verbose mode
  sample:
    bridge_domain_id: '100'
    nvo3_acl_extend: enable
    state="present": null
  type: dict
updates:
  description: commands sent to the device
  returned: always
  sample:
  - bridge-domain 100
  - ip tunnel mode vxlan
  type: list