cumulus

package
v0.15.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFrrApplier

func NewFrrApplier(log *slog.Logger, tplPath string) *templates.Applier

func NewInterfacesApplier

func NewInterfacesApplier(log *slog.Logger, 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(ctx context.Context, 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(ctx context.Context, 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(_ context.Context) ([]*net.Interface, error)

func (*Cumulus) IsInitialized added in v0.9.0

func (c *Cumulus) IsInitialized(context.Context) (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