-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TRANSCEIVER-12 Fixed with adding required deviations #3638
base: main
Are you sure you want to change the base?
Conversation
-deviation `require_zr_oper_mode` --> https://partnerissuetracker.corp.google.com/issues/383369830 -deviation `explicit_dco_config` --> https://partnerissuetracker.corp.google.com/issues/383075189 "This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
Pull Request Test Coverage Report for Build 12712751781Details
💛 - Coveralls |
Attached HwIXR10-e execution logs in https://partnerissuetracker.corp.google.com/issues/383666725 |
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
}, | ||
}) | ||
} | ||
if deviations.RequireZrOperMode(dut) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not encode specific implementation's oper-mode's here.
If you want to specify a specific oper-mode, this should be done through a flag in the tests. As an example:
operationalModeFlag = flag.Int("operational_mode", 1, "vendor-specific operational-mode for the channel") |
}, | ||
}) | ||
} | ||
if deviations.RequireZrOperMode(dut) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should be using ConfigOpticalChannel() here and then we don't need a deviation?
func ConfigOpticalChannel(t *testing.T, dut *ondatra.DUTDevice, och string, frequency uint64, targetOpticalPower float64, operationalMode uint16) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can set this up calling ConfigOpticalChannel() under InterfaceConfig(); however will this have any negative impact on existing implementation of other vendors where the oper-mode may be self-discovered?
require_zr_oper_mode
--> https://partnerissuetracker.corp.google.com/issues/383369830explicit_dco_config
--> https://partnerissuetracker.corp.google.com/issues/383075189"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."