Module fabric
This file is part of RTSLib.
Copyright (c) 2011-2013 by Datera, Inc
Copyright (c) 2011-2014 by Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations
under the License.
Description
-----------
Fabrics may differ in how fabric WWNs are represented, as well as
what capabilities they support
Available parameters
--------------------
* features
Lists the target fabric available features. Default value:
("discovery_auth", "acls", "auth", "nps")
example: features = ("discovery_auth", "acls", "auth")
example: features = () # no features supported
Detail of features:
* tpgts
The target fabric module is using iSCSI-style target portal group tags.
* discovery_auth
The target fabric module supports a fabric-wide authentication for
discovery.
* acls
The target's TPGTs support explicit initiator ACLs.
* auth
The target's TPGT's support per-TPG authentication, and
the target's TPGT's ACLs support per-ACL initiator authentication.
Fabrics that support auth must support acls.
* nps
The TPGTs support iSCSI-like IPv4/IPv6 network portals, using IP:PORT
group names.
* nexus
The TPGTs have a 'nexus' attribute that contains the local initiator
serial unit. This attribute must be set before being able to create any
LUNs.
* wwn_types
Sets the type of WWN expected by the target fabric. Defaults to 'free'.
Usually a fabric will only support one type but iSCSI supports more.
First entry is the "native" wwn type - i.e. if a wwn can be generated, it
will be of this type.
Example: wwn_types = ("eui",)
Current valid types are:
* free
Freeform WWN.
* iqn
The fabric module targets are using iSCSI-type IQNs.
* naa
NAA FC or SAS address type WWN.
* eui
EUI-64. See http://en.wikipedia.org/wiki/MAC_address for info on this format.
* unit_serial
Disk-type unit serial.
* wwns
This property returns an iterable (either generator or list) of valid
target WWNs for the fabric, if WWNs should be chosen from existing
fabric interfaces. The most common case for this is hardware-set
WWNs. WWNs should conform to rtslib's normalized internal format: the wwn
type (see above), a period, then the wwn with interstitial dividers like
':' removed.
* to_fabric_wwn()
Converts WWNs from normalized format (see above) to whatever the kernel code
expects when getting a wwn. Only needed if different from normalized format.
* kernel_module
Sets the name of the kernel module implementing the fabric modules. If
not specified, it will be assumed to be MODNAME_target_mod, where
MODNAME is the name of the fabric module, from the fabrics list. Note
that you must not specify any .ko or such extension here.
Example: self.kernel_module = "my_module"
* _path
Sets the path of the configfs group used by the fabric module. Defaults to the
name of the module from the fabrics list.
Example: self._path = "%s/%s" % (self.configfs_dir, "my_cfs_dir")
|
version_attributes = set([ ' lio_version ' , ' version ' ])
|
|
discovery_auth_attributes = set([ ' discovery_auth ' ])
|
|
target_names_excludes = set([ ' discovery_auth ' , ' lio_version ' , ...
|
|
fabric_modules = { ' iscsi ' : <class 'rtslib.fabric.ISCSIFabricMo...
|
|
__package__ = ' rtslib '
|
target_names_excludes
- Value:
set([ ' discovery_auth ' , ' lio_version ' , ' version ' ])
|
|
fabric_modules
- Value:
{ ' iscsi ' : <class 'rtslib.fabric.ISCSIFabricModule'>,
' loopback ' : <class 'rtslib.fabric.LoopbackFabricModule'>,
' qla2xxx ' : <class 'rtslib.fabric.Qla2xxxFabricModule'>,
' srpt ' : <class 'rtslib.fabric.SRPTFabricModule'>,
' tcm_fc ' : <class 'rtslib.fabric.FCoEFabricModule'>}
|
|