]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Port ProphetStor driver to use ABCMeta driver model
authorrick.chen <rick.chen@prophetstor.com>
Thu, 30 Apr 2015 09:30:17 +0000 (17:30 +0800)
committerrick.chen <rick.chen@prophetstor.com>
Wed, 3 Jun 2015 13:39:22 +0000 (21:39 +0800)
Use new ABCMeta driver model for ProphetStor driver.

Change-Id: Ic8ecbecb661971a4535a6899b0d104ef5bdf0011
Implements: blueprint abc-driver-update

cinder/volume/drivers/prophetstor/dplcommon.py

index 5f78982f86ac7912f1bd5a7455442e8cb22ad7a0..b647e2d3d6e1a59f8eb514104120f06a4904f042 100644 (file)
@@ -17,6 +17,7 @@ Implementation of the class of ProphetStor DPL storage adapter of Federator.
     # v2.0.1 Consistency group support
     # v2.0.2 Pool aware scheduler
     # v2.0.3 Consistency group modification support
+    # v2.0.4 Port ProphetStor driver to use new driver model
 """
 
 import base64
@@ -682,9 +683,11 @@ class DPLVolume(object):
                              [httplib.OK, httplib.ACCEPTED])
 
 
-class DPLCOMMONDriver(driver.VolumeDriver):
+class DPLCOMMONDriver(driver.ConsistencyGroupVD, driver.ExtendVD,
+                      driver.CloneableVD, driver.CloneableImageVD,
+                      driver.SnapshotVD, driver.LocalVD, driver.BaseVD):
     """Class of dpl storage adapter."""
-    VERSION = '2.0.3'
+    VERSION = '2.0.4'
 
     def __init__(self, *args, **kwargs):
         super(DPLCOMMONDriver, self).__init__(*args, **kwargs)