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 = property(_get_tag, doc= "Get the TPG Tag as an int.")
|
|
parent_target = property(_get_parent_target, doc= "Get the par...
|
|
enable = property(_get_enable, _set_enable, doc= "Get or set a...
|
|
network_portals = property(_list_network_portals, doc= "Get th...
|
|
node_acls = property(_list_node_acls, doc= "Get the list of No...
|
|
node_acl_groups = property(_list_node_acl_groups, doc= "Get th...
|
|
luns = property(_list_luns, doc= "Get the list of LUN objects ...
|
|
nexus = property(_get_nexus, _set_nexus, doc= "Get or set (onc...
|
|
chap_userid = property(partial(_get_auth_attr, attribute= 'aut...
|
|
chap_password = property(partial(_get_auth_attr, attribute= 'a...
|
|
chap_mutual_userid = property(partial(_get_auth_attr, attribut...
|
|
chap_mutual_password = property(partial(_get_auth_attr, attrib...
|
|
authenticate_target = property(_get_authenticate_target, doc= ...
|
Inherited from node.CFSNode :
configfs_dir ,
exists ,
path
|