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

Fix(eos_cli_config_gen): Correct syntax for "redistribute bgp" in router bgp #3369

Merged
merged 2 commits into from Dec 5, 2023

Conversation

carlbuchmann
Copy link
Member

@carlbuchmann carlbuchmann commented Nov 21, 2023

Change Summary

Correct syntax in "restribute bgp leaked" in router bgp.

  • Remove incorrect include statement being generated when source routing protocol is bgp
  • Since leaked is required, include_leaked: true is no longer required when redistributing bgp in router bgp. Instead it will automatically be generated when the source protocol is BGP.

Related Issue(s)

Fixes #3356

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

In router_bgp jinja template add logic to look if source_protocol == bgp, then automatically generate leaked.

How to test

See new molecule test cases.

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)

@carlbuchmann carlbuchmann requested review from a team as code owners November 21, 2023 20:12
@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 labels Nov 21, 2023
@carlbuchmann carlbuchmann changed the title Fix: Correct syntax in "restribute bgp leaked" in router bgp Fix: Correct syntax in "restribute bgp" in router bgp Nov 21, 2023
@ClausHolbechArista ClausHolbechArista changed the title Fix: Correct syntax in "restribute bgp" in router bgp Fix: Correct syntax in "redistribute bgp" in router bgp Nov 21, 2023
@carlbuchmann carlbuchmann added the type: bug Something isn't working label Nov 21, 2023
@carlbuchmann carlbuchmann changed the title Fix: Correct syntax in "redistribute bgp" in router bgp Fix: Correct syntax for "redistribute bgp" in router bgp Nov 21, 2023
@carlbuchmann carlbuchmann requested a review from a team November 22, 2023 13:56
@carlbuchmann carlbuchmann changed the title Fix: Correct syntax for "redistribute bgp" in router bgp Fix(eos_cli_config_gen): Correct syntax for "redistribute bgp" in router bgp Nov 22, 2023
@gmuloc gmuloc added this to the v4.5.0 milestone Dec 1, 2023
@ClausHolbechArista ClausHolbechArista added the one approval This PR has one approval and is only missing one more. label Dec 5, 2023
@ClausHolbechArista ClausHolbechArista requested a review from a team December 5, 2023 15:08
Copy link
Contributor

@tgodaA tgodaA left a comment

Choose a reason for hiding this comment

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

LGTM

@gmuloc gmuloc removed the one approval This PR has one approval and is only missing one more. label Dec 5, 2023
@gmuloc gmuloc merged commit 3d7ad3c into aristanetworks:devel Dec 5, 2023
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rn: Fix(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 type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BGP leaked Route redistribution not working
4 participants