core

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: AGPL-3.0 Imports: 21 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 {
	Log      *slog.Logger
	LogLevel string

	CIDR                  string
	LoopbackIP            string
	ASN                   string
	PartitionID           string
	RackID                string
	ReconfigureSwitch     bool
	ManagementGateway     string
	AdditionalBridgePorts []string
	AdditionalBridgeVIDs  []string
	SpineUplinks          []string

	NOS switcher.NOS

	Driver             metalgo.Client
	EventServiceClient v1.EventServiceClient

	Metrics *metrics.Metrics

	PXEVlanID uint16

	BGPNeighborStateFile string
}

type Core

type Core struct {
	// contains filtered or unexported fields
}

func New

func New(c Config) *Core

func (*Core) ConstantlyReconfigureSwitch added in v0.13.0

func (c *Core) ConstantlyReconfigureSwitch(ctx context.Context, interval time.Duration)

ConstantlyReconfigureSwitch reconfigures the switch.

func (*Core) RegisterSwitch

func (c *Core) RegisterSwitch(ctx context.Context) error

Jump to

Keyboard shortcuts

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