Skip to content

Commit

Permalink
Set ipmi port in case of inband access and not vagrant (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 authored Nov 10, 2020
1 parent 030e594 commit f5cff6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/register/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ func readIPMIDetails(eth0Mac string, hal hal.InBand) (*models.ModelsV1MachineIPM
details := &models.ModelsV1MachineIPMI{
Interface: &intf,
}
defaultIPMIPort := "623"
bmcVersion := "unknown"
bmcConn := hal.BMCConnection()
if bmcConn.Present() {
Expand Down Expand Up @@ -230,6 +231,7 @@ func readIPMIDetails(eth0Mac string, hal hal.InBand) (*models.ModelsV1MachineIPM
ProductPartNumber: bmc.ProductPartNumber,
ProductSerial: bmc.ProductSerial,
}
bmc.IP = bmc.IP + ":" + defaultIPMIPort
details.Address = &bmc.IP
details.Mac = &bmc.MAC
details.User = &bmcUser
Expand Down

0 comments on commit f5cff6a

Please sign in to comment.