Skip to content

Commit

Permalink
fix: make host dhcp lease options global (#18682)
Browse files Browse the repository at this point in the history
Co-authored-by: Qiu Jian <[email protected]>
  • Loading branch information
swordqiu and Qiu Jian authored Nov 15, 2023
1 parent cc89c35 commit 004ec64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/hostman/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ type SHostBaseOptions struct {
FloppyCount int `help:"floppy count" default:"1"`

DisableLocalVpc bool `help:"disable local VPC support" default:"false"`

DhcpLeaseTime int `default:"100663296" help:"DHCP lease time in seconds"`
DhcpRenewalTime int `default:"67108864" help:"DHCP renewal time in seconds"`
}

type SHostOptions struct {
Expand Down Expand Up @@ -98,9 +101,7 @@ type SHostOptions struct {
SharedStorages []string `help:"Path of shared storages"`
LVMVolumeGroups []string `help:"LVM Volume Groups(vgs)"`

DhcpRelay []string `help:"DHCP relay upstream"`
DhcpLeaseTime int `default:"100663296" help:"DHCP lease time in seconds"`
DhcpRenewalTime int `default:"67108864" help:"DHCP renewal time in seconds"`
DhcpRelay []string `help:"DHCP relay upstream"`

TunnelPaddingBytes int64 `help:"Specify tunnel padding bytes" default:"0"`

Expand Down

0 comments on commit 004ec64

Please sign in to comment.