This is a an interface to Target Portal Groups in configFS. A TPG is
identified by its parent Target object and its TPG Tag. To a TPG object
is attached a list of NetworkPortals. Targets without the 'tpgts' feature
cannot have more than a single TPG, so attempts to create more will raise
an exception.
|
|
|
__init__(self,
parent_target,
tag=None,
mode=' any ' )
Returns:
A TPG object. |
|
|
|
|
|
|
|
_list_network_portals(self) |
|
|
|
|
|
_set_enable(self,
boolean)
Enables or disables the TPG. |
|
|
|
_get_nexus(self)
Gets the nexus initiator WWN, or None if the TPG does not have one. |
|
|
|
_set_nexus(self,
nexus_wwn=None)
Sets the nexus initiator WWN. |
|
|
|
|
|
|
|
|
|
has_feature(self,
feature)
Whether or not this TPG has a certain feature. |
|
|
|
delete(self)
Recursively deletes a TPG object. |
|
|
|
node_acl(self,
node_wwn,
mode=' any ' )
Same as NodeACL() but without specifying the parent_tpg. |
|
|
|
network_portal(self,
ip_address,
port,
mode=' any ' )
Same as NetworkPortal() but without specifying the parent_tpg. |
|
|
|
lun(self,
lun,
storage_object=None,
alias=None)
Same as LUN() but without specifying the parent_tpg. |
|
|
|
|
Inherited from node.CFSNode :
get_attribute ,
get_parameter ,
list_attributes ,
list_parameters ,
set_attribute ,
set_parameter
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|