class PolicyTarget

The XORP Policy target. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

This is the class that will be called to perform operation from the xrl target.

static string policy_target_name

policy_target_name

 PolicyTarget (XrlStdRouter& rtr)

PolicyTarget

Parameters:

rtrXrl router used by this XORP process.
bool  running ()

running

Returns: true if process is running.

void  shutdown ()

shutdown

Shutdown the process.

void  create_term (const string& policy, const ConfigNodeId& order, const string& term)

create_term

Attempts to create a term. Terms are appended in existing policies [currently no way of inserting a term in a specific position].

Exception is thrown on error.

Parameters:

policypolicy in which term should be created.
ordernode ID with position of term.
termname of term to create.
void  delete_term (const string& policy, const string& term)

delete_term

Attempts to delete a term.

Exception is thrown on error.

Parameters:

policypolicy in which term should be deleted.
termname of the term.
void  update_term_block (const string& policy, const string& term, const uint32_t& block, const ConfigNodeId& order, const string& statement)

update_term_block

Update the source/dest/action block of a term in a policy.

Exception is thrown on error

Parameters:

policythe name of the policy.
termthe name of the term.
blockthe block to update (0:source, 1:dest, 2:action).
ordernode ID with position of term.
statementthe statement to insert.
void  create_policy (const string& policy)

create_policy

Attempts to create a policy.

Exception is thrown on error.

Parameters:

policyname of policy to create.
void  delete_policy (const string& policy)

delete_policy

Attempts to delete a policy.

Exception is thrown on error.

Parameters:

policyname of policy to delete.
void  create_set (const string& name)

create_set

Attempts to create a policy.

Exception is thrown on error.

Parameters:

namename of set to create.
void  update_set (const string& type, const string& name, const string& elements)

update_set

Attempts to update set elements.

Exception is thrown on error.

Parameters:

typethe type of the set.
namename of set to update.
elementsthe elements of a set comma separated.
void  delete_set (const string& name)

delete_set

Attempts to delete a set.

Exception is thrown on error.

Parameters:

namename of set to create.
void  update_import (const string& protocol, const string& policies)

update_import

Updates the import policy list for a protocol and triggers a delayed commit.

Parameters:

protocolprotocol for which to update imports.
policiescomma separated policy list.
void  update_export (const string& protocol, const string& policies)

update_export

Updates the export policy list for a protocol and triggers a delayed commit.

Parameters:

protocolprotocol for which to update imports.
policiescomma separated policy list.
void  add_varmap (const string& protocol, const string& variable, const string& type, const string& access, const VarRW::Id& id)

add_varmap

void  commit (uint32_t msec)

commit

Commit all configuration changes, but trigger a delayed update to the actual policy filters.

Parameters:

msecmilliseconds after which policy filters should be updated.
string  dump_state (uint32_t id)

dump_state

Dump internal state. Use only for debugging.

Parameters:

idwhich part of the state to dump.

Returns: string representation of internal state.

void  birth (const string& tclass, const string& tinstance)

birth

Announce birth of a XORP process.

Parameters:

tclasstarget class.
tinstancetarget instance of class.
void  death (const string& tclass, const string& tinstance)

death

Announce death of a XORP process.

Parameters:

tclasstarget class.
tinstancetarget instance of class.
void  set_proto_target (const string& protocol, const string& target)

set_proto_target

Update the protocol -> XRL target map.

Parameters:

protocolthe protocol.
targetthe XRL target.

Generated by: pavlin on possum.icir.org on Wed Aug 2 15:36:30 2006, using kdoc $.