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. |
|
|
|
|
|
_list_node_acl_groups(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. |
|
|
|
_get_authenticate_target(self) |
|
|
|
|
Inherited from node.CFSNode :
__eq__ ,
__ne__ ,
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.
|
|
node_acl_groups
Get the list of NodeACL groups 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__
|