|
|
A class which registers defined callbacks upon creation.
Callbacks are thus registered once [static] and before the factory is actually used.
enum Filter { IMPORT = 1, EXPORT_SOURCEMATCH = 2, EXPORT = 4 } | Filter |
There are three type of filters:
IMPORT: deals with import filtering. Incoming routes from other routers and possibly the rib.
EXPORT_SOURCEMATCH: a filter which tags routes that need to be redistributed. This filter only modifies policytags.
EXPORT: Filters outgoing routes from the routing protocols to other routers and possibly the rib itself.
std::string filter2str (const Filter& f)
| filter2str |
Parameters:
f | filter type to convert to human readable string. |
Returns: string representation of filter name.