-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(eos_designs): Handle overlapping vlan numbers with filter.only_in_use and trunkgroups #2628
Conversation
ansible_collections/arista/avd/plugins/plugin_utils/eos_designs_facts.py
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_designs/python_modules/network_services/utils.py
Show resolved
Hide resolved
...tions/arista/avd/roles/eos_designs/python_modules/network_services/utils_filtered_tenants.py
Outdated
Show resolved
Hide resolved
…s/network_services/utils_filtered_tenants.py Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - I still would recommend documenting "somewhere centralized" (maybe artificially a section in the currently very big file) how the full logic is working for the block of endpoints/trunk groups.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - replicated the issue locally and tested PR.
…_use and trunkgroups (aristanetworks#2628) Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
Change Summary
Handle overlapping vlan numbers with filter.only_vlans_in_use and trunkgroups
Related Issue(s)
Issue seen in deployment, where duplicate vlans were erroneously configured because the matching on trunk groups was done too lazy (converting to vlan numbers and thereby loosing information about trunk group)
Component(s) name
arista.avd.eos_designs
Proposed changes
Refactor vlan filtering to address corner cases
endpoint_vlans
andendpoint_trunk_groups
into separate properties for local, mlag and downstream switches.How to test
First commit in this PR adds a molecule example of the issue. This is a snip from the output with only that commit:
The second commit contains the fix.
No configurations are changed as part of this fix/refactor.
Checklist
User Checklist
Repository Checklist