Repository: cloudstack
Updated Branches:
  refs/heads/master 29f9e1db4 -> 432557427


CLOUDSTACK-8738: Added the two methods for enable and cancel maintenance mode 
on StoragePool


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/2a0eaaeb
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/2a0eaaeb
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/2a0eaaeb

Branch: refs/heads/master
Commit: 2a0eaaebd301c623879384801261c39ea73da305
Parents: b407c52
Author: Sowmya Krishnan <[email protected]>
Authored: Mon Aug 17 16:22:54 2015 +0530
Committer: Sowmya Krishnan <[email protected]>
Committed: Mon Aug 17 16:22:54 2015 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/lib/base.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/2a0eaaeb/tools/marvin/marvin/lib/base.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/lib/base.py b/tools/marvin/marvin/lib/base.py
index 71aa3e6..aca7fd1 100755
--- a/tools/marvin/marvin/lib/base.py
+++ b/tools/marvin/marvin/lib/base.py
@@ -2638,6 +2638,22 @@ class StoragePool:
         return apiclient.enableStorageMaintenance(cmd)
 
     @classmethod
+    def enableMaintenance(cls, apiclient, id):
+        """enables maintenance mode Storage pool"""
+
+        cmd = enableStorageMaintenance.enableStorageMaintenanceCmd()
+        cmd.id = id
+        return apiclient.enableStorageMaintenance(cmd)
+
+    @classmethod
+    def cancelMaintenance(cls, apiclient, id):
+        """Cancels maintenance mode Host"""
+
+        cmd = cancelStorageMaintenance.cancelStorageMaintenanceCmd()
+        cmd.id = id
+        return apiclient.cancelStorageMaintenance(cmd)
+
+    @classmethod
     def list(cls, apiclient, **kwargs):
         """List all storage pools matching criteria"""
 

Reply via email to