xorp

PolicyRedistMap Class Reference

A Map between policytags and where the route should be redistributed. More...

#include <policy_redist_map.hh>

Inheritance diagram for PolicyRedistMap:
NONCOPYABLE

List of all members.

Public Member Functions

void insert (const string &protocol, const PolicyTags &tags)
 Configure redistribution to a protcol for these tags.
void reset ()
 Reset the redistribution map.
void get_protocols (set< string > &out, const PolicyTags &tags)
 Obtain which protocols the route containing these tags should be sent to.

Private Types

typedef map< string, PolicyTags * > Map

Private Attributes

Map _map

Detailed Description

A Map between policytags and where the route should be redistributed.

This map normally resides in the RIB. As routes pass through the rib, their policytags need to be analyzed. According to these tags, the route must be sent to various routing protocols to enable export policies.


Member Function Documentation

void PolicyRedistMap::get_protocols ( set< string > &  out,
const PolicyTags tags 
)

Obtain which protocols the route containing these tags should be sent to.

Parameters:
outwill be filled with protocols route should be sent to.
tagspolicytags that need to be resolved.
void PolicyRedistMap::insert ( const string &  protocol,
const PolicyTags tags 
)

Configure redistribution to a protcol for these tags.

Parameters:
protocoldestination protocol for these tags.
tagspolicytags which need to be redistributed to the protocol.

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