Skip to content

Commit

Permalink
Dell S6000,S6100 system health changes (sonic-net#6788)
Browse files Browse the repository at this point in the history
Needed support for platform system health in Dell platforms
  • Loading branch information
aravindmani-1 authored and Carl Keene committed Aug 7, 2021
1 parent 0105514 commit 5a69cb8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "blinking green"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"services_to_ignore": [],
"devices_to_ignore": [],
"user_defined_checkers": [],
"polling_interval": 60,
"led_color": {
"fault": "amber",
"normal": "green",
"booting": "blinking green"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,9 @@ def get_change_event(self, timeout=0):
return True, ret_dict
return False, ret_dict

def initizalize_system_led(self):
return True

def set_status_led(self, color):
"""
Sets the state of the system LED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ def get_change_event(self, timeout=0):

return True, ret_dict

def initizalize_system_led(self):
return True

def set_status_led(self, color):
"""
Sets the state of the system LED
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def get_voltage(self):
if not is_valid:
return None

return "{:.1f}".format(voltage)
return float(voltage)

def get_voltage_low_threshold(self):
"""
Expand Down Expand Up @@ -159,7 +159,7 @@ def get_current(self):
if not is_valid:
return None

return "{:.1f}".format(current)
return float(current)

def get_power(self):
"""
Expand All @@ -173,7 +173,7 @@ def get_power(self):
if not is_valid:
return None

return "{:.1f}".format(power)
return float(power)

def get_powergood_status(self):
"""
Expand Down

0 comments on commit 5a69cb8

Please sign in to comment.