Package rtslib :: Module target :: Class NodeACL

[hide private]
[frames] | no frames]

# Class NodeACL

      object --+
               |
    node.CFSNode --+
                   |
                  NodeACL

This is an interface to node ACLs in configFS. A NodeACL is identified by the initiator node wwn and parent TPG.

Instance Methods | [hide private]

__init__(self, parent_tpg, node_wwn, mode=`'``any``'`) Returns: A NodeACL object. |

_get_node_wwn(self) |

_get_parent_tpg(self) |

_get_tcq_depth(self) |

_set_tcq_depth(self, depth) |

_list_mapped_luns(self) |

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

delete(self) Delete the NodeACL, including all MappedLUN objects. |

mapped_lun(self, mapped_lun, tpg_lun=None, write_protect=None) Same as MappedLUN() but without the parent_nodeacl parameter. |

Inherited from `node.CFSNode`: `__nonzero__`, `__str__`, `get_attribute`, `get_auth_attr`, `get_parameter`, `list_attributes`, `list_auth_attrs`, `list_parameters`, `set_attribute`, `set_auth_attr`, `set_parameter`

Inherited from `node.CFSNode` (private): `_check_self`, `_create_in_cfs_ine`, `_exists`, `_get_path`, `_is_fresh`, `_list_files`

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

Class Variables | [hide private]

Inherited from `node.CFSNode`: `alua_metadata_dir`, `configfs_dir`, `spec_dir`

Properties | [hide private]

| tcq_depth Set or get the TCQ depth for the initiator sessions matching this NodeACL.
| parent_tpg Get the parent TPG object.
| node_wwn Get the node wwn.
| mapped_luns Get the list of all MappedLUN objects in this NodeACL.
Inherited from `node.CFSNode`: `exists`, `is_fresh`, `path` Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, parent_tpg, node_wwn, mode=`'``any``'`)
(Constructor)

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  - `parent_tpg` (TPG) - The parent TPG object.
  - `node_wwn` (string) - The wwn of the initiator node for which the ACL is created.
  - `mode` (string) - An optionnal string containing the object creation mode:
    - 'any' means the configFS object will be either looked up or created.
    - 'lookup' means the object MUST already exist configFS.
    - 'create' means the object must NOT already exist in configFS.
Returns:
  A NodeACL object.
Overrides: object.__init__

### delete(self)

Delete the NodeACL, including all MappedLUN objects. If the underlying configFS object does not exist, this method does nothing.

Overrides: node.CFSNode.delete

Property Details | [hide private]

### tcq_depth

Set or get the TCQ depth for the initiator sessions matching this NodeACL.

Get Method:
  _get_tcq_depth(self)
Set Method:
  _set_tcq_depth(self, depth)

### parent_tpg

Get the parent TPG object.

Get Method:
  _get_parent_tpg(self)

### node_wwn

Get the node wwn.

Get Method:
  _get_node_wwn(self)

### mapped_luns

Get the list of all MappedLUN objects in this NodeACL.

Get Method:
  _list_mapped_luns(self)