cumulus

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFrrApplier

func NewFrrApplier(tplPath string) *templates.Applier

func NewInterfacesApplier

func NewInterfacesApplier(tplPath string) *templates.Applier

Types

type Cumulus

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

func New

func New(log *slog.Logger, frrTplFile, interfacesTplFile string) *Cumulus

func (*Cumulus) Apply

func (c *Cumulus) Apply(cfg *types.Conf) error

func (*Cumulus) GetManagement

func (c *Cumulus) GetManagement() (ip, user string, err error)

func (*Cumulus) GetNics added in v0.9.0

func (c *Cumulus) GetNics(log *slog.Logger, blacklist []string) (nics []*models.V1SwitchNic, err error)

func (*Cumulus) GetOS

func (c *Cumulus) GetOS() (*models.V1SwitchOS, error)

func (*Cumulus) GetSwitchPorts

func (c *Cumulus) GetSwitchPorts() ([]*net.Interface, error)

func (*Cumulus) IsInitialized added in v0.9.0

func (c *Cumulus) IsInitialized() (initialized bool, err error)

func (*Cumulus) SanitizeConfig added in v0.9.0

func (c *Cumulus) SanitizeConfig(cfg *types.Conf)

Jump to

Keyboard shortcuts

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