Documentation ¶
Index ¶
- type AdjRIBOut
- func (a *AdjRIBOut) AddPath(pfx *bnet.Prefix, p *route.Path) error
- func (a *AdjRIBOut) AddPathInitialDump(pfx *bnet.Prefix, p *route.Path) error
- func (a *AdjRIBOut) ClientCount() uint64
- func (a *AdjRIBOut) Dispose()
- func (a *AdjRIBOut) Dump() []*route.Route
- func (a *AdjRIBOut) EndOfRIB()
- func (a *AdjRIBOut) Get(pfx *bnet.Prefix) *route.Route
- func (a *AdjRIBOut) GetLonger(pfx *bnet.Prefix) (res []*route.Route)
- func (a *AdjRIBOut) LPM(pfx *bnet.Prefix) (res []*route.Route)
- func (a *AdjRIBOut) Print() string
- func (a *AdjRIBOut) RefreshRoute(pfx *bnet.Prefix, ribPaths []*route.Path)
- func (a *AdjRIBOut) Register(client routingtable.RouteTableClient)
- func (a *AdjRIBOut) RegisterWithOptions(client routingtable.RouteTableClient, options routingtable.ClientOptions)
- func (a *AdjRIBOut) RemovePath(pfx *bnet.Prefix, p *route.Path) bool
- func (a *AdjRIBOut) ReplaceFilterChain(c filter.Chain)
- func (a *AdjRIBOut) ReplacePath(pfx *bnet.Prefix, old *route.Path, new *route.Path)
- func (a *AdjRIBOut) RouteCount() int64
- func (a *AdjRIBOut) Unregister(client routingtable.RouteTableClient)
- func (a *AdjRIBOut) UpdateNewClient(client routingtable.RouteTableClient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjRIBOut ¶
type AdjRIBOut struct {
// contains filtered or unexported fields
}
AdjRIBOut represents an Adjacency RIB Out with BGP add path
func New ¶
func New(rib *locRIB.LocRIB, sessionAttrs routingtable.SessionAttrs, exportFilterChain filter.Chain) *AdjRIBOut
New creates a new Adjacency RIB Out with BGP add path
func (*AdjRIBOut) AddPathInitialDump ¶
func (*AdjRIBOut) ClientCount ¶
ClientCount gets the number of registered clients
func (*AdjRIBOut) Dispose ¶
func (a *AdjRIBOut) Dispose()
Dispose is here to fulfill an interface. We don't care if the RIB we're registred to as a client is gone as this only happens in the BMP use case where AdjRIBOut is not used.
func (*AdjRIBOut) RefreshRoute ¶
RefreshRoute refreshes a route
func (*AdjRIBOut) Register ¶
func (a *AdjRIBOut) Register(client routingtable.RouteTableClient)
Register registers a client for updates
func (*AdjRIBOut) RegisterWithOptions ¶
func (a *AdjRIBOut) RegisterWithOptions(client routingtable.RouteTableClient, options routingtable.ClientOptions)
RegisterWithOptions registers a client for updates
func (*AdjRIBOut) RemovePath ¶
RemovePath removes the path for prefix `pfx`
func (*AdjRIBOut) ReplaceFilterChain ¶
ReplaceFilterChain replaces the export filter chain
func (*AdjRIBOut) ReplacePath ¶
ReplacePath is here to fulfill an interface
func (*AdjRIBOut) RouteCount ¶
RouteCount returns the number of stored routes
func (*AdjRIBOut) Unregister ¶
func (a *AdjRIBOut) Unregister(client routingtable.RouteTableClient)
Unregister unregisters a client
func (*AdjRIBOut) UpdateNewClient ¶
func (a *AdjRIBOut) UpdateNewClient(client routingtable.RouteTableClient) error
UpdateNewClient sends current state to a new client