-
Notifications
You must be signed in to change notification settings - Fork 219
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): Better error message when missing 'evpn_multicast' for PIM l3 interfaces #4391
Fix(eos_designs): Better error message when missing 'evpn_multicast' for PIM l3 interfaces #4391
Conversation
…for PIM l3 interfaces
Review docs on Read the Docs To test this pull request: # Create virtual environment for this testing below the current directory
python -m venv test-avd-pr-4391
# Activate the virtual environment
source test-avd-pr-4391/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/gmuloc/avd.git@better-error-message-for-pim-gw#subdirectory=python-avd" --force
# Point Ansible collections path to the Python virtual environment
export ANSIBLE_COLLECTIONS_PATH=$VIRTUAL_ENV/ansible_collections
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/gmuloc/avd.git#/ansible_collections/arista/avd/,better-error-message-for-pim-gw --force
# Optional: Install AVD examples
cd test-avd-pr-4391
ansible-playbook arista.avd.install_examples |
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
...signs_negative_unit_tests/inventory/host_vars/failure-missing-evpn-multicast-l3-with-pim.yml
Outdated
Show resolved
Hide resolved
..._designs_negative_unit_tests/inventory/host_vars/failure-missing-evpn-multicast-with-pim.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_designs/structured_config/network_services/ethernet_interfaces.py
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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.
Looks good to me
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
…for PIM l3 interfaces (aristanetworks#4391)
network_services l3_interfaces rely on
evpn_multicast_l3.enabled
to be true at the VRF or tenant level to configure PIM. However ifevpn_multicast
is not set totrue
globally, the filtered VRF object used to render the configuration will have the_evpn_multicast_l3_enabled
key unset which leads to a confusing error message for users having setevpn_multicast_l3.enabled
to true as expected.Change Summary
Discriminate between the two error causes
Related Issue(s)
reported by the field on 4.10.0
Component(s) name
arista.avd.eos_designs
Proposed changes
Check for
evpn_multicast
and output a different error message if falseHow to test
negative unit test added in molecule
Checklist
Repository Checklist