Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AS uint32 RouterID string SourceIP string SourceIF string HoldTime uint64 KeepaliveInterval uint64 Peers []Peer }
Config defines the BGP server configuration
type Peer ¶
Peer defines a BGP Peer
func ParseBGPPeerConfig ¶
ParseBGPPeerConfig - take a string and parses it into an array of peers
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server manages a server object
func NewBGPServer ¶
func NewBGPServer(c *Config, peerStateChangeCallback func(*api.WatchEventResponse_PeerEvent)) (b *Server, err error)
NewBGPServer takes a configuration and returns a running BGP server instance
Click to show internal directories.
Click to hide internal directories.