-
Notifications
You must be signed in to change notification settings - Fork 219
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
Feat(eos_cli_config_gen): Expand CLI to support DualEncap MH EVPN GW requirements #4613
Conversation
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 |
@@ -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'] %} |
There was a problem hiding this comment.
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
Yeah, I did consider that - I was just thinking if we add more domains in
the future, it relying on sorting alphabetically may not keep working.
I'll updated
…On Fri, 18 Oct 2024 at 11:48, laxmikantchintakindi ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2
<#4613 (comment)>:
> @@ -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'] %}
I deleted my comment by mistake. I think you can use
arista.avd.natural_sort("domain").
—
Reply to this email directly, view it on GitHub
<#4613 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNXQATHBNJBRRRHOPWWTFDZ4DRPLAVCNFSM6AAAAABQFUACO6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNZXG42TONRXGQ>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/router-bgp.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/router-bgp.j2
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/router-bgp-evpn.cfg
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
…outer_bgp.schema.yml Co-authored-by: Mahesh Kumar <122076792+MaheshGSLAB@users.noreply.github.com>
There was a problem hiding this 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!
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
…outer_bgp.schema.yml Co-authored-by: Shivani-gslab <145646625+Shivani-gslab@users.noreply.github.com>
5.0 is out so this can be reviewed and merged
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/router-bgp.j2
Outdated
Show resolved
Hide resolved
...e_collections/arista/avd/molecule/eos_cli_config_gen/inventory/host_vars/router-bgp-evpn.yml
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/router-bgp-evpn.cfg
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…p.j2 Co-authored-by: Guillaume Mulocher <gmulocher@arista.com>
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Move all tests to evpn-mpls Improve ESI description
python-avd/pyavd/_eos_cli_config_gen/j2templates/documentation/router-bgp.j2
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
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
How to test
Molecule tests updated and compared with switch running 4.32.2F.
Checklist
User Checklist
Repository Checklist