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): Enable evpn_gateway for pathfinder deployment #4831

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

ayushmittal-arista
Copy link
Contributor

Change Summary

Allow configuring evpn_gateway on wan_router

Related Issue(s)

Fixes #

Component(s) name

arista.avd.eos_designs

Proposed changes

No changes to data model.
Code Changes:

  • Currently evpn_gw is only used if overlay routing protocol is ebgp
  • We also add a case if router is wan_router client

We also additionally generate config on peer side of remote gateway.

How to test

molecule

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-4831
# Activate the virtual environment
source test-avd-pr-4831/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/aristanetworks/avd.git@evpngw_final#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/aristanetworks/avd.git#/ansible_collections/arista/avd/,evpngw_final --force
# Optional: Install AVD examples
cd test-avd-pr-4831
ansible-playbook arista.avd.install_examples

Copy link

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

@github-actions github-actions bot added the state: conflict PR with conflict label Dec 20, 2024
Copy link

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

@ayushmittal-arista ayushmittal-arista force-pushed the evpngw_final branch 2 times, most recently from 6622361 to 7a95deb Compare January 2, 2025 10:10
Comment on lines +87 to +89
# Enable gateway when evpn_gateway is enabled
# - for ebgp
# - for ibgp, currently supported only for pathfinder deployment.
Copy link
Contributor

Choose a reason for hiding this comment

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

can be moved to the docstring

@@ -9,7 +9,7 @@
from typing import TYPE_CHECKING

from pyavd._errors import AristaAvdError, AristaAvdInvalidInputsError
from pyavd._utils import default
from pyavd._utils import default, get
Copy link
Contributor

Choose a reason for hiding this comment

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

looks get is not needed in your change

@@ -309,6 +309,7 @@ ip extcommunity-list ECL-EVPN-SOO permit soo 192.168.255.1:0
!
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY
seq 10 permit 192.168.255.0/24 eq 32
seq 20 permit 192.168.42.0/24 eq 32
Copy link
Contributor

Choose a reason for hiding this comment

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

need to check this change

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

Successfully merging this pull request may close these issues.

2 participants