File tree 2 files changed +5
-5
lines changed
platform/pddf/platform-api-pddf-base/sonic_platform_pddf_base
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -96,11 +96,11 @@ def get_model(self):
96
96
"""
97
97
return self ._eeprom .part_number_str ()
98
98
99
- def get_serial (self ):
99
+ def get_service_tag (self ):
100
100
"""
101
- Retrieves the serial number of the chassis (Service tag)
101
+ Retrieves the service tag of the chassis
102
102
Returns:
103
- string: Serial number of chassis
103
+ string: Sevice tag of chassis
104
104
"""
105
105
return self ._eeprom .serial_str ()
106
106
@@ -123,7 +123,7 @@ def get_base_mac(self):
123
123
"""
124
124
return self ._eeprom .base_mac_addr ()
125
125
126
- def get_serial_number (self ):
126
+ def get_serial (self ):
127
127
"""
128
128
Retrieves the hardware serial number for the chassis
129
129
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ def get_speed(self):
150
150
if output ['status' ].isalpha ():
151
151
return 0
152
152
else :
153
- speed = int (output ['status' ])
153
+ speed = int (float ( output ['status' ]) )
154
154
155
155
max_speed = int (self .plugin_data ['PSU' ]['PSU_FAN_MAX_SPEED' ])
156
156
speed_percentage = round ((speed * 100 )/ max_speed )
You can’t perform that action at this time.
0 commit comments