BulkService class.
The BulkService class provides the enhanced Policy API for submitting
and activating policy in bulk fashion.
ActivationHolder in BulkService is provided as a container to group a
policy with its intended targets.
The ActivationHolder object is then used to activate the policy in the
network element.
|
__init__(self,
element)
Constructs a BulkService object. |
|
|
|
create_class(self,
type,
element,
class_name=None)
Create an instance of ClassMap class |
|
|
|
create_policy(self,
type,
element,
policy_name=None)
Create an instance of PolicyMap class |
|
|
|
|
|
|
|
|
|
update_class_map(self,
*class_maps)
Update a list of class maps in the network element. |
|
|
|
delete_class_map(self,
*class_maps)
Deletes a list of class maps from the network element. |
|
|
|
|
|
|
|
update_policy_map(self,
*policy_maps)
Update a list of policy maps in the network element. |
|
|
|
delete_policy_map(self,
*policy_maps)
Deletes a list of policy maps from the network element. |
|
|
BulkService.ActivationHolder
|
|
|
activate_policy(self,
*activations)
Activates the policy to its targets that are specified in the
ActivationHolder list. |
|
|
|
async_activate_policy(self,
listener,
app_context,
*activations)
Asynchronously activates the policy to its targets that are specified
in the ActivationHolder list. |
|
|
|
deactivate_policy(self,
*activations)
De-activates the policy from its targets that are specified in the
ActivationHolder list. |
|
|
|
|
|
get_policy_statistics(self,
filters,
listener=None,
app_context=None,
opcode=None)
Retrieves statistics according to filter specifications. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|