container

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 17 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
	Neighbor    config.NeighborConfig
	Router      config.RouterConfig
	HostIPv4    string
	HostIPv6    string
	IPv4Address string
	IPv6Address string
	Network     string
}

type FRR

type FRR struct {
	executor.Executor
	Name string

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

func ConfigureExisting added in v0.13.6

func ConfigureExisting(c ...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(c ...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