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) repr(x) |

__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) |

add_acl(self, node_wwn) Add a WWN to the NodeACLGroup. |

remove_acl(self, node_wwn) Remove a WWN from the NodeACLGroup. |

has_feature(self, feature) Whether or not this NodeACL has a certain feature. |

mapped_lun_group(self, mapped_lun, tpg_lun=None, write_protect=None) Add a mapped lun to all group members. |

_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`, `get_attribute`, `get_parameter`, `list_attributes`, `list_parameters`, `set_attribute`, `set_parameter`

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

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

| parent_tpg Get the parent TPG object.
| _node_acls Gives access to the underlying NodeACLs within this group.
| wwns Give the Node WWNs of members of this group.
| sessions Yields any current sessions.
| mapped_lun_groups Generates all MappedLUNGroup objects in this NodeACLGroup.
| name Get/set NodeACLGroup name.
| tcq_depth Set or get the TCQ depth for the initiator sessions matching this NodeACLGroup
| authenticate_target Get the boolean authenticate target flag.
Inherited from `Group`: `exists` Inherited from `object`: `__class__`

Method Details | [hide private]

### __repr__(self)
(Representation operator)

repr(x)

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: object.__init__
  (inherited documentation)

### 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

Property Details | [hide private]

### parent_tpg

Get the parent TPG object.

Get Method:
  unreachable.parent_tpg(self) - Get the parent TPG object.

### _node_acls

Gives access to the underlying NodeACLs within this group.

Get Method:
  unreachable._node_acls(self) - Gives access to the underlying NodeACLs within this group.

### wwns

Give the Node WWNs of members of this group.

Get Method:
  unreachable.wwns(self) - Give the Node WWNs of members of this group.

### sessions

Yields any current sessions.

Get Method:
  unreachable.sessions(self) - Yields any current sessions.

### mapped_lun_groups

Generates all MappedLUNGroup objects in this NodeACLGroup.

Get Method:
  unreachable.mapped_lun_groups(self) - Generates all MappedLUNGroup objects in this NodeACLGroup.

### name

Get/set NodeACLGroup name.

Get Method:
  _get_name(self)
Set Method:
  _set_name(self, name)

### tcq_depth

Set or get the TCQ depth for the initiator sessions matching this NodeACLGroup

Get Method:

      <functools.partial object>

Set Method:

      <functools.partial object>

### authenticate_target

Get the boolean authenticate target flag.

Get Method:

      <functools.partial object>