bgp

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingAnycast  = errors.New("you must specify at least one anycast address to advertise")
	ErrMissingPeers    = errors.New("you must specify at least one peer to advertise routes to")
	ErrMissingRouterID = errors.New("you must specify the routerID of this host, i.e. a non anycast address")
	ErrNoRoutesAdded   = errors.New("no routes were successfully added")
	ErrNoRoutesDeleted = errors.New("no routes were successfully deleted")
	ErrNoPeersAdded    = errors.New("no peers were successfully added")
)

Functions

func ValidateConfig

func ValidateConfig(config *config.BGP) error

Types

type BGPHandler

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

func NewBGPHandler

func NewBGPHandler(config *config.BGP) (*BGPHandler, error)

func (*BGPHandler) AddRoutes

func (bgph *BGPHandler) AddRoutes(ctx context.Context, routes []string) error

func (*BGPHandler) DeleteRoutes

func (bgph *BGPHandler) DeleteRoutes(ctx context.Context, routes []string) error

func (*BGPHandler) Start

func (bgph *BGPHandler) Start() error

Jump to

Keyboard shortcuts

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