This is an interface to the root of the configFS object tree. Is
allows one to start browsing Target and StorageObjects, as well as helper
methods to return arbitrary objects from the configFS tree.
|
__init__(self)
Instantiate an RTSRoot object. |
|
|
|
|
|
_list_storage_objects(self) |
|
|
|
|
|
|
|
_list_node_acl_groups(self) |
|
|
|
|
|
_list_mapped_lun_groups(self) |
|
|
|
_list_network_portals(self) |
|
|
|
|
|
|
|
_list_fabric_modules(self) |
|
|
|
|
|
dump(self)
Returns a dict representing the complete state of the target config,
suitable for serialization/deserialization, and then handing to
restore(). |
|
|
|
clear_existing(self,
confirm=False)
Remove entire current configuration. |
|
|
|
restore(self,
config,
clear_existing=False,
abort_on_error=False)
Takes a dict generated by dump() and reconfigures the target to match. |
|
|
|
save_to_file(self,
save_file=None)
Write the configuration in json format to a file. |
|
|
|
restore_from_file(self,
restore_file=None,
clear_existing=True,
abort_on_error=False)
Restore the configuration from a file in json format. |
|
|
Inherited from node.CFSNode :
__eq__ ,
__ne__ ,
delete ,
get_attribute ,
get_parameter ,
list_attributes ,
list_parameters ,
set_attribute ,
set_parameter
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
targets = property(_list_targets, doc= "Get the list of Target...
|
|
tpgs = property(_list_tpgs, doc= "Get the list of all the exis...
|
|
node_acls = property(_list_node_acls, doc= "Get the list of al...
|
|
node_acl_groups = property(_list_node_acl_groups, doc= "Get th...
|
|
mapped_luns = property(_list_mapped_luns, doc= "Get the list o...
|
|
mapped_lun_groups = property(_list_mapped_lun_groups, doc= "Ge...
|
|
sessions = property(_list_sessions, doc= "Get the list of all ...
|
|
network_portals = property(_list_network_portals, doc= "Get th...
|
|
storage_objects = property(_list_storage_objects, doc= "Get th...
|
|
luns = property(_list_luns, doc= "Get the list of all existing...
|
|
fabric_modules = property(_list_fabric_modules, doc= "Get the ...
|
Inherited from node.CFSNode :
configfs_dir ,
exists ,
path
|