Skip to content

Commit

Permalink
Set VipMode value in static mode
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>
  • Loading branch information
w13915984028 committed Jan 15, 2025
1 parent 6982d88 commit 1ef6eae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/console/install_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,10 @@ func addVIPPanel(c *Console) error {

c.config.Vip = vip
c.config.VipHwAddr = ""
// gotoVipPanel is only called in DHCP mode, it is still empty in static mode
if c.config.VipMode == "" {
c.config.VipMode = config.NetworkMethodStatic
}
return gotoNextPage(g, v)
}
gotoAskVipMethodPanel := func(_ *gocui.Gui, _ *gocui.View) error {
Expand Down

0 comments on commit 1ef6eae

Please sign in to comment.