Change in vdsm[master]: update device hooks: Added before and after update device ho...

gvallare at redhat.com gvallare at redhat.com
Fri Apr 12 13:28:48 UTC 2013


Giuseppe Vallarelli has uploaded a new change for review.

Change subject: update device hooks: Added before and after update device hooks.
......................................................................

update device hooks: Added before and after update device hooks.

Added hooks before_vm_update_device and after_vm_update_device
functions.

Change-Id: I4ebb1efd34e6f3c6b37d89696f1cd59a2002343b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=893576
Signed-off-by: Giuseppe Vallarelli <gvallare at redhat.com>
---
M vdsm/hooks.py
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/42/13842/1

diff --git a/vdsm/hooks.py b/vdsm/hooks.py
index c66bfef..414ea96 100644
--- a/vdsm/hooks.py
+++ b/vdsm/hooks.py
@@ -194,6 +194,16 @@
                         raiseError=False, params=params)
 
 
+def before_vm_update_device(domxml, vmconf={}, params={}):
+    return _runHooksDir(domxml, 'before_vm_update_device', vmconf=vmconf,
+                        params=params)
+
+
+def after_vm_update_device(domxml, vmconf={}, params={}):
+    return _runHooksDir(domxml, 'after_vm_update_device', vmconf=vmconf,
+                        raiseError=False, params=params)
+
+
 def before_nic_hotplug(nicxml, vmconf={}, params={}):
     return _runHooksDir(nicxml, 'before_nic_hotplug', vmconf=vmconf,
                         params=params)


--
To view, visit http://gerrit.ovirt.org/13842
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ebb1efd34e6f3c6b37d89696f1cd59a2002343b
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Vallarelli <gvallare at redhat.com>


More information about the vdsm-patches mailing list