Documentation ¶
Index ¶
- type AdjRIBIn
- func (a *AdjRIBIn) AddPath(pfx *net.Prefix, p *route.Path) error
- func (a *AdjRIBIn) ClientCount() uint64
- func (a *AdjRIBIn) Dump() []*route.Route
- func (a *AdjRIBIn) Flush()
- func (a *AdjRIBIn) Get(pfx *net.Prefix) *route.Route
- func (a *AdjRIBIn) GetLonger(pfx *net.Prefix) (res []*route.Route)
- func (a *AdjRIBIn) LPM(pfx *net.Prefix) (res []*route.Route)
- func (a *AdjRIBIn) RT() *routingtable.RoutingTable
- func (a *AdjRIBIn) RefreshRoute(*net.Prefix, []*route.Path)
- func (a *AdjRIBIn) Register(client routingtable.RouteTableClient)
- func (a *AdjRIBIn) RegisterWithOptions(client routingtable.RouteTableClient, options routingtable.ClientOptions)
- func (a *AdjRIBIn) RemovePath(pfx *net.Prefix, p *route.Path) bool
- func (a *AdjRIBIn) ReplaceFilterChain(c filter.Chain)
- func (a *AdjRIBIn) ReplacePath(pfx *net.Prefix, old *route.Path, new *route.Path)
- func (a *AdjRIBIn) RouteCount() int64
- func (a *AdjRIBIn) Unregister(client routingtable.RouteTableClient)
- func (a *AdjRIBIn) UpdateNewClient(client routingtable.RouteTableClient) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjRIBIn ¶
type AdjRIBIn struct {
// contains filtered or unexported fields
}
AdjRIBIn represents an Adjacency RIB In as described in RFC4271
func New ¶
func New(exportFilterChain filter.Chain, vrf *vrf.VRF, sessionAttrs routingtable.SessionAttrs) *AdjRIBIn
New creates a new Adjacency RIB In
func (*AdjRIBIn) AddPath ¶
AddPath replaces the path for prefix `pfx`. If the prefix doesn't exist it is added.
func (*AdjRIBIn) ClientCount ¶
ClientCount gets the number of registered clients
func (*AdjRIBIn) RT ¶
func (a *AdjRIBIn) RT() *routingtable.RoutingTable
func (*AdjRIBIn) RefreshRoute ¶
RefreshRoute is here to fultill an interface
func (*AdjRIBIn) Register ¶
func (a *AdjRIBIn) Register(client routingtable.RouteTableClient)
Register registers a client for updates
func (*AdjRIBIn) RegisterWithOptions ¶
func (a *AdjRIBIn) RegisterWithOptions(client routingtable.RouteTableClient, options routingtable.ClientOptions)
RegisterWithOptions registers a client for updates
func (*AdjRIBIn) RemovePath ¶
RemovePath removes the path for prefix `pfx`
func (*AdjRIBIn) ReplaceFilterChain ¶
ReplaceFilterChain replaces the filter chain
func (*AdjRIBIn) ReplacePath ¶
func (*AdjRIBIn) RouteCount ¶
RouteCount returns the number of stored routes
func (*AdjRIBIn) Unregister ¶
func (a *AdjRIBIn) Unregister(client routingtable.RouteTableClient)
Unregister unregisters a client
func (*AdjRIBIn) UpdateNewClient ¶
func (a *AdjRIBIn) UpdateNewClient(client routingtable.RouteTableClient) error
UpdateNewClient sends current state to a new client
Click to show internal directories.
Click to hide internal directories.