__init__(self,
parent_nodeacl,
mapped_lun,
tpg_lun=None,
write_protect=None,
alias=None)
(Constructor)
|
|
A MappedLUN object can be instanciated in two ways:
-
Creation mode: If tpg_lun is specified, the underlying
configFS object will be created with that parameter. No MappedLUN
with the same mapped_lun index can pre-exist in the parent
NodeACL in that mode, or instanciation will fail.
-
Lookup mode: If tpg_lun is not set, then the MappedLUN
will be bound to the existing configFS MappedLUN object of the parent
NodeACL having the specified mapped_lun index. The underlying
configFS object must already exist in that mode.
- Parameters:
mapped_lun (int) - The mapped LUN index.
tpg_lun (int or LUN) - The TPG LUN index to map, or directly a LUN object that belong to
the same TPG as the parent NodeACL.
write_protect (bool) - The write-protect flag value, defaults to False (write-protection
disabled).
- Overrides:
node.CFSNode.__init__
|