xorp

XrlPolicyV0p1Client Class Reference

List of all members.

Public Types

typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreateTermCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteTermCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
UpdateTermBlockCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreatePolicyCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeletePolicyCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreateSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
UpdateSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddToSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteFromSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DoneGlobalPolicyConfCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ImportCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ExportCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddVarmapCB
typedef XorpCallback2< void,
const XrlError &, const string * >
::RefPtr 
DumpStateCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetProtoTargetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreateTermCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteTermCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
UpdateTermBlockCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreatePolicyCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeletePolicyCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
CreateSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
UpdateSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddToSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DeleteFromSetCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
DoneGlobalPolicyConfCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ImportCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
ExportCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
AddVarmapCB
typedef XorpCallback2< void,
const XrlError &, const string * >
::RefPtr 
DumpStateCB
typedef XorpCallback1< void,
const XrlError & >::RefPtr 
SetProtoTargetCB

Public Member Functions

 XrlPolicyV0p1Client (XrlSender *s)
bool send_create_term (const char *dst_xrl_target_name, const string &policy, const string &order, const string &term, const CreateTermCB &cb)
 Send Xrl intended to:
bool send_delete_term (const char *dst_xrl_target_name, const string &policy, const string &term, const DeleteTermCB &cb)
 Send Xrl intended to:
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 Xrl intended to:
bool send_create_policy (const char *dst_xrl_target_name, const string &policy, const CreatePolicyCB &cb)
 Send Xrl intended to:
bool send_delete_policy (const char *dst_xrl_target_name, const string &policy, const DeletePolicyCB &cb)
 Send Xrl intended to:
bool send_create_set (const char *dst_xrl_target_name, const string &set, const CreateSetCB &cb)
 Send Xrl intended to:
bool send_update_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &elements, const UpdateSetCB &cb)
 Send Xrl intended to:
bool send_delete_set (const char *dst_xrl_target_name, const string &set, const DeleteSetCB &cb)
 Send Xrl intended to:
bool send_add_to_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &element, const AddToSetCB &cb)
 Send Xrl intended to:
bool send_delete_from_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &element, const DeleteFromSetCB &cb)
 Send Xrl intended to:
bool send_done_global_policy_conf (const char *dst_xrl_target_name, const DoneGlobalPolicyConfCB &cb)
 Send Xrl intended to:
bool send_import (const char *dst_xrl_target_name, const string &protocol, const string &policies, const string &modifier, const ImportCB &cb)
 Send Xrl intended to:
bool send_export (const char *dst_xrl_target_name, const string &protocol, const string &policies, const string &modifier, const ExportCB &cb)
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 Xrl intended to:
bool send_dump_state (const char *dst_xrl_target_name, const uint32_t &id, const DumpStateCB &cb)
 Send Xrl intended to:
bool send_set_proto_target (const char *dst_xrl_target_name, const string &protocol, const string &target, const SetProtoTargetCB &cb)
 Send Xrl intended to:
 XrlPolicyV0p1Client (XrlSender *s)
bool send_create_term (const char *dst_xrl_target_name, const string &policy, const string &order, const string &term, const CreateTermCB &cb)
 Send Xrl intended to:
bool send_delete_term (const char *dst_xrl_target_name, const string &policy, const string &term, const DeleteTermCB &cb)
 Send Xrl intended to:
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 Xrl intended to:
bool send_create_policy (const char *dst_xrl_target_name, const string &policy, const CreatePolicyCB &cb)
 Send Xrl intended to:
bool send_delete_policy (const char *dst_xrl_target_name, const string &policy, const DeletePolicyCB &cb)
 Send Xrl intended to:
bool send_create_set (const char *dst_xrl_target_name, const string &set, const CreateSetCB &cb)
 Send Xrl intended to:
bool send_update_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &elements, const UpdateSetCB &cb)
 Send Xrl intended to:
bool send_delete_set (const char *dst_xrl_target_name, const string &set, const DeleteSetCB &cb)
 Send Xrl intended to:
bool send_add_to_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &element, const AddToSetCB &cb)
 Send Xrl intended to:
bool send_delete_from_set (const char *dst_xrl_target_name, const string &type, const string &set, const string &element, const DeleteFromSetCB &cb)
 Send Xrl intended to:
bool send_done_global_policy_conf (const char *dst_xrl_target_name, const DoneGlobalPolicyConfCB &cb)
 Send Xrl intended to:
bool send_import (const char *dst_xrl_target_name, const string &protocol, const string &policies, const string &modifier, const ImportCB &cb)
 Send Xrl intended to:
