File tree 10 files changed +6
-49
lines changed
accton/x86_64-accton_as7116_54x-r0/sonic_platform
x86_64-cel_e1031-r0/sonic_platform
x86_64-cel_seastone-r0/sonic_platform
x86_64-cel_silverstone-r0/sonic_platform
sonic-platform-modules-cel/services/platform_api/sonic_platform
sonic-platform-modules-inventec
sonic-platform-modules-juniper/sonic_platform
mellanox/mlnx-platform-api/sonic_platform
10 files changed +6
-49
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def get_base_mac(self):
93
93
"""
94
94
return self ._eeprom .get_mac ()
95
95
96
- def get_serial_number (self ):
96
+ def get_serial (self ):
97
97
"""
98
98
Retrieves the hardware serial number for the chassis
99
99
Returns:
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ def get_base_mac(self):
87
87
"""
88
88
return self ._eeprom .get_mac ()
89
89
90
- def get_serial_number (self ):
90
+ def get_serial (self ):
91
91
"""
92
92
Retrieves the hardware serial number for the chassis
93
93
Returns:
Original file line number Diff line number Diff line change @@ -91,14 +91,6 @@ def get_base_mac(self):
91
91
"""
92
92
return self ._eeprom .get_mac ()
93
93
94
- def get_serial_number (self ):
95
- """
96
- Retrieves the hardware serial number for the chassis
97
- Returns:
98
- A string containing the hardware serial number for this chassis.
99
- """
100
- return self ._eeprom .get_serial ()
101
-
102
94
def get_system_eeprom_info (self ):
103
95
"""
104
96
Retrieves the full content of system EEPROM information for the chassis
@@ -252,7 +244,7 @@ def get_serial(self):
252
244
Returns:
253
245
string: Serial number of device
254
246
"""
255
- return self .get_serial_number ()
247
+ return self ._eeprom . get_serial ()
256
248
257
249
def get_status (self ):
258
250
"""
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def get_base_mac(self):
75
75
"""
76
76
return self ._eeprom .get_mac ()
77
77
78
- def get_serial_number (self ):
78
+ def get_serial (self ):
79
79
"""
80
80
Retrieves the hardware serial number for the chassis
81
81
Returns:
Original file line number Diff line number Diff line change @@ -101,15 +101,6 @@ def get_base_mac(self):
101
101
"""
102
102
return self ._eeprom .base_mac_addr ()
103
103
104
- def get_serial_number (self ):
105
- """
106
- Retrieves the hardware serial number for the chassis
107
-
108
- Returns:
109
- A string containing the hardware serial number for this chassis.
110
- """
111
- return self ._eeprom .serial_number_str ()
112
-
113
104
def get_system_eeprom_info (self ):
114
105
"""
115
106
Retrieves the full content of system EEPROM information for the chassis
Original file line number Diff line number Diff line change @@ -126,14 +126,6 @@ def get_base_mac(self):
126
126
"""
127
127
return self ._eeprom .get_mac ()
128
128
129
- def get_serial_number (self ):
130
- """
131
- Retrieves the hardware serial number for the chassis
132
- Returns:
133
- A string containing the hardware serial number for this chassis.
134
- """
135
- return self ._eeprom .get_serial ()
136
-
137
129
def get_system_eeprom_info (self ):
138
130
"""
139
131
Retrieves the full content of system EEPROM information for the chassis
Original file line number Diff line number Diff line change @@ -116,15 +116,6 @@ def get_base_mac(self):
116
116
"""
117
117
return self ._eeprom .base_mac_address ()
118
118
119
- def get_serial_number (self ):
120
- """
121
- Retrieves the hardware serial number for the chassis
122
-
123
- Returns:
124
- A string containing the hardware serial number for this chassis.
125
- """
126
- return self ._eeprom .serial_number_str ()
127
-
128
119
def get_system_eeprom_info (self ):
129
120
"""
130
121
Retrieves the full content of system EEPROM information for the chassis
Original file line number Diff line number Diff line change @@ -119,15 +119,6 @@ def get_base_mac(self):
119
119
"""
120
120
return self ._eeprom .base_mac_addr ()
121
121
122
- def get_serial_number (self ):
123
- """
124
- Retrieves the hardware serial number for the chassis
125
-
126
- Returns:
127
- A string containing the hardware serial number for this chassis.
128
- """
129
- return self ._eeprom .serial_number_str ()
130
-
131
122
def get_system_eeprom_info (self ):
132
123
"""
133
124
Retrieves the full content of system EEPROM information for the chassis
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ def get_part_number(self):
86
86
return False
87
87
88
88
89
- def get_serial_number (self ):
89
+ def get_serial (self ):
90
90
serial_number_list = self .get_parameter_value ('Serial Number' )
91
91
if serial_number_list :
92
92
serial_number = '' .join (serial_number_list )
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ def get_base_mac(self):
287
287
return self ._eeprom .get_base_mac ()
288
288
289
289
290
- def get_serial_number (self ):
290
+ def get_serial (self ):
291
291
"""
292
292
Retrieves the hardware serial number for the chassis
293
293
You can’t perform that action at this time.
0 commit comments