Skip to content

Commit f246820

Browse files
committed
hw-mgmt: scripts: Separate SN5400/SN5610/SN5640 from other SPC4 systems in sync service
SN5400/SN5610/SN5640 systems have 66 ports, while SN5600/SN5600D have 65 ports They should be treated separately by HW-MGMT sync service. Bug: 4540295 Signed-off-by: Felix Radensky <[email protected]>
1 parent 13356c6 commit f246820

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

usr/usr/bin/hw_management_sync.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,17 @@
165165
{"fin": None,
166166
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
167167
],
168-
"HI171|HI172|HI144|HI147|HI148|HI174": [
169-
{"fin": "/var/run/hw-management/system/graseful_pwr_off", "fn": "run_power_button_event",
170-
"arg": [], "poll": 1, "ts": 0},
168+
"HI144|HI174": [
169+
{"fin": None, "fn": "asic_temp_populate", "poll": 3, "ts": 0,
170+
"arg": {"asic": {"fin": "/sys/module/sx_core/asic0/"},
171+
"asic1": {"fin": "/sys/module/sx_core/asic0/"}
172+
}
173+
},
174+
{"fin": None, "fn": "module_temp_populate", "poll": 20, "ts": 0,
175+
"arg": {"fin": "/sys/module/sx_core/asic0/module{}/", "fout_idx_offset": 1, "module_count": 65}
176+
}
177+
],
178+
"HI147|HI171|HI172": [
171179
{"fin": None, "fn": "asic_temp_populate", "poll": 3, "ts": 0,
172180
"arg": {"asic": {"fin": "/sys/module/sx_core/asic0/"},
173181
"asic1": {"fin": "/sys/module/sx_core/asic0/"}

0 commit comments

Comments
 (0)