Thanks to visit codestin.com
Credit goes to github.com

Skip to content

transceiver 102 and 104 fix#5642

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

transceiver 102 and 104 fix#5642
manan-patel wants to merge 1 commit into
openconfig:mainfrom
b4firex:T_102_104_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:36
@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 critical updates to support Cisco 800G ZR/ZR+ optics and improves the robustness of the transceiver testing framework. Key changes include adding specific operational modes for Cisco hardware, refining how telemetry streams are handled during interface state changes to prevent stale data, and adjusting configuration logic to better align with vendor-specific requirements.

Highlights

  • Cisco Transceiver Support: Added support for Cisco 800G ZR and ZR+ operational modes, including updated configuration parameters and metadata exceptions.
  • Telemetry Validation Improvements: Refined telemetry validation logic to handle asynchronous state transitions and added stream recreation to ensure fresh data after interface flaps.
  • Configuration Logic Updates: Updated OTN channel configuration to respect unsupported tributary protocols and corrected index assignment logic for Cisco numbering.
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.

@OpenConfigBot

Copy link
Copy Markdown

Pull Request Functional Test Report for #5642 / a195e8d

Virtual Devices

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

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
status
TRANSCEIVER-102: Telemetry: ZR terminal-device OC paths streaming.
TRANSCEIVER-104: Telemetry: ZR Plus terminal-device OC paths streaming.
Cisco 8808 status
status
TRANSCEIVER-102: Telemetry: ZR terminal-device OC paths streaming.
TRANSCEIVER-104: Telemetry: ZR Plus terminal-device OC paths streaming.
Juniper PTX10008 status
status
TRANSCEIVER-102: Telemetry: ZR terminal-device OC paths streaming.
TRANSCEIVER-104: Telemetry: ZR Plus terminal-device OC paths streaming.
Nokia 7250 IXR-10e status
status
TRANSCEIVER-102: Telemetry: ZR terminal-device OC paths streaming.
TRANSCEIVER-104: Telemetry: ZR Plus terminal-device OC paths streaming.

Help

@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 adds support for Cisco-specific 800G operational modes, updates OTN and Ethernet channel configurations to handle platform deviations, and refactors telemetry validation to handle interface flapping and DOWN states. The review feedback identifies a semantic bug in the simplified pre-FEC BER validation logic where metrics are checked independently rather than ensuring they all match the same inactive value, and points out a redundant index assignment in the Ethernet channel configuration.

Comment on lines +427 to +431
isPreFECBERReady :=
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetMin()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetAvg()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetMax()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetInstant())

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

The new logic using slices.Contains checks if each of the pre-FEC BER metrics (Min, Avg, Max, Instant) is present in inactivePreFECBER independently. This is semantically different from the original logic, which ensured that all four metrics are equal to the same inactive value (e.g., all 0.0, or all 0.5, or all 1.0). If different metrics have different inactive values, the channel should not be considered ready/inactive.

We can simplify the logic while preserving the original correctness by extracting the Min value first and then verifying that the other fields are equal to it.

Suggested change
isPreFECBERReady :=
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetMin()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetAvg()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetMax()) &&
slices.Contains(inactivePreFECBER, val.GetOtn().GetPreFecBer().GetInstant())
min := val.GetOtn().GetPreFecBer().GetMin()
isPreFECBERReady := slices.Contains(inactivePreFECBER, min) &&
val.GetOtn().GetPreFecBer().GetAvg() == min &&
val.GetOtn().GetPreFecBer().GetMax() == min &&
val.GetOtn().GetPreFecBer().GetInstant() == min

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

This conditional block is completely redundant. When deviations.EthChannelAssignmentCiscoNumbering(dut) is true, assignmentIndex is set to 1, and assignment[assignmentIndex] is already initialized with Index: ygot.Uint32(assignmentIndex) (which is 1). Therefore, re-assigning assignment[assignmentIndex].Index = ygot.Uint32(1) has no effect and can be safely removed.

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