config

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

Documentation

Index

Constants

View Source
const Empty = `password zebra
log stdout debugging
log file /tmp/frr.log debugging`

Variables

This section is empty.

Functions

func BGPPeersForAllNodes

func BGPPeersForAllNodes(cs clientset.Interface, nc NeighborConfig, rc RouterConfig, ipFamily ipfamily.Family, multiProtocol MultiProtocol) (string, error)

Set the IP of each node in the cluster in the BGP router configuration. Each node will peer with the BGP router.

func SetBGPConfig

func SetBGPConfig(testDirName string, config string) error

Set BGP configuration file in the test directory.

func SetDaemonsConfig added in v0.12.0

func SetDaemonsConfig(testDirName string, rc RouterConfig) error

Set daemons config file.

Types

type MultiProtocol added in v0.13.0

type MultiProtocol bool
const (
	MultiProtocolDisabled MultiProtocol = false
	MultiProtocolEnabled  MultiProtocol = true
)

type NeighborConfig added in v0.12.0

type NeighborConfig struct {
	ASN         uint32
	Addr        string
	Password    string
	BFDEnabled  bool
	ToAdvertise []string
	MultiHop    bool
}

type RouterConfig added in v0.12.0

type RouterConfig struct {
	RouterID          string
	ASN               uint32
	Neighbors         []*NeighborConfig
	AcceptV4Neighbors []*NeighborConfig
	AcceptV6Neighbors []*NeighborConfig
	BGPPort           uint16
	Password          string
	VRF               string
}

Jump to

Keyboard shortcuts

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