diff options
author | Andy Grover <agrover@redhat.com> | 2013-02-06 10:58:29 -0800 |
---|---|---|
committer | Andy Grover <agrover@redhat.com> | 2013-02-06 11:06:05 -0800 |
commit | 76b7af4c6932139f0f2adce76040cacf063739e3 (patch) | |
tree | 0841857d6db9e530145045cc10818e27093fbf43 /rtslib/__init__.py | |
parent | 67f413acafec88efa72acfa13435b26fb6436853 (diff) | |
download | rtslib-fb-76b7af4c6932139f0f2adce76040cacf063739e3.tar.gz |
Use classes for fabric modules
specs suck. Make subclasses for each type of fabric.
Move class FabricModule to fabric.py.
Delete data-based spec info in fabrics.py.
Fix generate_wwn to return a valid NAA address, and to support eui.
Replace is_valid_wwn() with normalize_wwn(), which converts it to
normalized format and throws an exception if it's invalid.
Fixup target.py code for changes.
Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'rtslib/__init__.py')
-rw-r--r-- | rtslib/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rtslib/__init__.py b/rtslib/__init__.py index 7d9cfd0..0eee220 100644 --- a/rtslib/__init__.py +++ b/rtslib/__init__.py @@ -21,7 +21,8 @@ from root import RTSRoot from utils import RTSLibError, RTSLibBrokenLink, RTSLibNotInCFS from target import LUN, MappedLUN -from target import NodeACL, NetworkPortal, TPG, Target, FabricModule +from target import NodeACL, NetworkPortal, TPG, Target +from fabric import FabricModule from tcm import FileIOStorageObject, BlockStorageObject from tcm import PSCSIStorageObject, RDMCPStorageObject |