[RT-7.3/RT-7.4] Update as-path-set deviation for Arista#5262
[RT-7.3/RT-7.4] Update as-path-set deviation for Arista#5262yini101 wants to merge 1 commit intoopenconfig:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the BGP AS path set matching logic for Arista devices within the testing framework. It updates the system to reflect Arista's enhanced capabilities by removing an obsolete deviation and introduces a new mechanism to correctly configure AS path set matching using POSIX regex mode, ensuring proper interaction with Arista EOS requirements. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new deviation, RoutingPolicyAsPathSetEnableRegexMode, to address the requirement for explicit POSIX regex matching configuration for BGP AS Path Sets on Arista devices. The changes include updating protobuf definitions, generating corresponding Go code, adding an accessor function in internal/deviations, and implementing a new configuration plugin in internal/cfgplugins to apply the necessary CLI command. The relevant BGP policy tests have been updated to utilize this new deviation. Feedback suggests improving test robustness by adding default cases to switch statements and using t.Errorf for non-fatal errors, correcting a typo in a function comment, and fixing an issue tracker URL format to comply with the repository's style guide.
feature/bgp/policybase/otg_tests/aspath_and_community_test/aspath_and_community_test.go
Show resolved
Hide resolved
Arista now supports `match-as-path-set` so we can remove `match_as_path_set_unsupported` from the deviation. However, EOS requires `ip as-path regex-mode string` to match as-path-set members as POSIX regexes. Adding `routing_policy_as_path_set_enable_regex_mode` deviation which would configure that in the test.
57d4918 to
b04f6d2
Compare
Arista now supports
match-as-path-setso we can removematch_as_path_set_unsupportedfrom the deviation. However, EOS requiresip as-path regex-mode stringto match as-path-set members as POSIX regexes. Addingrouting_policy_as_path_set_enable_regex_modedeviation which would configure that in the test.