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_cli_config_gen): Expand CLI to support DualEncap MH EVPN GW requirements #4613

Merged
merged 25 commits into from
Oct 30, 2024

Conversation

colinmacgiolla
Copy link
Contributor

Change Summary

This PR addresses what is described in #4604 - allow the remote domain, and evpn segments to be defined under the BGP AF EVPN

Related Issue(s)

Fixes #4604

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

router_bgp:
   address_family_evpn:
      domain_identifier: <string>
      domain_identifier_remote: <string>
      evpn_ethernet_segment:
         - domain: <all | local | remote>
           identifier: <segment id>
           route_target: <EVPN Route Target for ESI with format xx:xx:xx:xx:xx:xx.>

How to test

Molecule tests updated and compared with switch running 4.32.2F.

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)

@colinmacgiolla colinmacgiolla requested review from a team as code owners October 18, 2024 10:17
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-4613
# Activate the virtual environment
source test-avd-pr-4613/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/colinmacgiolla/ansible-avd.git@EVPN-MH-Dual-Encap-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/colinmacgiolla/ansible-avd.git#/ansible_collections/arista/avd/,EVPN-MH-Dual-Encap-GW --force
# Optional: Install AVD examples
cd test-avd-pr-4613
ansible-playbook arista.avd.install_examples

@github-actions github-actions bot added role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated labels Oct 18, 2024
@@ -971,6 +974,22 @@ router bgp {{ router_bgp.as }}
{% if router_bgp.address_family_evpn.route.import_overlay_index_gateway is arista.avd.defined(true) %}
route import overlay-index gateway
{% endif %}
{% if router_bgp.address_family_evpn.evpn_ethernet_segment is arista.avd.defined %}
{% set domain_list = ['all', 'local','remote'] %}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is more to ensure that it renders in the correct order

@colinmacgiolla
Copy link
Contributor Author

colinmacgiolla commented Oct 18, 2024 via email

@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Oct 23, 2024
colinmacgiolla and others added 3 commits October 24, 2024 16:04
…outer_bgp.schema.yml

Co-authored-by: Mahesh Kumar <122076792+MaheshGSLAB@users.noreply.github.com>
Copy link
Contributor

@Shivani-gslab Shivani-gslab left a comment

Choose a reason for hiding this comment

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

One minor suggestion, rest LGTM!

Copy link
Contributor

@ClausHolbechArista ClausHolbechArista left a comment

Choose a reason for hiding this comment

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

Blocking until 5.0 is out

colinmacgiolla and others added 2 commits October 25, 2024 10:57
…outer_bgp.schema.yml

Co-authored-by: Shivani-gslab <145646625+Shivani-gslab@users.noreply.github.com>
@ClausHolbechArista ClausHolbechArista dismissed their stale review October 28, 2024 08:11

5.0 is out so this can be reviewed and merged

@gmuloc gmuloc added this to the v5.1.0-dev1 milestone Oct 28, 2024
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 Oct 28, 2024
@github-actions github-actions bot removed the state: conflict PR with conflict label Oct 29, 2024
Copy link

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

Copy link

sonarcloud bot commented Oct 30, 2024

@gmuloc gmuloc merged commit 251d9da into aristanetworks:devel Oct 30, 2024
45 checks passed
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: Feat(eos_cli_config_gen) role: eos_cli_config_gen issue related to eos_cli_config_gen role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
6 participants