Skip to content

Commit 62c55fc

Browse files
authored
Merge pull request #953 from CiscoTestAutomation/tasarath/c9400_restore
Restore c9400 platform changes
2 parents 90de72e + 9a7572b commit 62c55fc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/genie/libs/parser/iosxe/cat9k/c9400/show_platform.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,18 @@ def cli(self, include='', output=None):
237237
# Sensor List: Environmental Monitoring
238238
p4 = re.compile(r'Sensor\s+List:\s+(?P<sensor_list>.+)')
239239

240-
# Sensor Location State Reading Threshold(Minor,Major,Critical,Shutdown)
241-
# Temp: Coretemp R0 Normal 48 Celsius (107,117,123,125)(Celsius)
242-
# Temp: UADP R0 Normal 56 Celsius (107,117,123,125)(Celsius)
243-
# V1: VX1 R0 Normal 869 mV na
244-
# Temp: inlet R0 Normal 32 Celsius (56 ,66 ,96 ,98 )(Celsius)
240+
# Sensor Location State Reading Threshold(Minor,Major,Critical,Shutdown)
241+
# Temp: Coretemp Chassis1-R0 Normal 46 Celsius (107,117,123,125)(Celsius)
242+
# Temp: UADP Chassis1-R0 Normal 54 Celsius (107,117,123,125)(Celsius)
243+
# V1: VX1 Chassis1-R0 Normal 871 mV na
244+
# V1: VX2 Chassis1-R0 Normal 1498 mV na
245+
# V1: VX3 Chassis1-R0 Normal 1055 mV na
246+
# V1: VX4 Chassis1-R0 Normal 852 mV na
247+
# V1: VX5 Chassis1-R0 Normal 1507 mV na
248+
# V1: VX6 Chassis1-R0 Normal 1301 mV na
249+
# V1: VX7 Chassis1-R0 Normal 1005 mV na
245250
p5 = re.compile(
246-
r'(?P<sensor_name>\S+(:\s+\S+)?)\s+(?P<slot>([A-Z][0-9]|\d/\d))\s+(?P<state>\S+)\s+(?P<reading>\d+\s+\S+(\s+(AC|DC))?)\s+(\((?P<minor>\d+\s*),(?P<major>\d+\s*),(?P<critical>\d+\s*),(?P<shutdown>\d+\s*)\)\((?P<unit>\S+)\))?'
251+
r'(?P<sensor_name>\S+(:\s+\S+)?)\s+(?P<slot>\S+[0-9])\s+(?P<state>\S+)\s+(?P<reading>\d+\s+\S+(\s+(AC|DC))?)\s+(\((?P<minor>\d+\s*),(?P<major>\d+\s*),(?P<critical>\d+\s*),(?P<shutdown>\d+\s*)\)\((?P<unit>\S+)\))?'
247252
)
248253

249254
# Power Fan States

0 commit comments

Comments
 (0)