dellemc.enterprise_sonic.sonic_vxlans – Manage VxLAN EVPN and its parameters
Note
This plugin is part of the dellemc.enterprise_sonic collection (version 1.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install dellemc.enterprise_sonic
.
To use it in a playbook, specify: dellemc.enterprise_sonic.sonic_vxlans
.
New in version 1.0.0: of dellemc.enterprise_sonic
Synopsis
Manages interface attributes of Enterprise SONiC interfaces.
Note
This module has a corresponding action plugin.
Parameters
Parameter |
Comments |
---|---|
A list of VxLAN configurations. source_ip and evpn_nvo are required together. |
|
EVPN nvo name |
|
The name of the VxLAN. |
|
The source IP address of the VTEP. |
|
The list of VNI map of VLAN. |
|
VLAN ID for VNI VLAN map. |
|
Specifies the VNI ID. |
|
list of VNI map of VRF. |
|
Specifies the VNI ID. |
|
VRF name for VNI VRF map. |
|
The state of the configuration after module completion. Choices:
|
Examples
# Using deleted
#
# Before state:
# -------------
#
# do show running-configuration
#
#interface vxlan vteptest1
# source-ip 1.1.1.1
# map vni 101 vlan 11
# map vni 102 vlan 12
# map vni 101 vrf Vrfcheck1
# map vni 102 vrf Vrfcheck2
#!
#
- name: "Test vxlans deleted state 01"
dellemc.enterprise_sonic.sonic_vxlans:
config:
- name: vteptest1
source_ip: 1.1.1.1
vlan_map:
- vni: 101
vlan: 11
vrf_map:
- vni: 101
vrf: Vrfcheck1
state: deleted
#
# After state:
# ------------
#
# do show running-configuration
#
#interface vxlan vteptest1
# source-ip 1.1.1.1
# map vni 102 vlan 12
# map vni 102 vrf Vrfcheck2
#!
#
# Using deleted
#
# Before state:
# -------------
#
# do show running-configuration
#
#interface vxlan vteptest1
# source-ip 1.1.1.1
# map vni 102 vlan 12
# map vni 102 vrf Vrfcheck2
#!
#
- name: "Test vxlans deleted state 02"
dellemc.enterprise_sonic.sonic_vxlans:
config:
state: deleted
#
# After state:
# ------------
#
# do show running-configuration
#
#!
#
# Using merged
#
# Before state:
# -------------
#
# do show running-configuration
#
#!
#
- name: "Test vxlans merged state 01"
dellemc.enterprise_sonic.sonic_vxlans:
config:
- name: vteptest1
source_ip: 1.1.1.1
evpn_nvo_name: nvo1
vlan_map:
- vni: 101
vlan: 11
- vni: 102
vlan: 12
vrf_map:
- vni: 101
vrf: Vrfcheck1
- vni: 102
vrf: Vrfcheck2
state: merged
#
# After state:
# ------------
#
# do show running-configuration
#
#interface vxlan vteptest1
# source-ip 1.1.1.1
# map vni 101 vlan 11
# map vni 102 vlan 12
# map vni 101 vrf Vrfcheck1
# map vni 102 vrf Vrfcheck2
#!
#
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The resulting configuration model invocation. Returned: when changed Sample: “The configuration returned is always in the same format of the parameters above.\n” |
|
The configuration prior to the model invocation. Returned: always Sample: “The configuration returned is always in the same format of the parameters above.\n” |
|
The set of commands that are pushed to the remote device. Returned: always Sample: [“command 1”, “command 2”, “command 3”] |
Authors
Niraimadaiselvam M (@niraimadaiselvamm)