class PolicyTags

A set of policy tags. A policytag is a marker for a route. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

A policytag marks a route. This is needed to match the source part of an export policy. Export filters are in the destination protocol, so no information about the origin of the route is available then. Thus, routes need to be tagged in the source protocol, so the export filter may match against tags.

PolicyTagsError (class)

PolicyTagsError

 PolicyTags ()

PolicyTags

Empty policytags may be safely created. No exception thrown

 PolicyTags (const XrlAtomList& xrlatoms)

PolicyTags

Attempt to create policy tags from an XrlAtomList. It must contain unsigned 32bit integer atoms.

Parameters:

xrlatomslist of xrlatom_uint32 atoms to initialize from.
 PolicyTags (const Element& e)

PolicyTags

Attempt to create policy tags from ElemSet.

Parameters:

eElemSet to initialize from.
string  str ()

str

[const]

Returns: string representation of policytags.

bool  operator== (const PolicyTags& rhs)

operator==

[const]

Parameters:

rhsPolicyTags to compare with.

Returns: true if set is equal.

Element*  element ()

element

[const]

Convert to an ElemSet.

Returns: ElemSet representation. Caller is responsible for delete.

XrlAtomList  xrl_atomlist ()

xrl_atomlist

[const]

Convert to XrlAtomList of xrlatom_uint32's

Returns: XrlAtomList representation.

void  insert (const PolicyTags& pt)

insert

Insert policy tags from another PolicyTags.

Parameters:

ptPolicyTags to insert.
bool  contains_atleast_one (const PolicyTags& tags)

contains_atleast_one

[const]

Check if intersection is not empty.

Parameters:

tagstags to check with.

Returns: true if atleast one tag is contained in the other tags.


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:57 2008, using kdoc 2.0a54+XORP.