|
|
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:
xrlatoms | list of xrlatom_uint32 atoms to initialize from. |
string str ()
| str |
[const]
Returns: string representation of policytags.
bool operator== (const PolicyTags& rhs)
| operator== |
[const]
Parameters:
rhs | PolicyTags 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:
pt | PolicyTags 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:
tags | tags to check with. |
Returns: true if atleast one tag is contained in the other tags.