bool send_export (const char *dst_xrl_target_name, const string &protocol, const string &policies, const string &modifier, const ExportCB &cb)
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 Xrl intended to:
bool send_dump_state (const char *dst_xrl_target_name, const uint32_t &id, const DumpStateCB &cb)
 Send Xrl intended to:
bool send_set_proto_target (const char *dst_xrl_target_name, const string &protocol, const string &target, const SetProtoTargetCB &cb)
 Send Xrl intended to:

Protected Attributes

XrlSender_sender

Static Private Member Functions

static void unmarshall_create_term (const XrlError &e, XrlArgs *a, CreateTermCB cb)
static void unmarshall_delete_term (const XrlError &e, XrlArgs *a, DeleteTermCB cb)
static void unmarshall_update_term_block (const XrlError &e, XrlArgs *a, UpdateTermBlockCB cb)
static void unmarshall_create_policy (const XrlError &e, XrlArgs *a, CreatePolicyCB cb)
static void unmarshall_delete_policy (const XrlError &e, XrlArgs *a, DeletePolicyCB cb)
static void unmarshall_create_set (const XrlError &e, XrlArgs *a, CreateSetCB cb)
static void unmarshall_update_set (const XrlError &e, XrlArgs *a, UpdateSetCB cb)
static void unmarshall_delete_set (const XrlError &e, XrlArgs *a, DeleteSetCB cb)
static void unmarshall_add_to_set (const XrlError &e, XrlArgs *a, AddToSetCB cb)
static void unmarshall_delete_from_set (const XrlError &e, XrlArgs *a, DeleteFromSetCB cb)
static void unmarshall_done_global_policy_conf (const XrlError &e, XrlArgs *a, DoneGlobalPolicyConfCB cb)
static void unmarshall_import (const XrlError &e, XrlArgs *a, ImportCB cb)
static void unmarshall_export (const XrlError &e, XrlArgs *a, ExportCB cb)
static void unmarshall_add_varmap (const XrlError &e, XrlArgs *a, AddVarmapCB cb)
static void unmarshall_dump_state (const XrlError &e, XrlArgs *a, DumpStateCB cb)
static void unmarshall_set_proto_target (const XrlError &e, XrlArgs *a, SetProtoTargetCB cb)
static void unmarshall_create_term (const XrlError &e, XrlArgs *a, CreateTermCB cb)
static void unmarshall_delete_term (const XrlError &e, XrlArgs *a, DeleteTermCB cb)
static void unmarshall_update_term_block (const XrlError &e, XrlArgs *a, UpdateTermBlockCB cb)
static void unmarshall_create_policy (const XrlError &e, XrlArgs *a, CreatePolicyCB cb)
static void unmarshall_delete_policy (const XrlError &e, XrlArgs *a, DeletePolicyCB cb)
static void unmarshall_create_set (const XrlError &e, XrlArgs *a, CreateSetCB cb)
static void unmarshall_update_set (const XrlError &e, XrlArgs *a, UpdateSetCB cb)
static void unmarshall_delete_set (const XrlError &e, XrlArgs *a, DeleteSetCB cb)
static void unmarshall_add_to_set (const XrlError &e, XrlArgs *a, AddToSetCB cb)
static void unmarshall_delete_from_set (const XrlError &e, XrlArgs *a, DeleteFromSetCB cb)
static void unmarshall_done_global_policy_conf (const XrlError &e, XrlArgs *a, DoneGlobalPolicyConfCB cb)
static void unmarshall_import (const XrlError &e, XrlArgs *a, ImportCB cb)
static void unmarshall_export (const XrlError &e, XrlArgs *a, ExportCB cb)
static void unmarshall_add_varmap (const XrlError &e, XrlArgs *a, AddVarmapCB cb)
static void unmarshall_dump_state (const XrlError &e, XrlArgs *a, DumpStateCB cb)
static void unmarshall_set_proto_target (const XrlError &e, XrlArgs *a, SetProtoTargetCB cb)

Private Attributes

auto_ptr< Xrlap_xrl_create_term
auto_ptr< Xrlap_xrl_delete_term
auto_ptr< Xrlap_xrl_update_term_block
auto_ptr< Xrlap_xrl_create_policy
auto_ptr< Xrlap_xrl_delete_policy
auto_ptr< Xrlap_xrl_create_set
auto_ptr< Xrlap_xrl_update_set
auto_ptr< Xrlap_xrl_delete_set
auto_ptr< Xrlap_xrl_add_to_set
auto_ptr< Xrlap_xrl_delete_from_set
auto_ptr< Xrlap_xrl_done_global_policy_conf
auto_ptr< Xrlap_xrl_import
auto_ptr< Xrlap_xrl_export
auto_ptr< Xrlap_xrl_add_varmap
auto_ptr< Xrlap_xrl_dump_state
auto_ptr< Xrlap_xrl_set_proto_target

