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

Feat(eos_designs): Exclude l3_edge neighbors from peer_group #4491

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

nathanmusser
Copy link
Contributor

Change Summary

When routing_protocol is set to ebgp and include_in_underlay_protocol is set to false for an l3_edge link, previously it was not rendered in BGP. It is now rendered into BGP without using the default underlay peer group.

Related Issue(s)

Partially fixes #4379

Component(s) name

arista.avd.eos_designs

Proposed changes

Only render the peer group if include_in_underlay_protocol is set to true.

How to test

Using the dual-dc-l3ls example topology you can modify the l3_edge include_in_underlay_protocol and routing_protocol values in the FABRIC.yml group_var.

l3_edge:
  ...
  p2p_links_profiles:
    - name: DCI_profile
      ip_pool: DCI_IP_pool
      as: [65102, 65202]
      include_in_underlay_protocol: false
      routing_protocol: ebgp
  ...

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)

Additional

I can add tests for this to molecule. I'm not sure if what the scope of the molecule tests are for the AVD project, and if we want every edge case covered or not. Additionally, while this behavior feels intuitive to me, I can explicitly add an example to the documentation, but documenting an edge case like this could be considered clutter so I didn't add anything yet.

…erlay" is set to False and the protocol is ebgp.
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-4491
# Activate the virtual environment
source test-avd-pr-4491/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/nathanmusser/avd.git@issue4379_p2p_links#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/nathanmusser/avd.git#/ansible_collections/arista/avd/,issue4379_p2p_links --force
# Optional: Install AVD examples
cd test-avd-pr-4491
ansible-playbook arista.avd.install_examples

Copy link

sonarcloud bot commented Sep 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat(eos_designs): Support for IPv4 p2p_links in an RFC5549 Fabric
2 participants