-
Notifications
You must be signed in to change notification settings - Fork 150
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
Update gNMI-1.4 with FAN_TRAY type. #3046
Update gNMI-1.4 with FAN_TRAY type. #3046
Conversation
Pull Request Test Coverage Report for Build 9962499111Details
💛 - Coveralls |
Here are some examples of vendor hardware models that have fan trays along with how many fan trays they are expected to have. These fan tray components should have
Other devices such as Arista DCS-7808 do not have fan tray components. |
feature/platform/tests/telemetry_inventory_test/telemetry_inventory_test.go
Outdated
Show resolved
Hide resolved
Since not all chassis are expected to have FAN components, should the FAN_TRAY component validation just replace FAN validation? Or there should be a switch/case statement that enables/disables FAN validation per vendor. |
I added a deviation to customize which devices support the FAN_TRAY type. From my understanding though, a device could have either 1) just FAN_TRAY, 2) FAN_TRAY with child FANs, or 3) just FANs that are not in a tray). So I think we'll want to continue to validate both components because the FAN_TRAY type is not replacing the FAN type - they are different components. |
But the FAN is not a mandatory component in this case (like you indicated in # 1). It can be present, but it doesn't have to; which is not accounted for in the current code. |
feature/platform/tests/telemetry_inventory_test/metadata.textproto
Outdated
Show resolved
Hide resolved
Pull Request Functional Test Report for #3046 / 9c81c8eVirtual Devices
Hardware Devices
|
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
* add fan_tray type to readme * Add FAN_TRAY type to telemetry_inventory_test.go. * add NumFanTrays arg * skip fan tray telemetry check when 0 are expected * add FAN_TRAY as platform_type to README. * validate that fan tray parent is the chassis. * validate fan component's parent. * Add deviation for fan tray type. * Use fan tray deviation in telemetry_inventory_test. * fix call to FanTrayTypeUnsupported. * Remove switch_chip_id_unsupported from Nokia. * Add arg_num_fans. * Skip fan validation when args_num_fans is 0. * Update args.go * Fix metadata.pb.go. * Fix metadata.pb.go. * Fix deviations.go typo. * Only check that FAN has ancestor chassis, not the immediate parent type. * Fix metadata.pg.go. * FIx metadata.pb.go. * Fix metadata.pb.go. * Remove fan_tray deviation from metadata.proto. * Remove fan_tray deviation from deviations.go. * Remove fan_tray deviation from metadata.textproto. * Update metadata.proto * Remove fan_tray deviation from telemetry_inventory_test.go. * Fix metadata.pb.go. * Fix brackets in telemetry_inventory_test.go.
* add fan_tray type to readme * Add FAN_TRAY type to telemetry_inventory_test.go. * add NumFanTrays arg * skip fan tray telemetry check when 0 are expected * add FAN_TRAY as platform_type to README. * validate that fan tray parent is the chassis. * validate fan component's parent. * Add deviation for fan tray type. * Use fan tray deviation in telemetry_inventory_test. * fix call to FanTrayTypeUnsupported. * Remove switch_chip_id_unsupported from Nokia. * Add arg_num_fans. * Skip fan validation when args_num_fans is 0. * Update args.go * Fix metadata.pb.go. * Fix metadata.pb.go. * Fix deviations.go typo. * Only check that FAN has ancestor chassis, not the immediate parent type. * Fix metadata.pg.go. * FIx metadata.pb.go. * Fix metadata.pb.go. * Remove fan_tray deviation from metadata.proto. * Remove fan_tray deviation from deviations.go. * Remove fan_tray deviation from metadata.textproto. * Update metadata.proto * Remove fan_tray deviation from telemetry_inventory_test.go. * Fix metadata.pb.go. * Fix brackets in telemetry_inventory_test.go.
No description provided.