community.general.ce_vxlan_arp (0.1.1) — module

Manages ARP attributes of VXLAN 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 ARP attributes of VXLAN on HUAWEI CloudEngine devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: vxlan arp 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: Configure EVN BGP on Layer 2 and Layer 3 VXLAN gateways to establish EVN BGP peer relationships.
    ce_vxlan_arp:
      evn_bgp: enable
      evn_source_ip: 6.6.6.6
      evn_peer_ip: 7.7.7.7
      provider: "{{ cli }}"
  - name: Configure a Layer 3 VXLAN gateway as a BGP RR.
    ce_vxlan_arp:
      evn_bgp: enable
      evn_server: enable
      provider: "{{ cli }}"
  - name: Enable EVN BGP on a Layer 3 VXLAN gateway to collect host information.
    ce_vxlan_arp:
      vbdif_name: Vbdif100
      arp_collect_host: enable
      provider: "{{ cli }}"
  - name: Enable Layer 2 and Layer 3 VXLAN gateways to use EVN BGP to advertise host information.
    ce_vxlan_arp:
      host_collect_protocol: bgp
      provider: "{{ cli }}"
  - name: Enable ARP broadcast suppression on a Layer 2 VXLAN gateway.
    ce_vxlan_arp:
      bridge_domain_id: 100
      arp_suppress: enable
      provider: "{{ cli }}"

Inputs

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

evn_bgp:
    choices:
    - enable
    - disable
    description:
    - Enables EVN BGP.

evn_server:
    choices:
    - enable
    - disable
    description:
    - Configures the local device as the router reflector (RR) on the EVN network.

vbdif_name:
    description:
    - Full name of VBDIF interface, i.e. Vbdif100.

evn_peer_ip:
    description:
    - Specifies the IP address of an EVN BGP peer. The value is in dotted decimal notation.

arp_suppress:
    choices:
    - enable
    - disable
    description:
    - Enables ARP broadcast suppression in a BD.

evn_source_ip:
    description:
    - Specifies the source address of an EVN BGP peer. The value is in dotted decimal
      notation.

arp_collect_host:
    choices:
    - enable
    - disable
    description:
    - Enables EVN BGP or BGP EVPN to collect host information.

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

evn_reflect_client:
    choices:
    - enable
    - disable
    description:
    - Configures the local device as the route reflector (RR) and its peer as the client.

host_collect_protocol:
    choices:
    - bgp
    - none
    description:
    - Enables EVN BGP or BGP EVPN to advertise host information.

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:
    evn_bgp: enable
    evn_peer_ip:
    - 7.7.7.7
    evn_source_ip: 6.6.6.6
  type: dict
existing:
  description: k/v pairs of existing configuration
  returned: verbose mode
  sample:
    evn_bgp: disable
    evn_peer_ip: []
    evn_source_ip: null
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: verbose mode
  sample:
    evn_bgp: enable
    evn_peer_ip: 7.7.7.7
    evn_source_ip: 6.6.6.6
    state: present
  type: dict
updates:
  description: commands sent to the device
  returned: always
  sample:
  - evn bgp
  - source-address 6.6.6.6
  - peer 7.7.7.7
  type: list