Member Function Documentation

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

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.
bool XrlPolicyV0p1Client::send_add_to_set ( const char *  dst_xrl_target_name,
const string &  type,
const string &  set,
const string &  element,
const AddToSetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::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 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.
bool XrlPolicyV0p1Client::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 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.
bool XrlPolicyV0p1Client::send_create_policy ( const char *  dst_xrl_target_name,
const string &  policy,
const CreatePolicyCB &  cb 
)

Send Xrl intended to:

Create a policy.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
bool XrlPolicyV0p1Client::send_create_policy ( const char *  dst_xrl_target_name,
const string &  policy,
const CreatePolicyCB &  cb 
)

Send Xrl intended to:

Create a policy.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
bool XrlPolicyV0p1Client::send_create_set ( const char *  dst_xrl_target_name,
const string &  set,
const CreateSetCB &  cb 
)

Send Xrl intended to:

Create a set.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
bool XrlPolicyV0p1Client::send_create_set ( const char *  dst_xrl_target_name,
const string &  set,
const CreateSetCB &  cb 
)

Send Xrl intended to:

Create a set.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
bool XrlPolicyV0p1Client::send_create_term ( const char *  dst_xrl_target_name,
const string &  policy,
const string &  order,
const string &  term,
const CreateTermCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_create_term ( const char *  dst_xrl_target_name,
const string &  policy,
const string &  order,
const string &  term,
const CreateTermCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_delete_from_set ( const char *  dst_xrl_target_name,
const string &  type,
const string &  set,
const string &  element,
const DeleteFromSetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_delete_from_set ( const char *  dst_xrl_target_name,
const string &  type,
const string &  set,
const string &  element,
const DeleteFromSetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_delete_policy ( const char *  dst_xrl_target_name,
const string &  policy,
const DeletePolicyCB &  cb 
)

Send Xrl intended to:

Delete a policy.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
bool XrlPolicyV0p1Client::send_delete_policy ( const char *  dst_xrl_target_name,
const string &  policy,
const DeletePolicyCB &  cb 
)

Send Xrl intended to:

Delete a policy.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
policyname of the policy.
bool XrlPolicyV0p1Client::send_delete_set ( const char *  dst_xrl_target_name,
const string &  set,
const DeleteSetCB &  cb 
)

Send Xrl intended to:

Delete a set.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
bool XrlPolicyV0p1Client::send_delete_set ( const char *  dst_xrl_target_name,
const string &  set,
const DeleteSetCB &  cb 
)

Send Xrl intended to:

Delete a set.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
setname of the set.
bool XrlPolicyV0p1Client::send_delete_term ( const char *  dst_xrl_target_name,
const string &  policy,
const string &  term,
const DeleteTermCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_delete_term ( const char *  dst_xrl_target_name,
const string &  policy,
const string &  term,
const DeleteTermCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_done_global_policy_conf ( const char *  dst_xrl_target_name,
const DoneGlobalPolicyConfCB &  cb 
)

Send Xrl intended to:

Commit the configuration.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlPolicyV0p1Client::send_done_global_policy_conf ( const char *  dst_xrl_target_name,
const DoneGlobalPolicyConfCB &  cb 
)

Send Xrl intended to:

Commit the configuration.

Parameters:
dst_xrl_target_namethe Xrl target name of the destination.
bool XrlPolicyV0p1Client::send_dump_state ( const char *  dst_xrl_target_name,
const uint32_t &  id,
const DumpStateCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_dump_state ( const char *  dst_xrl_target_name,
const uint32_t &  id,
const DumpStateCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_import ( const char *  dst_xrl_target_name,
const string &  protocol,
const string &  policies,
const string &  modifier,
const ImportCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_import ( const char *  dst_xrl_target_name,
const string &  protocol,
const string &  policies,
const string &  modifier,
const ImportCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_set_proto_target ( const char *  dst_xrl_target_name,
const string &  protocol,
const string &  target,
const SetProtoTargetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_set_proto_target ( const char *  dst_xrl_target_name,
const string &  protocol,
const string &  target,
const SetProtoTargetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_update_set ( const char *  dst_xrl_target_name,
const string &  type,
const string &  set,
const string &  elements,
const UpdateSetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::send_update_set ( const char *  dst_xrl_target_name,
const string &  type,
const string &  set,
const string &  elements,
const UpdateSetCB &  cb 
)

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.
bool XrlPolicyV0p1Client::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 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.
bool XrlPolicyV0p1Client::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 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.

The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations