bgp

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertisement struct {
	// The prefix being advertised to the peer.
	Prefix *net.IPNet
	// The local preference of this route. Only propagated to IBGP
	// peers (i.e. where the peer ASN matches the local ASN).
	LocalPref uint32
	// BGP communities to attach to the path.
	Communities []uint32
	// Used to declare the intent of announcing IPs
	// only to the BGPPeers in this list.
	Peers []string
}

Advertisement represents one network path and its BGP attributes.

func (*Advertisement) Equal

func (a *Advertisement) Equal(b *Advertisement) bool

Equal returns true if a and b are equivalent advertisements.

func (*Advertisement) MatchesPeer added in v0.13.0

func (a *Advertisement) MatchesPeer(peerName string) bool

type Session

type Session interface {
	io.Closer
	Set(advs ...*Advertisement) error
}

type SessionManager added in v0.12.0

type SessionManager interface {
	NewSession(logger log.Logger, addr string, srcAddr net.IP, myASN uint32, routerID net.IP, asn uint32, hold, keepalive time.Duration, password, myNode, bfdProfile string, ebgpMultiHop bool, name string) (Session, error)
	SyncBFDProfiles(profiles map[string]*config.BFDProfile) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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