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,
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. |
|
|
|
|
_create_in_cfs_ine(self,
mode)
Creates the configFS node if it does not already exists depending on
the mode. |
|
|
|
|
|
|
|
|
|
|
|
|
|
| _get_alua_metadata_path(self) |
|
|
|
|
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:
__nonzero__,
__str__,
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__
|
|
|
alua_metadata_path
Get the ALUA metadata directory path for the TPG.
|
|
|
tag
Get the TPG Tag as an int.
|
|
|
parent_target
Get the parent Target object to which the TPG is attached.
|
|
|
enable
Get or set a boolean value representing the enable status of the TPG.
|
|
|
network_portals
Get the list of NetworkPortal objects currently attached to the TPG.
|
|
|
node_acls
Get the list of NodeACL objects currently attached to the TPG.
|
|
|
luns
Get the list of LUN objects currently attached to the TPG.
|
|
|
nexus
Get or set (once) the TPG's Nexus is used.
|
|
Inherited from node.CFSNode:
exists,
is_fresh,
path
Inherited from object:
__class__
|