Skip to content

Commit

Permalink
Remove final hardware address check
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Sim <[email protected]>
  • Loading branch information
ihcsim authored and bk201 committed Dec 23, 2024
1 parent 9453d5d commit 8ef99dd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/console/install_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2563,22 +2563,6 @@ func addVIPPanel(c *Console) error {
vipTextV.SetContent("Forbid to modify the VIP obtained through DHCP")
return nil
}

// if hardware address is overridden, update the install config with
// the new value.
hwAddr, err := hwAddrV.GetData()
if err != nil {
return err
}
if hwAddr != c.config.VipHwAddr {
logrus.Infof("Overriding VIP hardware address. Original: %q, New: %q", c.config.VipHwAddr, hwAddr)
if _, err := net.ParseMAC(hwAddr); err != nil {
msg := fmt.Sprintf("Invalid hardware address: %s", err)
vipTextV.SetContent(msg)
return nil
}
c.config.VipHwAddr = hwAddr
}
return gotoNextPage(g, v)
}

Expand Down

0 comments on commit 8ef99dd

Please sign in to comment.