Skip to content

Commit badc75f

Browse files
committed
Fix AS7726 not showing serial number in 'show platform summary' (sonic-net#10489)
1 parent 330d11a commit badc75f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

platform/pddf/platform-api-pddf-base/sonic_platform_pddf_base/pddf_chassis.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ def get_model(self):
9696
"""
9797
return self._eeprom.part_number_str()
9898

99-
def get_serial(self):
99+
def get_service_tag(self):
100100
"""
101-
Retrieves the serial number of the chassis (Service tag)
101+
Retrieves the service tag of the chassis
102102
Returns:
103-
string: Serial number of chassis
103+
string: Sevice tag of chassis
104104
"""
105105
return self._eeprom.serial_str()
106106

@@ -123,7 +123,7 @@ def get_base_mac(self):
123123
"""
124124
return self._eeprom.base_mac_addr()
125125

126-
def get_serial_number(self):
126+
def get_serial(self):
127127
"""
128128
Retrieves the hardware serial number for the chassis
129129

platform/pddf/platform-api-pddf-base/sonic_platform_pddf_base/pddf_fan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def get_speed(self):
150150
if output['status'].isalpha():
151151
return 0
152152
else:
153-
speed = int(output['status'])
153+
speed = int(float(output['status']))
154154

155155
max_speed = int(self.plugin_data['PSU']['PSU_FAN_MAX_SPEED'])
156156
speed_percentage = round((speed*100)/max_speed)

0 commit comments

Comments
 (0)