xorp

PolicyTableImport< A > Class Template Reference

Import policy tables also deal with propagating policy route dumps. More...

#include <route_table_policy_im.hh>

Inheritance diagram for PolicyTableImport< A >:
PolicyTable< A > BGPRouteTable< A >

List of all members.

Public Member Functions

 PolicyTableImport (const string &tablename, const Safi &safi, BGPRouteTable< A > *parent, PolicyFilters &pfs, const A &peer, const A &self)
int route_dump (InternalMessage< A > &rtmsg, BGPRouteTable< A > *caller, const PeerHandler *dump_peer)
 If dump_peer is null, then it is a policy route dump and we need to deal with it.

Detailed Description

template<class A>
class PolicyTableImport< A >

Import policy tables also deal with propagating policy route dumps.

Import tables will detect policy route dumps [NULL in dump_peer]. It will then transport the dump to an add/delete/request based on the outcome of the filter.


Constructor & Destructor Documentation

template<class A >
PolicyTableImport< A >::PolicyTableImport ( const string &  tablename,
const Safi &  safi,
BGPRouteTable< A > *  parent,
PolicyFilters pfs,
const A &  peer,
const A &  self 
)
Parameters:
tablenamename of the table.
safithe safe.
parentparent table.
pfsa reference to the global policy filters.

Member Function Documentation

template<class A >
int PolicyTableImport< A >::route_dump ( InternalMessage< A > &  rtmsg,
BGPRouteTable< A > *  caller,
const PeerHandler dump_peer 
) [virtual]

If dump_peer is null, then it is a policy route dump and we need to deal with it.

Parameters:
rtmsgroute being dumped.
callertable that called this method.
dump_peerpeer we are dumping to. If policy dump, it will be NULL.
Returns:
ADD_FILTERED if route is rejected. XORP_OK otherwise.

Reimplemented from PolicyTable< A >.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations