perf(redfish): bound Giga B300 inventory crawl
This commit is contained in:
1 parent
3ac19f37b8
commit
29371f69ee
9 files changed
+432
-6
No files matched your search
@@ -56,6 +56,18 @@ func CollectSignalsFromTree(tree map[string]interface{}) MatchSignals {
|
||||
systemPath := memberPath("/redfish/v1/Systems", "/redfish/v1/Systems/1")
|
||||
chassisPath := memberPath("/redfish/v1/Chassis", "/redfish/v1/Chassis/1")
|
||||
managerPath := memberPath("/redfish/v1/Managers", "/redfish/v1/Managers/1")
|
||||
// Composed accelerator platforms can list their HGX baseboard before the
|
||||
// physical host. Prefer the conventional Self resources for vendor/profile
|
||||
// identity when they exist, while retaining first-member fallback elsewhere.
|
||||
if len(getDoc("/redfish/v1/Systems/Self")) != 0 {
|
||||
systemPath = "/redfish/v1/Systems/Self"
|
||||
}
|
||||
if len(getDoc("/redfish/v1/Chassis/Self")) != 0 {
|
||||
chassisPath = "/redfish/v1/Chassis/Self"
|
||||
}
|
||||
if len(getDoc("/redfish/v1/Managers/Self")) != 0 {
|
||||
managerPath = "/redfish/v1/Managers/Self"
|
||||
}
|
||||
|
||||
resourceHints := make([]string, 0, len(tree))
|
||||
hintDocs := make([]map[string]interface{}, 0, len(tree))
|
||||
|
||||
Reference in new issue
Block a user