Skip to content

ACL-1.2 Add Strata platform support to acl_update_test#5520

Open
deva-arista wants to merge 2 commits into
openconfig:mainfrom
deva-arista:ar_Acl1_2
Open

ACL-1.2 Add Strata platform support to acl_update_test#5520
deva-arista wants to merge 2 commits into
openconfig:mainfrom
deva-arista:ar_Acl1_2

Conversation

@deva-arista
Copy link
Copy Markdown

acl_update_test deviations for vendor "ARISTA" was set for "sand" platform. Strata platform (e.g.
DCS-7050CX4M-48D8-F) is slower in updating ACL and requires new deviation acl_update_delay_factor.

This change adds the hardware_model_regex to differentiate between different ARISTA platforms.

  • (M) feature/acl/otg_tests/acl_update_test/acl_update_test.go
    • Use effectiveMaxDroppedPackets based on maxDroppedPackets and ACLUpdateDelayFactor
  • (M) feature/acl/otg_tests/acl_update_test/metadata.textproto
    • Add hardware_model_regex to existing Arista sand platform_exceptions entry.
    • Add new platform_exceptions deviation acl_update_delay_factor for strata (DCS-7050.*)
  • (M) internal/cfgplugins/dut_initialize.go
    • Skip TCAM profile initialization for strata
  • (M) proto/metadata.proto
    • Add acl_update_delay_factor deviation field (427).
  • (M) proto/metadata_go_proto/metadata.pb.go
    • Regenerated from metadata.proto.
  • (M) internal/deviations/deviations.go
    • Add ACLUpdateDelayFactor accessor.

@deva-arista deva-arista requested review from a team as code owners May 28, 2026 17:02
@OpenConfigBot
Copy link
Copy Markdown

Pull Request Functional Test Report for #5520 / f4f091a

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
ACL-1.2: ACL Update (Make-before-break)
Cisco 8000E status
ACL-1.2: ACL Update (Make-before-break)
Cisco XRd status
ACL-1.2: ACL Update (Make-before-break)
Juniper ncPTX status
ACL-1.2: ACL Update (Make-before-break)
Nokia SR Linux status
ACL-1.2: ACL Update (Make-before-break)
Openconfig Lemming status
ACL-1.2: ACL Update (Make-before-break)

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
ACL-1.2: ACL Update (Make-before-break)
Cisco 8808 status
ACL-1.2: ACL Update (Make-before-break)
Juniper PTX10008 status
ACL-1.2: ACL Update (Make-before-break)
Nokia 7250 IXR-10e status
ACL-1.2: ACL Update (Make-before-break)

Help

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 introduces support for Arista Strata platforms within the ACL update testing framework. By adding a configurable delay factor, the tests can now accommodate the slower ACL update performance characteristic of these specific hardware models, ensuring more reliable test execution across different Arista platforms.

Highlights

  • Strata Platform Support: Added support for Arista Strata platforms in acl_update_test by introducing a new acl_update_delay_factor deviation to account for slower ACL update times.
  • Configuration Enhancements: Updated metadata.textproto to include hardware_model_regex for better platform differentiation and configured the new delay factor for Strata devices.
  • Code Adjustments: Modified acl_update_test.go to calculate effectiveMaxDroppedPackets using the new delay factor and updated dut_initialize.go to skip TCAM profile initialization for Strata models.
  • Proto Updates: Extended metadata.proto with the acl_update_delay_factor field and regenerated the corresponding Go protobuf files.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the 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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. 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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new deviation, acl_update_delay_factor, to scale the maximum allowed dropped packets during ACL update tests on Arista devices. It updates the metadata proto, adds the deviation accessor, and configures the TCAM profile for DCS-7050. The review feedback highlights a critical issue in NewDUTHardwareInit where mutating the global aristaTcamProfileMap introduces side effects across tests, and suggests returning an empty string directly instead.

Comment on lines +1285 to +1287
if strings.Contains(dut.Model(), "DCS-7050") {
aristaTcamProfileMap[FeatureACLCounters] = ``
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

Modifying the package-level global map aristaTcamProfileMap inside NewDUTHardwareInit introduces a side effect that persists across subsequent calls and tests. If a non-DCS-7050 device is initialized after a DCS-7050 device in the same test run, its FeatureACLCounters profile will incorrectly be empty.

Instead of mutating the global map, return an empty string directly when the feature is FeatureACLCounters and the model is DCS-7050.

Suggested change
if strings.Contains(dut.Model(), "DCS-7050") {
aristaTcamProfileMap[FeatureACLCounters] = ``
}
if feature == FeatureACLCounters && strings.Contains(dut.Model(), "DCS-7050") {
return ""
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants