class XrlPolicyV0p1Client


 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods

Protected Members


Detailed Description

 XrlPolicyV0p1Client (XrlSender* s)

XrlPolicyV0p1Client

 ~XrlPolicyV0p1Client ()

~XrlPolicyV0p1Client

[virtual]

typedef XorpCallback1<void, const XrlError&>::RefPtr CreateTermCB

CreateTermCB

bool  send_create_term ( const char* dst_xrl_target_name, const string& policy, const string& order, const string& term, const CreateTermCB& cb )

send_create_term

Send Xrl intended to:

Create a term in a policy. The term will be the last term in the policy statement.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
policythe name of the policy.
orderposition of term.
termthe name of the term.
typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteTermCB

DeleteTermCB

bool  send_delete_term ( const char* dst_xrl_target_name, const string& policy, const string& term, const DeleteTermCB& cb )

send_delete_term

Send Xrl intended to:

Delete a term in a policy.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
policythe name of the policy.
termthe name of the term.
typedef XorpCallback1<void, const XrlError&>::RefPtr UpdateTermBlockCB

UpdateTermBlockCB

bool  send_update_term_block ( const char* dst_xrl_target_name, const string& policy, const string& term, const uint32_t& block, const string& order, const string& statement, const UpdateTermBlockCB& cb )

send_update_term_block

Send Xrl intended to:

Update the source/dest/action block of a term in a policy. Note: if statement is empty, the previous one in that position will be deleted.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
policythe name of the policy.
termthe name of the term.
blockthe block to update (0:source, 1:dest, 2:action).
ordernumerical position (local) of statement.
statementthe statement to insert or delete.
typedef XorpCallback1<void, const XrlError&>::RefPtr CreatePolicyCB

CreatePolicyCB

bool  send_create_policy ( const char* dst_xrl_target_name, const string& policy, const CreatePolicyCB& cb )

send_create_policy

Send Xrl intended to:

Create a policy.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
typedef XorpCallback1<void, const XrlError&>::RefPtr DeletePolicyCB

DeletePolicyCB

bool  send_delete_policy ( const char* dst_xrl_target_name, const string& policy, const DeletePolicyCB& cb )

send_delete_policy

Send Xrl intended to:

Delete a policy.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
typedef XorpCallback1<void, const XrlError&>::RefPtr CreateSetCB

CreateSetCB

bool  send_create_set ( const char* dst_xrl_target_name, const string& set, const CreateSetCB& cb )

send_create_set

Send Xrl intended to:

Create a set.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
typedef XorpCallback1<void, const XrlError&>::RefPtr UpdateSetCB

UpdateSetCB

bool  send_update_set ( const char* dst_xrl_target_name, const string& type, const string& set, const string& elements, const UpdateSetCB& cb )

send_update_set

Send Xrl intended to:

Replace elements in a set.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
typethe type of the set.
setname of the set.
elementscomma delimited list of set elements.
typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteSetCB

DeleteSetCB

bool  send_delete_set ( const char* dst_xrl_target_name, const string& set, const DeleteSetCB& cb )

send_delete_set

Send Xrl intended to:

Delete a set.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
typedef XorpCallback1<void, const XrlError&>::RefPtr AddToSetCB

AddToSetCB

bool  send_add_to_set ( const char* dst_xrl_target_name, const string& type, const string& set, const string& element, const AddToSetCB& cb )

send_add_to_set

Send Xrl intended to:

Add an element to a set.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
typethe type of the set.
setname of the set.
elementthe element to add.
typedef XorpCallback1<void, const XrlError&>::RefPtr DeleteFromSetCB

DeleteFromSetCB

bool  send_delete_from_set ( const char* dst_xrl_target_name, const string& type, const string& set, const string& element, const DeleteFromSetCB& cb )

send_delete_from_set

Send Xrl intended to:

Delete an element from a set.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
typethe type of the set.
setname of the set.
elementthe element to delete.
typedef XorpCallback1<void, const XrlError&>::RefPtr DoneGlobalPolicyConfCB

DoneGlobalPolicyConfCB

bool  send_done_global_policy_conf ( const char* dst_xrl_target_name, const DoneGlobalPolicyConfCB& cb )

send_done_global_policy_conf

Send Xrl intended to:

Commit the configuration.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
typedef XorpCallback1<void, const XrlError&>::RefPtr ImportCB

ImportCB

bool  send_import ( const char* dst_xrl_target_name, const string& protocol, const string& policies, const string& modifier, const ImportCB& cb )

send_import

Send Xrl intended to:

Replace import/export policies for a protocol. Will normally cause a delayed commit.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
protocolprotocol for which policies must be replaced.
policiescomma separated list of policies.
modifiera match statement to insert in each policy.
typedef XorpCallback1<void, const XrlError&>::RefPtr ExportCB

ExportCB

bool  send_export ( const char* dst_xrl_target_name, const string& protocol, const string& policies, const string& modifier, const ExportCB& cb )

send_export

typedef XorpCallback1<void, const XrlError&>::RefPtr AddVarmapCB

AddVarmapCB

bool  send_add_varmap ( const char* dst_xrl_target_name, const string& protocol, const string& variable, const string& type, const string& access, const uint32_t& id, const AddVarmapCB& cb )

send_add_varmap

Send Xrl intended to:

Add a variable to the varmap configuration.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
protocolthe protocol this variable is available to.
variablename of the variable.
typethe type of the variable.
accessthe permissions on the variable (r/rw).
idunique id for this var. Scoped by protocol.
typedef XorpCallback2<void, const XrlError&, const string*>::RefPtr DumpStateCB

DumpStateCB

bool  send_dump_state ( const char* dst_xrl_target_name, const uint32_t& id, const DumpStateCB& cb )

send_dump_state

Send Xrl intended to:

Dump state of policy manager. To be used ONLY for debugging.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
idwhich aspect of the internal state to dump.
typedef XorpCallback1<void, const XrlError&>::RefPtr SetProtoTargetCB

SetProtoTargetCB

bool  send_set_proto_target ( const char* dst_xrl_target_name, const string& protocol, const string& target, const SetProtoTargetCB& cb )

send_set_proto_target

Send Xrl intended to:

Update the mapping from protocols to their XRL target name.

Parameters:

dst_xrl_target_namethe Xrl target name of the destination.
protocolprotocol to update.
targetXRL target for the protocol.
XrlSender* _sender

_sender

[protected]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:48 2009, using kdoc 2.0a54+XORP.