gobgp

package
v0.0.0-...-7b449fd Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrcpServer = "127.0.0.1:50051"
)

Variables

This section is empty.

Functions

func ParseIPNet

func ParseIPNet(s string) (*net.IPNet, error)

Types

type BgpRouteManager

type BgpRouteManager struct {
	ModPathCh chan *api.Path
	ModPeerCh chan *api.ModNeighborArguments
	RibCh     chan *api.Path
	// contains filtered or unexported fields
}

func NewBgpRouteManager

func NewBgpRouteManager(masterIface string, as string) *BgpRouteManager

func (*BgpRouteManager) AdvertizeNewRoute

func (b *BgpRouteManager) AdvertizeNewRoute(localPrefix *net.IPNet) error

Advertise the local namespace IP prefixes to the bgp neighbors

func (*BgpRouteManager) DiscoverDelete

func (b *BgpRouteManager) DiscoverDelete(isself bool, Address string) error

func (*BgpRouteManager) DiscoverNew

func (b *BgpRouteManager) DiscoverNew(isself bool, Address string) error

func (*BgpRouteManager) ModPeer

func (b *BgpRouteManager) ModPeer(peeraddr string, operation api.Operation) error

func (*BgpRouteManager) SetBgpConfig

func (b *BgpRouteManager) SetBgpConfig(RouterId string) error

func (*BgpRouteManager) StartMonitoring

func (b *BgpRouteManager) StartMonitoring() error

func (*BgpRouteManager) WithdrawRoute

func (b *BgpRouteManager) WithdrawRoute(localPrefix *net.IPNet) error

type RibCache

type RibCache struct {
	BgpTable map[string]*RibLocal
}

type RibLocal

type RibLocal struct {
	BgpPrefix    *net.IPNet
	OriginatorIP net.IP
	NextHop      net.IP
	Age          int
	Best         bool
	IsWithdraw   bool
	IsHostRoute  bool
	IsLocal      bool
	AsPath       string
}

Unmarshalled BGP update binding for simplicity

type RibTest

type RibTest struct {
	BgpTable map[string]*RibLocal
}

Jump to

Keyboard shortcuts

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