bgp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

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

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