]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Port XIVDS8K Driver to use ABCMeta driver model
authorAlon Marx <alonma@il.ibm.com>
Sat, 25 Jul 2015 06:48:36 +0000 (09:48 +0300)
committerAlon Marx <alonma@il.ibm.com>
Sat, 25 Jul 2015 06:48:36 +0000 (09:48 +0300)
Use new ABCMeta driver model for XIVDS8KDriver.

Change-Id: I24eae5d3622b950dd8ff4f516258a2a33dcf7847
Partially-implements: blueprint abc-driver-update

cinder/volume/drivers/ibm/xiv_ds8k.py

index a58eb830e854d18e2f8532a98859a69044a9b19e..302955ec5b696241fb54e72241899ae184a60454 100644 (file)
@@ -27,6 +27,7 @@ from oslo_log import log as logging
 from oslo_utils import importutils
 
 from cinder import exception
+from cinder.volume import driver
 from cinder.volume.drivers.san import san
 
 xiv_ds8k_opts = [
@@ -57,7 +58,17 @@ CONF.register_opts(xiv_ds8k_opts)
 LOG = logging.getLogger(__name__)
 
 
-class XIVDS8KDriver(san.SanDriver):
+class XIVDS8KDriver(san.SanDriver,
+                    driver.ManageableVD,
+                    driver.ExtendVD,
+                    driver.SnapshotVD,
+                    driver.MigrateVD,
+                    driver.ReplicaVD,
+                    driver.ConsistencyGroupVD,
+                    driver.CloneableVD,
+                    driver.CloneableImageVD,
+                    driver.RetypeVD,
+                    driver.TransferVD):
     """Unified IBM XIV and DS8K volume driver."""
 
     def __init__(self, *args, **kwargs):