Package rtslib :: Module target :: Class NodeACLGroup
[hide private]
[frames] | no frames]

Class NodeACLGroup

object --+    
         |    
     Group --+
             |
            NodeACLGroup

Allow a group of NodeACLs that share a tag to be managed collectively.

Instance Methods [hide private]
 
__repr__(self)
 
__init__(self, parent_tpg, name)
members_func is a function that takes a self argument and returns an iterator of the objects that the derived Group class is grouping.
 
_get_name(self)
 
_set_name(self, name)
 
parent_tpg(self)
Get the parent TPG object.
 
add_acl(self, node_wwn)
Add a WWN to the NodeACLGroup.
 
remove_acl(self, node_wwn)
Remove a WWN from the NodeACLGroup.
 
_node_acls(self)
Gives access to the underlying NodeACLs within this group.
 
wwns(self)
Give the Node WWNs of members of this group.
 
has_feature(self, feature)
Whether or not this NodeACL has a certain feature.
 
sessions(self)
Yields any current sessions.
 
mapped_lun_group(self, mapped_lun, tpg_lun=None, write_protect=None)
Add a mapped lun to all group members.
 
mapped_lun_groups(self)
Generates all MappedLUNGroup objects in this NodeACLGroup.
 
_get_chap(self, name)
 
_set_chap(self, name, value, wwn)
 
get_userids(self)
Returns a (wwn, userid) tuple for each member of the group.
 
set_userids(self, value, wwn=None)
If wwn, set the userid for just that wwn, otherwise set it for all group members.
 
get_passwords(self)
Returns a (wwn, password) tuple for each member of the group.
 
set_passwords(self, value, wwn=None)
If wwn, set the password for just that wwn, otherwise set it for all group members.
 
get_mutual_userids(self)
Returns a (wwn, mutual_userid) tuple for each member of the group.
 
set_mutual_userids(self, value, wwn=None)
If wwn, set the mutual_userid for just that wwn, otherwise set it for all group members.
 
get_mutual_passwords(self)
Returns a (wwn, mutual_password) tuple for each member of the group.
 
set_mutual_passwords(self, value, wwn=None)
If wwn, set the mutual_password for just that wwn, otherwise set it for all group members.

Inherited from Group: delete, exists, get_attribute, get_parameter, list_attributes, list_parameters, set_attribute, set_parameter

Inherited from Group (private): _get_first_member, _get_prop, _set_prop

Class Variables [hide private]
  name = property(_get_name, _set_name, doc= "Get/set NodeACLGro...
  tcq_depth = property(partial(Group._get_prop, prop= "tcq_depth...
  authenticate_target = property(partial(Group._get_prop, prop= ...
Method Details [hide private]

__repr__(self)
(Representation operator)

 
Overrides: object.__repr__
(inherited documentation)

__init__(self, parent_tpg, name)
(Constructor)

 

members_func is a function that takes a self argument and returns an iterator of the objects that the derived Group class is grouping.

Overrides: Group.__init__
(inherited documentation)

parent_tpg(self)

 

Get the parent TPG object.

Decorators:
  • @property

add_acl(self, node_wwn)

 

Add a WWN to the NodeACLGroup. If a NodeACL already exists for this WWN, its configuration will be changed to match the NodeACLGroup, except for its auth parameters, which can vary among group members.

Parameters:
  • node_wwn (string) - An initiator WWN

remove_acl(self, node_wwn)

 

Remove a WWN from the NodeACLGroup.

Parameters:
  • node_wwn (string) - An initiator WWN

_node_acls(self)

 

Gives access to the underlying NodeACLs within this group.

Decorators:
  • @property

wwns(self)

 

Give the Node WWNs of members of this group.

Decorators:
  • @property

sessions(self)

 

Yields any current sessions.

Decorators:
  • @property

mapped_lun_groups(self)

 

Generates all MappedLUNGroup objects in this NodeACLGroup.

Decorators:
  • @property

Class Variable Details [hide private]

name

Value:
property(_get_name, _set_name, doc= "Get/set NodeACLGroup name.")

tcq_depth

Value:
property(partial(Group._get_prop, prop= "tcq_depth"), partial(Group._s\
et_prop, prop= "tcq_depth"), doc= "Set or get the TCQ depth for the in\
itiator "+ "sessions matching this NodeACLGroup")

authenticate_target

Value:
property(partial(Group._get_prop, prop= "authenticate_target"), doc= "\
Get the boolean authenticate target flag.")