TRANSCEIVER-10.1/TRANSCEIVER-6.1/TRANSCEIVER-11.2 : optical-transport : Update terminal-device model for logical channel assignments - #6003
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 updates the terminal-device configuration logic to align with recent changes in the OpenConfig terminal-device model. By removing the transceiver reference from the ingress parameters, the implementation ensures consistency with the updated logical channel assignment requirements. 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 removes the Transceiver field assignment from the ingress configuration in ConfigETHChannel within internal/cfgplugins/interface.go. The reviewer points out that a similar change is needed in updateETHChannelConfig to prevent schema validation failures, as the same YANG constraint applies there.
59c8ed8 to
5541755
Compare
https://github.com/openconfig/public/blob/6039bd7b294ad45161da3a258e7f6b4e48b0495c/release/models/optical-transport/openconfig-terminal-device.yang#L1250
snippet as below
leaf interface {
type oc-if:base-interface-ref;
description
"Reference to the interface carrying the input signal
for the logical channel. The ingress will specify an interface
in the case of a transceiver being utilized directly in a
router and bypassing a dedicated terminal device. **When
specified, the other leaves in the ingress config must be
empty.";
}
}