class RouteRedistributor

Store for redistributed routes. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Members


Detailed Description

typedef A Addr

Addr

typedef IPNet<A> Net

Net

 RouteRedistributor (RouteDB<A>& route_db, const string& protocol, uint16_t cost, uint16_t tag)

RouteRedistributor

Constructor for RouteRedistributor

Parameters:

route_dbthe route database to add and expire routes in.
protocolname of protocol redistributor handles.
costcost to associated with redistributed routes.
tagtag to be associated with redistributed routes.
 ~RouteRedistributor ()

~RouteRedistributor

bool  add_route (const Net& net, const Addr& nexthop, const PolicyTags& policytags)

add_route

Add a route to be redistributed.

Parameters:

netnetwork described by route.
nexthoprouter capable of forwarding route.
policytagspolicy-tags associated with route.

Returns: true on success, false if route could not be added to the RouteDatabase. Failure may occur if route already exists or a lower cost route exists.

bool  add_route (const Net& net, const Addr& nexthop, uint16_t cost, uint16_t tag, const PolicyTags& policytags)

add_route

Add a route to be redistributed with specific cost and tag values.

Parameters:

netnetwork described by route.
nexthoprouter capable of forwarding route.
policytagspolicy-tags associated with route.

Returns: true on success, false if route could not be added to the RouteDatabase. Failure may occur if route already exists or a lower cost route exists.

bool  expire_route (const Net& net)

expire_route

Trigger route expiry.

Parameters:

networkdescribed by route.

Returns: true on success, false if route did not come from this RouteRedistributor instance.

const string&  protocol ()

protocol

[const]

Accessor.

Returns: protocol name.

uint16_t  tag ()

tag

[const]

Accessor.

Returns: tag routes are redistributed with.

uint16_t  cost ()

cost

[const]

Accessor.

Returns: cost routes are redistributed with.

uint32_t  route_count ()

route_count

[const]

Accessor.

Returns: number of routes

void  withdraw_routes ()

withdraw_routes

Withdraw routes. Triggers a walking of associated routes and their expiration from the RIP route database.

bool  withdrawing_routes ()

withdrawing_routes

[const]

Returns: true if actively withdrawing routes, false otherwise.

RouteDB<A>& _route_db

_route_db

[protected]

string _protocol

_protocol

[protected]

uint16_t _cost

_cost

[protected]

uint16_t _tag

_tag

[protected]

RedistRouteOrigin<A>* _rt_origin

_rt_origin

[protected]

RouteWalker<A>* _wdrawer

_wdrawer

[protected]

XorpTimer _wtimer

_wtimer

[protected]


Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:43 2006, using kdoc $.