Skip to content

Commit fb8a214

Browse files
[platform][IX7] Modify get_reboot_cause in chassis.py for test_reboot in testbed
1 parent 60b3c4f commit fb8a214

File tree

1 file changed

+3
-1
lines changed
  • platform/broadcom/sonic-platform-modules-quanta/ix7-32x/sonic_platform

1 file changed

+3
-1
lines changed

platform/broadcom/sonic-platform-modules-quanta/ix7-32x/sonic_platform/chassis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ def get_reboot_cause(self):
221221
is "REBOOT_CAUSE_HARDWARE_OTHER", the second string can be used
222222
to pass a description of the reboot cause.
223223
"""
224-
return (ChassisBase.REBOOT_CAUSE_HARDWARE_OTHER, "Invalid Reason")
224+
return (ChassisBase.REBOOT_CAUSE_NON_HARDWARE, None)
225+
#TODO: Add Hardware and watchdog reboot cause
226+
#return (ChassisBase.REBOOT_CAUSE_HARDWARE_OTHER, "Invalid Reason")
225227

226228
##############################################
227229
# Other methods

0 commit comments

Comments
 (0)