core

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 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      *zap.SugaredLogger
	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

	InterfacesTplFile string
	FrrTplFile        string

	Driver             metalgo.Client
	EventServiceClient v1.EventServiceClient
}

type Core

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

func New

func New(c Config) *Core

func (*Core) ConstantlyPhoneHome

func (c *Core) ConstantlyPhoneHome()

ConstantlyPhoneHome sends every minute a single phone-home provisioning event to metal-api for each machine that sent at least one phone-home LLDP package to any interface of the host machine during this interval.

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