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): Add support for 'no bgp redistribute-internal' #4033

Conversation

laxmikantchintakindi
Copy link
Contributor

@laxmikantchintakindi laxmikantchintakindi commented May 24, 2024

Change Summary

The no bgp redistribute-internal command disable route redistribution from the specified domain by removing the corresponding bgp redistribute-internal command from running-config. The default bgp redistribute-internal command enables the redistribution of iBGP routes into an IGP.

Related Issue(s)

Fixes #4012

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

Add a key to configure no bgp redistribute-internal which will emit use of eos_cli.

router_bgp:
  redistribute-internal: <bool>

How to test

Add a key-value 'redistribute_internal' under router_bgp.bgp.

Checklist

User Checklist

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-4033
# Activate the virtual environment
source test-avd-pr-4033/bin/activate
# Install all requirements including PyAVD
pip install "pyavd[ansible] @ git+https://github.com/laxmikantchintakindi/avd.git@nobgpredistribute#subdirectory=python-avd" --force
# Install Ansible collection
ansible-galaxy collection install git+https://github.com/laxmikantchintakindi/avd.git#/ansible_collections/arista/avd/,nobgpredistribute --force
# Optional: Install AVD examples
cd test-avd-pr-4033
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 role: eos_designs issue related to eos_designs role type: documentation Improvements or additions to documentation role: cvp_configlet_upload issue related to cvp_configlet_upload role role: eos_config_deploy_cvp issue related to eos_config_deploy_cvp role role: eos_config_deploy_eapi issue related to eos_config_deploy_eapi role type: code quality CI and development toolset role: eos_validate_state role: dhcp_provisioner type: Python filters role: eos_snapshot labels May 24, 2024
@github-actions github-actions bot removed type: documentation Improvements or additions to documentation role: cvp_configlet_upload issue related to cvp_configlet_upload role role: eos_config_deploy_cvp issue related to eos_config_deploy_cvp role role: eos_config_deploy_eapi issue related to eos_config_deploy_eapi role type: code quality CI and development toolset role: eos_validate_state role: dhcp_provisioner type: Python filters role: eos_snapshot labels May 27, 2024
@laxmikantchintakindi laxmikantchintakindi marked this pull request as ready for review May 28, 2024 09:33
@laxmikantchintakindi laxmikantchintakindi requested review from a team as code owners May 28, 2024 09:33
@ClausHolbechArista ClausHolbechArista changed the title Feat(eos_cli_config_gen): Add a knob to support 'no bgp redistribute-internal. Feat(eos_cli_config_gen): Add support for 'no bgp redistribute-internal May 29, 2024
@ClausHolbechArista ClausHolbechArista changed the title Feat(eos_cli_config_gen): Add support for 'no bgp redistribute-internal Feat(eos_cli_config_gen): Add support for 'no bgp redistribute-internal' May 29, 2024
@MaheshGSLAB MaheshGSLAB marked this pull request as ready for review May 31, 2024 09:54
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

LGTM

@ClausHolbechArista ClausHolbechArista merged commit 76713ba into aristanetworks:devel Jun 7, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Feat(eos_cli_config_gen) role: eos_cli_config_gen issue related to eos_cli_config_gen role role: eos_designs issue related to eos_designs role state: CI Updated CI scenario have been updated in the PR state: Documentation role Updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat(eos_cli_config_gen) add knob to support no bgp redistribute-internal
3 participants