Skip to content

Commit 56b5b14

Browse files
authored
[ChassisBase] Make reboot cause constant strings human-readable (sonic-net#35)
1 parent c021963 commit 56b5b14

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

sonic_platform_base/chassis_base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ class ChassisBase(device_base.DeviceBase):
1717
DEVICE_TYPE = "chassis"
1818

1919
# Possible reboot causes
20-
REBOOT_CAUSE_POWER_LOSS = "power_loss"
21-
REBOOT_CAUSE_THERMAL_OVERLOAD_CPU = "thermal_overload_cpu"
22-
REBOOT_CAUSE_THERMAL_OVERLOAD_ASIC = "thermal_overload_asic"
23-
REBOOT_CAUSE_THERMAL_OVERLOAD_OTHER = "thermal_overload_other"
24-
REBOOT_CAUSE_INSUFFICIENT_FAN = "insufficient_fan"
25-
REBOOT_CAUSE_WATCHDOG = "watchdog"
26-
REBOOT_CAUSE_HARDWARE_OTHER = "hardware_other"
27-
REBOOT_CAUSE_NON_HARDWARE = "non_hardware"
20+
REBOOT_CAUSE_POWER_LOSS = "Power Loss"
21+
REBOOT_CAUSE_THERMAL_OVERLOAD_CPU = "Thermal Overload: CPU"
22+
REBOOT_CAUSE_THERMAL_OVERLOAD_ASIC = "Thermal Overload: ASIC"
23+
REBOOT_CAUSE_THERMAL_OVERLOAD_OTHER = "Thermal Overload: Other"
24+
REBOOT_CAUSE_INSUFFICIENT_FAN_SPEED = "Insufficient Fan Speed"
25+
REBOOT_CAUSE_WATCHDOG = "Watchdog"
26+
REBOOT_CAUSE_HARDWARE_OTHER = "Hardware - Other"
27+
REBOOT_CAUSE_NON_HARDWARE = "Non-Hardware"
2828

2929
# List of ModuleBase-derived objects representing all modules
3030
# available on the chassis (for use with modular chassis)

0 commit comments

Comments
 (0)