Repository navigation
RT-5.1, RT-5.2: Add telemetry verification for network-instance protocol enabled and VLAN state paths - #6162
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 enhances the OpenConfig telemetry verification for static routing and VLAN configurations in the RT-5.1 and RT-5.2 test suites. By explicitly enabling the static protocol and ensuring VLAN states are correctly configured and verified, the changes improve the robustness and coverage of network instance testing across multiple platforms. 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 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 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
|
There was a problem hiding this comment.
Code Review
This pull request updates the static route and VLAN interface tests to include explicit validation of the static protocol enabled state and VLAN operational status. It also refactors configuration plugins to set the 'enabled' field for static routes and VLANs. The reviewer provided feedback to ensure mandatory state reversion using t.Cleanup() for VLAN status modifications and recommended replacing hardcoded vendor checks with standard deviation accessors to improve test portability.
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the static route tests to explicitly configure and validate the enabled state of the static routing protocol. It also adds global VLAN state validation (verifying name and operational status) to the VLAN interface test, updates the ConfigureVlan configuration plugin to consistently use the OpenConfig global VLAN model, and updates the test metadata files with the missing_value_for_defaults platform exception. I have no feedback to provide as there are no review comments and the changes align with the repository style guides.
|
Test Verification Results Arista (arista_7050cx): http://sponge2/2b6ef9a9-fee5-443a-8502-71b1af420ff6 — PASSED (TestStaticRouteVlan/Validate_VLAN_State) Arista (arista_7280_j2): http://sponge2/2a5ccaca-7ce2-4fe5-938e-cc79bc599ee3 — PASSED |
54ca343 to
9b9f708
Compare
db1ec99 to
24b32d2
Compare
…col enabled and VLAN state paths
24b32d2 to
eff3b5d
Compare
Summary
Adds OpenConfig telemetry state verification and documentation for three
/network-instances/network-instance/paths acrossRT-5.1(basic_static_route_support_test) andRT-5.2(static_route_with_vlan_interface):/network-instances/network-instance/protocols/protocol/state/enabled(RT-5.1)/network-instances/network-instance/vlans/vlan/state/name(RT-5.2)/network-instances/network-instance/vlans/vlan/state/status(RT-5.2)Changes
feature/staticroute/otg_tests/basic_static_route_support_test(RT-5.1):README.mdwith telemetry parameter coverage for/network-instances/network-instance/protocols/protocol/state/enabled.verifyStaticProtocolStateinbasic_static_route_support_test.goto verify that theSTATICprotocolstate/enabledleaf istrue(respectingdeviations.MissingValueForDefaults).missing_value_for_defaults: trueundercisco_platform_exceptionsinmetadata.textproto.feature/staticroute/otg_tests/static_route_with_vlan_interface(RT-5.2):README.mdwith configuration and telemetry parameter coverage for/network-instances/network-instance/vlans/vlan/state/nameand/network-instances/network-instance/vlans/vlan/state/status.verifyVLANStateinstatic_route_with_vlan_interface_test.goto verify VLANstate/nameandstate/status(ACTIVE) whenDeprecatedVlanIdis not set.internal/cfgplugins:internal/cfgplugins/staticroute.goto explicitly setsp.SetEnabled(true)when configuring theSTATICprotocol on the default network instance.internal/cfgplugins/interface.goto configure the VLAN name (vlan_<id>) and status (Vlan_Status_ACTIVE) on the default network instance VLAN entry.Testing Done
Verified
RT-5.1(basic_static_route_support_test) andRT-5.2(static_route_with_vlan_interface) across Arista, Cisco, Juniper, and Nokia platforms.