Skip to content
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

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

gmuloc
Copy link
Contributor

@gmuloc gmuloc commented Aug 26, 2024

network_services l3_interfaces rely on evpn_multicast_l3.enabled to be true at the VRF or tenant level to configure PIM. However if evpn_multicast is not set to true 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 set evpn_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 false

How to test

negative unit test added in molecule

Checklist

Repository Checklist

  • My code has been rebased from devel before I start
  • I have read the CONTRIBUTING document.
  • My change requires a change to the documentation and documentation have been updated accordingly.
  • I have updated molecule CI testing accordingly. (check the box if not applicable)

@gmuloc gmuloc requested review from a team as code owners August 26, 2024 14:16
Copy link

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

@github-actions github-actions bot added the state: CI Updated CI scenario have been updated in the PR label Aug 26, 2024
@ClausHolbechArista ClausHolbechArista added the cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later label Aug 29, 2024
Copy link

sonarcloud bot commented Aug 29, 2024

@gmuloc gmuloc added the one approval This PR has one approval and is only missing one more. label Aug 29, 2024
Copy link
Contributor

@pvinci-arista pvinci-arista left a 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

@gmuloc gmuloc requested a review from a team August 29, 2024 13:24
Copy link
Contributor

@MaheshGSLAB MaheshGSLAB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gmuloc gmuloc merged commit ee61852 into aristanetworks:devel Aug 29, 2024
40 checks passed
gmuloc added a commit to gmuloc/avd that referenced this pull request Aug 29, 2024
ClausHolbechArista pushed a commit that referenced this pull request Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later one approval This PR has one approval and is only missing one more. rn: Fix(eos_designs) state: CI Updated CI scenario have been updated in the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants