options

package
v0.3.11-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	ErrInvalidVpcProvider = errors.Error("invalid vpc provider")
	ErrInvalidOvnDatabase = errors.Error("invalid ovn database")
)
View Source
const (
	VPC_PROVIDER_OVN = "ovn"
)

Variables

This section is empty.

Functions

func OnOptionsChange

func OnOptionsChange(oldO, newO interface{}) bool

Types

type Options

type Options struct {
	common_options.CommonOptions

	VpcAgentOptions
}

func (*Options) ValidateThenInit

func (opts *Options) ValidateThenInit() error

type VpcAgentOptions

type VpcAgentOptions struct {
	VpcProvider string `default:"ovn"`

	APISyncIntervalSeconds  int `default:"10"`
	APIRunDelayMilliseconds int `default:"100"`
	APIListBatchSize        int `default:"1024"`
	// TODO: set this to true, becuase https://github.com/yunionio/cloudpods/issues/17273 is not fixed
	FetchDataFromComputeService bool `default:"true"`

	OvnWorkerCheckInterval int    `default:"180"`
	OvnNorthDatabase       string `help:"address for accessing ovn north database.  Default to local unix socket"`
	OvnUnderlayMtu         int    `help:"mtu of ovn underlay network" default:"1500"`

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

	DNSServer string `help:"Address of DNS server"`
	DNSDomain string `help:"Domain suffix for virtual servers"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL