Documentation
¶
Index ¶
- type AnnounceBgp
- type BgpOptions
- type BgpServer
- func (server *BgpServer) AddOrUpdatePeer(neighbor *bgpapi.BgpPeerSpec) error
- func (server *BgpServer) DelBalancer(ip string) error
- func (server *BgpServer) DeletePeer(neighbor *bgpapi.BgpPeerSpec) error
- func (server *BgpServer) EnsureNATChain() error
- func (server *BgpServer) HandleBgpGlobalConfig(global *bgpapi.BgpConfSpec, delete bool) error
- func (server *BgpServer) SetBalancer(ip string, nexthops []string) error
- func (server *BgpServer) StopServer() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnounceBgp ¶ added in v0.3.0
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 (*BgpServer) DeletePeer ¶ added in v0.3.0
func (server *BgpServer) DeletePeer(neighbor *bgpapi.BgpPeerSpec) error
func (*BgpServer) EnsureNATChain ¶ added in v0.3.0
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 (*BgpServer) StopServer ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.