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.
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.

Element*  element_tag ()

element_tag

[const]

void  set_tag (const Element& e)

set_tag

void  set_ptags (const Element& e)

set_ptags

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.
void  insert (uint32_t tag)

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: pavlin on kobe.xorp.net on Wed Jan 7 19:11:01 2009, using kdoc 2.0a54+XORP.