Skip to content

Commit

Permalink
Adds a method to return Supermicro mainboard model from the Board ID
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Jan 12, 2025
1 parent bed9649 commit b6de52e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,16 @@ func FormatProductName(s string) string {
return s
}
}

// Returns the Supermicro motherboard model for the given BoardID identifier
// from /redfish/v1/Chassis/1
func SupermicroModelFromBoardID(id string) string {
switch strings.ToLower(id) {
case "0x89a":
return "x11ssl-f"
case "0x1b09": // 15d9:1b09 is the Q370 Chipset LPC/eSPI Controller on the board
return "x11scz-f"
default:
return ""
}
}

0 comments on commit b6de52e

Please sign in to comment.