ansible / ansible.builtin / v2.5.10 / module / ce_vxlan_tunnel Manages VXLAN tunnel configuration on HUAWEI CloudEngine devices. | "added in version" 2.4 of ansible.builtin" Authors: Li Yanfeng (@CloudEngine-Ansible) preview | supported by communityansible.builtin.ce_vxlan_tunnel (v2.5.10) — module
pip
Install with pip install ansible==2.5.10
This module offers the ability to set the VNI and mapped to the BD, and configure an ingress replication list on HUAWEI CloudEngine devices.
- name: vxlan tunnel 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: Make sure nve_name is exist, ensure vni_id and protocol_type is configured on Nve1 interface. ce_vxlan_tunnel: nve_name: Nve1 vni_id: 100 protocol_type: bgp state: present provider: "{{ cli }}"
state: choices: - present - absent default: present description: - Manage the state of the resource. required: false vni_id: default: null description: - Specifies a VXLAN network identifier (VNI) ID. The value is an integer ranging from 1 to 16000000. required: false nve_mode: choices: - mode-l2 - mode-l3 default: null description: - Specifies the working mode of an NVE interface. required: false nve_name: default: null description: - Specifies the number of an NVE interface. The value ranges from 1 to 2. required: false source_ip: default: null description: - Specifies an IP address for a source VTEP. The value is in dotted decimal notation. required: false peer_list_ip: default: null description: - Specifies the IP address of a remote VXLAN tunnel endpoints (VTEP). The value is in dotted decimal notation. required: false protocol_type: choices: - bgp - 'null' default: null description: - The operation type of routing protocol. required: false bridge_domain_id: default: null description: - Specifies a bridge domain ID. The value is an integer ranging from 1 to 16777215. required: false
changed: description: check to see if a change was made on the device returned: always sample: true type: boolean end_state: description: k/v pairs of configuration after module execution returned: always sample: nve_interface_name": Nve1 nve_mode": mode-l3 source_ip: 0.0.0.0 type: dict existing: description: - k/v pairs of existing rollback returned: always sample: nve_interface_name": Nve1 nve_mode": mode-l3 source_ip: 0.0.0.0 type: dict proposed: description: k/v pairs of parameters passed into module returned: always sample: nve_interface_name": Nve1 nve_mode": mode-l2 source_ip: 0.0.0.0 type: dict updates: description: command sent to the device returned: always sample: - interface Nve1 - mode l3 type: list