Skip to content

Commit 5a8d86a

Browse files
committed
hw-mgmt: scripts: Separate SN5610/SN5640 from other SPC4 systems in sync service
SN5610/SN5640 systems have 66 ports, while SN5600/SN5400/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 1722315 commit 5a8d86a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

usr/usr/bin/hw_management_sync.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
{"fin": None,
150150
"fn": "redfish_get_sensor", "arg": ["/redfish/v1/Chassis/MGX_BMC_0/Sensors/BMC_TEMP", "bmc", 1000], "poll": 30, "ts": 0}
151151
],
152-
"HI171|HI172|HI144|HI147|HI148|HI174": [
152+
"HI144|HI147|HI148|HI174": [
153153
{"fin": None, "fn": "asic_temp_populate", "poll": 3, "ts": 0,
154154
"arg": {"asic": {"fin": "/sys/module/sx_core/asic0/"},
155155
"asic1": {"fin": "/sys/module/sx_core/asic0/"}
@@ -159,6 +159,16 @@
159159
"arg": {"fin": "/sys/module/sx_core/asic0/module{}/", "fout_idx_offset": 1, "module_count": 65}
160160
}
161161
],
162+
"HI171|HI172": [
163+
{"fin": None, "fn": "asic_temp_populate", "poll": 3, "ts": 0,
164+
"arg": {"asic": {"fin": "/sys/module/sx_core/asic0/"},
165+
"asic1": {"fin": "/sys/module/sx_core/asic0/"}
166+
}
167+
},
168+
{"fin": None, "fn": "module_temp_populate", "poll": 20, "ts": 0,
169+
"arg": {"fin": "/sys/module/sx_core/asic0/module{}/", "fout_idx_offset": 1, "module_count": 66}
170+
}
171+
],
162172
"HI112|HI116|HI136": [
163173
{"fin": None, "fn": "asic_temp_populate", "poll": 3, "ts": 0,
164174
"arg": {"asic": {"fin": "/sys/module/sx_core/asic0/"},

0 commit comments

Comments
 (0)