serverd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnounceBgp added in v0.3.0

type AnnounceBgp interface {
	SetBalancer(ip string, nexthops []string) error
	DelBalancer(ip string) error
}

type BgpOptions added in v0.3.0

type BgpOptions struct {
	GrpcHosts       string `long:"api-hosts" description:"specify the hosts that gobgpd listens on" default:":50051"`
	GracefulRestart bool   `short:"r" long:"graceful-restart" description:"flag restart-state in graceful-restart capability"`
}

func NewBgpOptions added in v0.3.0

func NewBgpOptions() *BgpOptions

func (*BgpOptions) AddFlags added in v0.3.0

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

type BgpServer added in v0.3.0

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

func NewBgpServer added in v0.3.0

func NewBgpServer(bgpOptions *BgpOptions, log logr.Logger, iptable iptables.IptablesIface) *BgpServer

func (*BgpServer) AddOrUpdatePeer added in v0.3.0

func (server *BgpServer) AddOrUpdatePeer(neighbor *bgpapi.BgpPeerSpec) error

func (*BgpServer) DelBalancer added in v0.3.0

func (server *BgpServer) DelBalancer(ip string) error

func (*BgpServer) DeletePeer added in v0.3.0

func (server *BgpServer) DeletePeer(neighbor *bgpapi.BgpPeerSpec) error

func (*BgpServer) EnsureNATChain added in v0.3.0

func (server *BgpServer) EnsureNATChain() error

func (*BgpServer) HandleBgpGlobalConfig added in v0.3.0

func (server *BgpServer) HandleBgpGlobalConfig(global *bgpapi.BgpConfSpec, delete bool) error

func (*BgpServer) SetBalancer added in v0.3.0

func (server *BgpServer) SetBalancer(ip string, nexthops []string) error

func (*BgpServer) StopServer added in v0.3.0

func (server *BgpServer) StopServer() error

Jump to

Keyboard shortcuts

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