bgp

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bgp

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

func NewGoBgpd

func NewGoBgpd(bgpOptions *BgpOptions) *Bgp

func (*Bgp) DelBalancer

func (b *Bgp) DelBalancer(ip string) error

func (*Bgp) GetBgpConfStatus

func (b *Bgp) GetBgpConfStatus() bgpapi.BgpConf

func (*Bgp) HandleBgpGlobalConfig

func (b *Bgp) HandleBgpGlobalConfig(global *bgpapi.BgpConf, rack string, delete bool) error

func (*Bgp) HandleBgpPeer

func (b *Bgp) HandleBgpPeer(neighbor *bgpapi.BgpPeer, delete bool) error

func (*Bgp) HandleBgpPeerStatus

func (b *Bgp) HandleBgpPeerStatus(bgpPeers []bgpapi.BgpPeer) []*bgpapi.BgpPeer

func (*Bgp) SetBalancer

func (b *Bgp) SetBalancer(ip string, nodes []corev1.Node) error

func (*Bgp) Start

func (b *Bgp) Start(stopCh <-chan struct{}) error

func (*Bgp) UpdatePeerMetrics added in v0.5.1

func (b *Bgp) UpdatePeerMetrics(peer *bgpapi.BgpPeer, delete bool)

type BgpOptions

type BgpOptions struct {
	GrpcHosts string `long:"api-hosts" description:"specify the hosts that gobgpd listens on" default:":50051"`
}

func NewBgpOptions

func NewBgpOptions() *BgpOptions

func (*BgpOptions) AddFlags

func (options *BgpOptions) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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