Closed adietrich-ussignal closed 1 year ago
I have tested this and in the case of VLAN aware bundles this leads to the 125 being added to the VRF bundle and it's own "VLAN125" bundle. So indeed this is invalid configuration. I will work on detecting duplicate vlans and error out.
@adietrich-ussignal can I ask you to test PR #2411? It should error out if the duplicate VLAN IDs are deployed on a single device. Also catches duplicate VRF names and duplicate VNIs. Thanks.
LGTM.
Used the following data:
USS_CE_SEC_MGMT:
vrf_vni: 12
svis:
108:
name: USS_CE_VXLAN
tags: [ TAGS ]
enabled: true
ip_address_virtual: 10.10.10.1/24
l2vlans:
108:
name: USS_CE_DIA_1
tags: [ TAGS ]
Here's the output:
TASK [arista.avd.eos_designs : Generate device configuration in structured format] ****************************************************************************************************************************************************************************
ok: [celab-spine-01 -> localhost]
ok: [celab-spine-02 -> localhost]
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.arista.avd.plugins.plugin_utils.errors.errors.AristaAvdError: Duplicate VLAN ID '108' found in Tenant 'USS_CE' during configuration of L2VLAN.
[WARNING]: Failure using method (v2_runner_on_failed) in callback plugin (<ansible_collections.community.general.plugins.callback.yaml.CallbackModule object at 0x7fab59332fd0>): ('cannot represent an object', AristaAvdError("Duplicate VLAN ID '108' found
in Tenant 'USS_CE' during configuration of L2VLAN."))
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible_collections.arista.avd.plugins.plugin_utils.errors.errors.AristaAvdError: Duplicate VLAN ID '108' found in Tenant 'USS_CE' during configuration of L2VLAN.
changed: [celab-mmc-01b -> localhost]
changed: [celab-mmc-01a -> localhost]
changed: [celab-bl-01a -> localhost]
changed: [celab-bl-01b -> localhost]
Issue Summary
When the same VLAN ID is configured in both svis and l2vlans, the conflict can cause un-wanted behavior that does not flood the VLAN across the BGP EVPN VXLAN fabric.
Which component(s) of AVD impacted
eos_designs
How do you run AVD ?
Ansible CLI with AVD Runner
Steps to reproduce
Relevant log output