Abstract Base clase for Fabric Modules. It can load modules, provide
information about them and handle the configfs housekeeping. After
instantiation, whether or not the fabric module is loaded depends on if a
method requiring it (i.e. accessing configfs) is used. This helps limit
loaded kernel modules to just the fabrics in use.
|
__init__(self,
name)
Instantiate a FabricModule object, according to the provided name. |
|
|
|
|
|
has_feature(self,
feature) |
|
|
|
|
|
|
|
to_normalized_wwn(self,
wwn)
Checks whether or not the provided WWN is valid for this fabric
module according to the spec, and returns a tuple of our preferred
string representation of the wwn, and what type it turned out to be. |
|
|
|
to_fabric_wwn(self,
wwn)
Some fabrics need WWNs in a format different than rtslib's internal
format. |
|
|
|
from_fabric_wwn(self,
wwn)
Converts from WWN format used in this fabric's LIO configfs to
canonical format. |
|
|
|
needs_wwn(self)
This fabric requires wwn to be specified when creating a target, it
cannot be autogenerated. |
|
|
|
_assert_feature(self,
feature) |
|
|
|
clear_discovery_auth_settings(self) |
|
|
|
_get_discovery_enable_auth(self) |
|
|
|
_set_discovery_enable_auth(self,
enable) |
|
|
|
_get_discovery_authenticate_target(self) |
|
|
|
_get_wwns(self)
Returns either iterable or None. |
|
|
|
_get_disc_attr(self,
*args,
**kwargs) |
|
|
|
_set_disc_attr(self,
*args,
**kwargs) |
|
|
|
setup(self,
fm,
err_func)
Setup fabricmodule with settings from fm dict. |
|
|
|
|
Inherited from node.CFSNode :
__eq__ ,
__ne__ ,
delete ,
get_attribute ,
get_parameter ,
list_attributes ,
list_parameters ,
set_attribute ,
set_parameter
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|