Skip to content

Transceiver_101_103_fix#5641

Open
manan-patel wants to merge 1 commit into
openconfig:mainfrom
b4firex:T_101_103_fix
Open

Transceiver_101_103_fix#5641
manan-patel wants to merge 1 commit into
openconfig:mainfrom
b4firex:T_101_103_fix

Conversation

@manan-patel

Copy link
Copy Markdown
Contributor

No description provided.

@manan-patel manan-patel requested review from a team as code owners July 1, 2026 03:17
@OpenConfigBot

Copy link
Copy Markdown

Pull Request Functional Test Report for #5641 / bb2bbfa

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Cisco 8000E status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Cisco XRd status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Juniper ncPTX status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Nokia SR Linux status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Openconfig Lemming status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Cisco 8808 status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Juniper PTX10008 status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.
Nokia 7250 IXR-10e status
status
TRANSCEIVER-101: Telemetry: ZR platform OC paths streaming.
TRANSCEIVER-103: Telemetry: ZR Plus platform OC paths streaming.

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 Cisco 800G ZR and ZR+ optics within the platform testing framework. It includes necessary updates to interface configuration logic, metadata definitions, and telemetry validation routines to ensure compatibility with Cisco-specific hardware behaviors and operational modes.

Highlights

  • Cisco 800G ZR/ZR+ Support: Added support for Cisco 800G ZR and ZR+ operational modes (6001) in interface configuration and telemetry validation.
  • Telemetry Validation Adjustments: Updated transceiver telemetry validation to handle Cisco-specific form-factor reporting and commented out redundant DOWN-state telemetry checks in platform tests.
  • Configuration Refinements: Updated metadata textprotos to include new platform exceptions and refined OTN channel configuration logic.
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.

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

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.

Code Review

This pull request introduces vendor-specific handling for Cisco 800G ZR/ZR+ optics, including custom operational modes, fallback transceiver form-factor decoding, and support for new platform exceptions. It also refines telemetry validation by skipping detailed component checks when interfaces are in a DOWN state. Feedback on the changes includes a recommendation to use gnmi.Lookup instead of gnmi.Get to prevent test failures when retrieving the transceiver form factor, and a suggestion to remove a redundant index assignment block in the interface configuration plugin.

Comment on lines 591 to 593
if deviations.EthChannelAssignmentCiscoNumbering(dut) {
assignment[0].Index = ygot.Uint32(1)
assignment[assignmentIndex].Index = ygot.Uint32(1)
}

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.

medium

The if deviations.EthChannelAssignmentCiscoNumbering(dut) block is redundant. When EthChannelAssignmentCiscoNumbering is true, assignmentIndex is set to 1, and the map entry is initialized with Index: ygot.Uint32(assignmentIndex) (which is 1). Therefore, explicitly setting assignment[assignmentIndex].Index = ygot.Uint32(1) again is unnecessary. This block can be safely removed.

Comment on lines +208 to +211
directFormFactor := gnmi.Get(t, dut, gnmi.OC().Component(params.TransceiverNames[p.Name()]).Transceiver().FormFactor().State())
if directFormFactor != oc.TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_UNSET {
formFactor = directFormFactor
}

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.

medium

Using gnmi.Get directly can cause the test to fail immediately if the form-factor leaf is not present or supported on the device. Using gnmi.Lookup is more robust as it allows checking if the value is present before using it.

Suggested change
directFormFactor := gnmi.Get(t, dut, gnmi.OC().Component(params.TransceiverNames[p.Name()]).Transceiver().FormFactor().State())
if directFormFactor != oc.TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_UNSET {
formFactor = directFormFactor
}
if directFormFactorVal, present := gnmi.Lookup(t, dut, gnmi.OC().Component(params.TransceiverNames[p.Name()]).Transceiver().FormFactor().State()).Val(); present {
if directFormFactorVal != oc.TransportTypes_TRANSCEIVER_FORM_FACTOR_TYPE_UNSET {
formFactor = directFormFactorVal
}
}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants