-
Notifications
You must be signed in to change notification settings - Fork 212
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): Add support for BGP default timers and send-community commands #4607
base: devel
Are you sure you want to change the base?
Feat(eos_cli_config_gen): Add support for BGP default timers and send-community commands #4607
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-4607
# Activate the virtual environment
source test-avd-pr-4607/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/Shivani-gslab/avd.git@bgp_timers_send_community#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/Shivani-gslab/avd.git#/ansible_collections/arista/avd/,bgp_timers_send_community --force
# Optional: Install AVD examples
cd test-avd-pr-4607
ansible-playbook arista.avd.install_examples |
ansible_collections/arista/avd/molecule/eos_cli_config_gen/intended/configs/router-bgp-base.cfg
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
...ections/arista/avd/molecule/eos_cli_config_gen/documentation/devices/router-bgp-evpn-mpls.md
Outdated
Show resolved
Hide resolved
5e307ca
to
5bea855
Compare
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Outdated
Show resolved
Hide resolved
c485a9e
to
a94d7d5
Compare
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
python-avd/pyavd/_eos_cli_config_gen/schema/schema_fragments/router_bgp.schema.yml
Show resolved
Hide resolved
4239a52
to
3e2a026
Compare
...a/avd/molecule/eos_cli_config_gen/inventory/host_vars/router-bgp-evpn-vpn-import-pruning.yml
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
0917539
to
b013b07
Compare
ansible_collections/arista/avd/roles/eos_cli_config_gen/docs/tables/router-bgp.md
Outdated
Show resolved
Hide resolved
ansible_collections/arista/avd/roles/eos_cli_config_gen/docs/tables/router-bgp.md
Outdated
Show resolved
Hide resolved
python-avd/pyavd/_eos_cli_config_gen/j2templates/eos/router-bgp.j2
Outdated
Show resolved
Hide resolved
167b11e
to
95deb9a
Compare
…-community commands
Co-authored-by: laxmikantchintakindi <[email protected]>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
95deb9a
to
ccf8103
Compare
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
router-id 192.168.255.3 | ||
timers bgp min-hold-time 5 send-failure hold-time 65 | ||
no bgp default ipv4-unicast |
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.
I my test the timers comes after the no bgp default ipv4-unicast
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.
+1
+router bgp 65101
+ router-id 192.168.255.3
+ no bgp default ipv4-unicast
+ timers bgp min-hold-time 5 send-failure hold-time 65
+ distance bgp 20 200 200
+ graceful-restart restart-time 300
+ graceful-restart
+ maximum-paths 2 ecmp 2
+ neighbor default send-community standard extended large
+ neighbor EVPN-OVERLAY-PEERS peer group
+ neighbor EVPN-OVERLAY-PEERS remote-as 65001
+ neighbor EVPN-OVERLAY-PEERS update-source Loopback0
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.
Yes, the ordering is same in the template, this mismatch in the ordering of this file is because these commands are defined under bgp_defaults
key, which is below timers in the template.
We can see the correct ordering in router-bgp-base.cfg
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.
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.
LGTM
Change Summary
Add support for BGP default timers and send-community commands
Related Issue(s)
Fixes #4218
Component(s) name
arista.avd.eos_cli_config_gen
Proposed changes
How to test
Match with EOS CLI.
Checklist
User Checklist
Repository Checklist