Skip to content

Commit

Permalink
Pick VID in configureInstallModeDHCP
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>

Co-authored-by: Kiefer Chang <[email protected]>
(cherry picked from commit 9e1027f)
  • Loading branch information
w13915984028 committed Nov 25, 2024
1 parent c79c3cc commit 8c58df9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/console/install_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,7 @@ func addInstallPanel(c *Console) error {
if c.config.Hostname == "" {
c.config.Hostname = generateHostName()
}

if c.config.TTY == "" {
c.config.TTY = getFirstConsoleTTY()
}
Expand Down Expand Up @@ -2234,8 +2235,7 @@ func addVIPPanel(c *Console) error {
spinner := NewSpinner(c.Gui, vipTextPanel, "Requesting IP through DHCP...")
spinner.Start()
go func(g *gocui.Gui) {
mgmtName := getManagementInterfaceName(c.config.ManagementInterface)
vip, err := getVipThroughDHCP(mgmtName)
vip, err := getVipThroughDHCP(getManagementInterfaceName(c.config.ManagementInterface))
if err != nil {
spinner.Stop(true, err.Error())
g.Update(func(_ *gocui.Gui) error {
Expand Down Expand Up @@ -2561,6 +2561,7 @@ func configureInstallModeDHCP(c *Console) {
mgmtNetwork.BondOptions = netDef.BondOptions
}
mgmtNetwork.Method = netDef.Method
mgmtNetwork.VlanID = netDef.VlanID

_, err := applyNetworks(
mgmtNetwork,
Expand Down

0 comments on commit 8c58df9

Please sign in to comment.