bgp

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 8 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 []community.BGPCommunity
	// 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, args SessionParameters) (Session, error)
	SyncBFDProfiles(profiles map[string]*config.BFDProfile) error
	SyncExtraInfo(extras string) error
	SetEventCallback(func(interface{}))
}

type SessionParameters added in v0.13.8

type SessionParameters struct {
	PeerAddress   string
	SourceAddress net.IP
	MyASN         uint32
	RouterID      net.IP
	PeerASN       uint32
	HoldTime      time.Duration
	KeepAliveTime time.Duration
	Password      string
	PasswordRef   v1.SecretReference
	CurrentNode   string
	BFDProfile    string
	EBGPMultiHop  bool
	VRFName       string
	SessionName   string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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