Repository navigation
Add telemetry coverage for negotiated-port-speed and subinterface state/counter leaves - #6150
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 test coverage by adding validation for several interface and subinterface state paths. It also introduces new deviation mechanisms to accommodate platform-specific limitations across different vendors, ensuring test stability and reliability in heterogeneous environments. 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 adds telemetry validation for negotiated port speed, subinterface name and ifindex, and subinterface packet counters, introducing several new platform deviations to handle vendor-specific limitations. The review feedback highlights two key improvement opportunities: first, replacing direct gnmi.Get and gnmi.Lookup calls with gnmi.Await and gnmi.Watch in telemetry_port_speed_test.go to prevent flaky test failures in accordance with the style guide; second, optimizing redundant gNMI operations in telemetry_interfaces_test.go by retrieving both presence and value in a single .Val() call.
ee2ad2d to
cbd2e72
Compare
|
/gemini-review |
cbd2e72 to
6535ad7
Compare
|
Update Test Pass logs in Mirror bug. |
0d23c92 to
58b2aa4
Compare
fb8acff to
538705f
Compare
1a06ba8 to
b0447bb
Compare
…te/counter leaves Adds OpenConfig README and test coverage for 5 interface/subinterface telemetry state paths across gNMI-1.5, gNMI-1.11, and gNMI-1.28: - gNMI-1.5 (telemetry_port_speed_test): Add /interfaces/interface/ethernet/state/negotiated-port-speed coverage and Canonical OC JSON block; add negotiated_port_speed_unsupported deviation for Nokia. - gNMI-1.11 (telemetry_interface_packet_counters_test): Add /interfaces/interface/subinterfaces/subinterface/state/counters/in-unicast-pkts and out-multicast-pkts coverage. - gNMI-1.28 (telemetry_interfaces_test): Add /interfaces/interface/subinterfaces/subinterface/state/ifindex and name coverage; add subinterface_ifindex_unsupported deviation for Juniper.
b0447bb to
32604c1
Compare
Summary
Adds OpenConfig README and test coverage for 5 interface/subinterface telemetry state paths across gNMI-1.5, gNMI-1.11, and gNMI-1.28:
gNMI-1.5 (
feature/gnmi/otg_tests/telemetry_port_speed_test):/interfaces/interface/ethernet/state/negotiated-port-speed.negotiated-port-speedpresence on physical Ethernet member ports and validated the speed against the configured port speed whenauto-negotiateis enabled.negotiated_port_speed_unsupportedfor Nokia (b/572214470).gNMI-1.11 (
feature/interface/otg_tests/telemetry_interface_packet_counters_test):/interfaces/interface/subinterfaces/subinterface/state/counters/in-unicast-pkts/interfaces/interface/subinterfaces/subinterface/state/counters/out-multicast-pkts!deviations.SubinterfacePacketCountersMissing(dut)and enabledsubinterface_packet_counters_missingfor Juniper inmetadata.textproto.70to100to prevent false failures from sample interval polling jitter.gNMI-1.28 (
feature/gnmi/tests/telemetry_interfaces_test):/interfaces/interface/subinterfaces/subinterface/state/ifindex/interfaces/interface/subinterfaces/subinterface/state/namesubinterface_ifindex_unsupportedfor Juniper (b/572208368).subinterface_name_unsupportedfor Cisco (b/572214473).require_routed_subinterface_0handling for Arista subinterface creation and preserved canonical interface casing ondut.Port(t, "port1").Name().