mirror of
https://github.com/Telecominfraproject/ols-nos.git
synced 2025-10-30 09:42:39 +00:00
[BFN] Fix 'show platform psustatus' command (#15934)
SONiC CLI command was broken. admin@sonic:~$ show platform psustatus PSU Model Serial HW Rev Voltage (V) Current (A) Power (W) Status LED ----- --------------- ------------------ -------- ------------- ------------- ----------- -------- ----- PSU 1 PFE600-12-054NA 420000956420600006 206 N/A N/A 82.00 OK green PSU 2 PFE600-12-054NA 420000956420600248 206 N/A N/A 60.00 NOT OK green
This commit is contained in:
@@ -110,7 +110,7 @@ class Psu(PsuBase):
|
|||||||
|
|
||||||
@cancel_on_sigterm
|
@cancel_on_sigterm
|
||||||
def get_metric_value(self, metric_name):
|
def get_metric_value(self, metric_name):
|
||||||
return get_metric_value(Psu.__sensors_get(), "PSU%d ".format(self.__index) + metric_name)
|
return get_metric_value(Psu.__sensors_get(), "PSU{} ".format(self.__index) + metric_name)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_num_psus():
|
def get_num_psus():
|
||||||
|
|||||||
Reference in New Issue
Block a user