cisco.nxos.nxos_evpn_vni (7.0.0) — module

Manages Cisco EVPN VXLAN Network Identifier (VNI).

| "added in version" 1.0.0 of cisco.nxos"

Authors: Gabriele Gerbino (@GGabriele)

Install collection

Install with ansible-galaxy collection install cisco.nxos:==7.0.0


Add to requirements.yml

  collections:
    - name: cisco.nxos
      version: 7.0.0

Description

Manages Cisco Ethernet Virtual Private Network (EVPN) VXLAN Network Identifier (VNI) configurations of a Nexus device.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: vni configuration
  cisco.nxos.nxos_evpn_vni:
    vni: 6000
    route_distinguisher: 60:10
    route_target_import:
      - "5000:10"
      - "4100:100"
    route_target_export: auto
    route_target_both: default

Inputs

    
vni:
    description:
    - The EVPN VXLAN Network Identifier.
    required: true
    type: str

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

route_target_both:
    description:
    - Enables/Disables route-target settings for both import and export target communities
      using a single property.
    elements: str
    type: list

route_distinguisher:
    description:
    - The VPN Route Distinguisher (RD). The RD is combined with the IPv4 or IPv6 prefix
      learned by the PE router to create a globally unique address.
    type: str

route_target_export:
    description:
    - Sets the route-target 'export' extended communities.
    elements: str
    type: list

route_target_import:
    description:
    - Sets the route-target 'import' extended communities.
    elements: str
    type: list

Outputs

commands:
  description: commands sent to the device
  returned: always
  sample:
  - evpn
  - vni 6000 l2
  - route-target import 5001:10
  type: list