core

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: AGPL-3.0 Imports: 18 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
	ReconfigureSwitchInterval time.Duration
	ManagementGateway         string
	AdditionalBridgePorts     []string
	AdditionalBridgeVIDs      []string
	SpineUplinks              []string

	NOS switcher.NOS

	Driver             metalgo.Client
	EventServiceClient v1.EventServiceClient

	Metrics *metrics.Metrics
}

type Core

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

func New

func New(c Config) *Core

func (*Core) ReconfigureSwitch

func (c *Core) ReconfigureSwitch()

ReconfigureSwitch reconfigures the switch.

func (*Core) RegisterSwitch

func (c *Core) RegisterSwitch() error

Jump to

Keyboard shortcuts

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