cmd

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Valid log levels are: DEBUG, INFO, WARN, ERROR, FATAL and PANIC
	CIDR                      string        `required:"true" desc:"set the metal core CIDR"`
	PartitionID               string        `required:"true" desc:"set the partition ID" envconfig:"partition_id"`
	RackID                    string        `required:"true" desc:"set the rack ID" envconfig:"rack_id"`
	RoomID                    string        `required:"false" desc:"set the room ID" envconfig:"room_id"`
	BindAddress               string        `required:"false" default:"0.0.0.0" desc:"set server bind address" split_words:"true"`
	MetricsServerPort         int           `required:"false" default:"2112" desc:"the port of the metrics server" split_words:"true"`
	MetricsServerBindAddress  string        `required:"false" default:"0.0.0.0" desc:"the bind addr of the metrics server" split_words:"true"`
	LogLevel                  string        `required:"false" default:"info" desc:"set log level" split_words:"true"`
	ApiURL                    string        `required:"true" default:"" desc:"set metal-apiserver api url" envconfig:"metal_apiserver_url"`
	ApiserverTokenFile        string        `` /* 159-byte string literal not displayed */
	LoopbackIP                string        `required:"false" default:"10.0.0.11" desc:"set the loopback ip address that is used with BGP unnumbered" split_words:"true"`
	SetSrcLoopback            bool          `` /* 148-byte string literal not displayed */
	ASN                       string        `required:"false" default:"420000011" desc:"set the ASN that is used with BGP"`
	SpineUplinks              []string      `required:"false" default:"swp31,swp32" desc:"set the ports that are connected to spines" envconfig:"spine_uplinks"`
	ManagementGateway         string        `required:"false" default:"" desc:"the default gateway for the management network" split_words:"true"`
	AdditionalMgmtRoutes      []string      `` /* 164-byte string literal not displayed */
	ReconfigureSwitch         bool          `required:"false" default:"false" desc:"let metal-core reconfigure the switch" split_words:"true"`
	ReconfigureSwitchInterval time.Duration `required:"false" default:"10s" desc:"pull interval to fetch and apply switch configuration" split_words:"true"`
	Timeout                   time.Duration `required:"false" default:"15s" desc:"timeout for long lasting operations during switch registration and reconfiguration"`
	AdditionalBridgeVIDs      []string      `` /* 129-byte string literal not displayed */
	AdditionalBridgePorts     []string      `` /* 134-byte string literal not displayed */
	InterfacesTplFile         string        `` /* 162-byte string literal not displayed */
	FrrTplFile                string        `` /* 149-byte string literal not displayed */
	PXEVlanID                 uint16        `required:"false" default:"4000" desc:"the id of the pxe vlan" envconfig:"pxe_vlan_id"`
	BGPNeighborStateFile      string        `` /* 156-byte string literal not displayed */
	InterfaceNamingSchema     string        `` /* 130-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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