container

package
v0.13.10 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v0.13.6

func Delete(containers []*FRR) error

func PairWithNodes

func PairWithNodes(cs clientset.Interface, c *FRR, ipFamily ipfamily.Family, modifiers ...func(c *FRR)) error

PairWithNodes pairs the given frr instance with all the cluster nodes.

Types

type Config

type Config struct {
	Name     string
	Image    string
	Neighbor frrconfig.NeighborConfig
	Router   frrconfig.RouterConfig
	HostIPv4 string
	HostIPv6 string
	Network  string
}

type FRR

type FRR struct {
	executor.Executor
	Name string

	NeighborConfig frrconfig.NeighborConfig
	RouterConfig   frrconfig.RouterConfig
	Ipv4           string
	Ipv6           string
	Network        string
	MultiProtocol  frrconfig.MultiProtocol
	// contains filtered or unexported fields
}

func ConfigureExisting added in v0.13.6

func ConfigureExisting(c map[string]Config) ([]*FRR, error)

ConfigureExisting validates that the existing frr containers that correspond to the given configurations are up and running, and returns the corresponding *FRRs.

func Create

func Create(configs map[string]Config) ([]*FRR, error)

Create creates a set of frr containers corresponding to the given configurations.

func (*FRR) AddressesForFamily

func (c *FRR) AddressesForFamily(ipFamily ipfamily.Family) []string

func (*FRR) UpdateBGPConfigFile

func (c *FRR) UpdateBGPConfigFile(bgpConfig string) error

Updating the BGP config file.

Jump to

Keyboard shortcuts

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