From f5cff6a70724924d9e6d1efdd5a32104422675a4 Mon Sep 17 00:00:00 2001 From: Stefan Majer Date: Tue, 10 Nov 2020 15:32:23 +0100 Subject: [PATCH] Set ipmi port in case of inband access and not vagrant (#36) --- cmd/register/register.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/register/register.go b/cmd/register/register.go index ae118531..7e66bd6c 100644 --- a/cmd/register/register.go +++ b/cmd/register/register.go @@ -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() { @@ -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