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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_nexus(self)
Gets the nexus initiator WWN, or None if the TPG does not have one. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
has_feature(self,
feature)
Whether or not this TPG has a certain feature. |
source code
|
|
|
|
|
|
|
node_acl(self,
node_wwn,
mode='any')
Same as NodeACL() but without specifying the parent_tpg. |
source code
|
|
|
|
network_portal(self,
ip_address,
port,
mode='any')
Same as NetworkPortal() but without specifying the parent_tpg. |
source code
|
|
|
|
lun(self,
lun,
storage_object=None,
alias=None)
Same as LUN() but without specifying the parent_tpg. |
source code
|
|
|
|
|
|
|
|
|
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__
|
|
|
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.
|
|
|
chap_userid
Set or get the initiator CHAP auth userid.
|
|
|
chap_password
Set or get the initiator CHAP auth password.
|
|
|
chap_mutual_userid
Set or get the initiator CHAP auth userid.
|
|
|
chap_mutual_password
Set or get the initiator CHAP auth password.
|
|
|
authenticate_target
Get the boolean authenticate target flag.
|
|
Inherited from node.CFSNode:
exists,
path
Inherited from object:
__class__
|