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 setting the ASN notation #3678

Merged

Conversation

colinmacgiolla
Copy link
Contributor

Change Summary

Add support for selecting ASN Notation

Related Issue(s)

Fixes #1832

Component(s) name

arista.avd.eos_cli_config_gen

Proposed changes

This adds the following key to the router_bgp dict:
as_notation: <asdot | asplain>

EOS by default is in asplain, and the documentation is updated to include either way (default, or explicitly set)

How to test

Created molecule test case router-bgp-asdot

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)

@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 Feb 28, 2024
@colinmacgiolla colinmacgiolla changed the title Feat(eos_config_cli_gen) Add support for setting the ASN notation Feat(eos_config_cli_gen): Add support for setting the ASN notation Feb 28, 2024
@colinmacgiolla colinmacgiolla changed the title Feat(eos_config_cli_gen): Add support for setting the ASN notation Feat(eos_cli_config_gen): Add support for setting the ASN notation Feb 28, 2024
@colinmacgiolla colinmacgiolla marked this pull request as ready for review February 28, 2024 17:54
@colinmacgiolla colinmacgiolla requested review from a team as code owners February 28, 2024 17:54
Copy link
Contributor

@Vibhu-gslab Vibhu-gslab left a comment

Choose a reason for hiding this comment

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

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.

Since you are adding a default value in the docs, you get this wide update of every molecule device doc. If you instead had an if arista.avd.defined check before printing it, you could remove almost all the molecule updates.
I am good either way, so will approve.

Notice you will have to update molecule (again and again) every time we merge a PR, until this one is merged.

@colinmacgiolla
Copy link
Contributor Author

Since you are adding a default value in the docs, you get this wide update of every molecule device doc. If you instead had an if arista.avd.defined check before printing it, you could remove almost all the molecule updates. I am good either way, so will approve.

Notice you will have to update molecule (again and again) every time we merge a PR, until this one is merged.

then lets merge quickly 😜

@ClausHolbechArista ClausHolbechArista merged commit 5f541d0 into aristanetworks:devel Feb 29, 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 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 support for BGP asdot/asplain notation
3 participants