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): Add redistribute connected under BGP for VRF default if no underlay #4522

Conversation

ClausHolbechArista
Copy link
Contributor

Change Summary

Add redistribute connected under BGP for VRF default if no underlay

Component(s) name

arista.avd.eos_designs

Proposed changes

In the corner case where we build BGP config for VRF default as part of network services (but not for underlay/overlay), we were missing "redistribute connected".

There will be a PR later to provide control for redistribute connected.

How to test

Existing molecule exposed the issue and show the fix.

Checklist

User Checklist

  • N/A

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)

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-4522
# Activate the virtual environment
source test-avd-pr-4522/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/ClausHolbechArista/avd.git@fix/eos_designs/redistribute-connected-in-bgp-vrf-default-from-network-services#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/ClausHolbechArista/avd.git#/ansible_collections/arista/avd/,fix/eos_designs/redistribute-connected-in-bgp-vrf-default-from-network-services --force
# Optional: Install AVD examples
cd test-avd-pr-4522
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added state: CI Updated CI scenario have been updated in the PR state: conflict PR with conflict labels Sep 27, 2024
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the state: conflict PR with conflict label Sep 27, 2024
Copy link

Conflicts have been resolved. A maintainer will review the pull request shortly.

@carlbuchmann carlbuchmann added the cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later label Sep 27, 2024
Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

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

LGTM

@carlbuchmann carlbuchmann added this to the v5.0.0 milestone Sep 27, 2024
@carlbuchmann carlbuchmann added the type: bug Something isn't working label Sep 27, 2024
@carlbuchmann carlbuchmann requested a review from a team September 27, 2024 19:51
@ClausHolbechArista
Copy link
Contributor Author

@carlbuchmann I don't think this will apply to 4.x since we did not support the corner case we hit here. It is part of the new BGP behavior when not using overlays.

@gmuloc gmuloc added the one approval This PR has one approval and is only missing one more. label Sep 30, 2024
…es/router_bgp.py

Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
Copy link

sonarcloud bot commented Sep 30, 2024

@ClausHolbechArista ClausHolbechArista removed the cherry-pick-for-4.10.x PR to be cherry-picked to releases/v4.10.x brach later label Sep 30, 2024
@ClausHolbechArista ClausHolbechArista merged commit f055823 into aristanetworks:devel Sep 30, 2024
40 checks passed
@ClausHolbechArista ClausHolbechArista deleted the fix/eos_designs/redistribute-connected-in-bgp-vrf-default-from-network-services branch October 23, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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 type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants