Change in vdsm[master]: Device custom properties: Cache device XML after hotplug

amuller at redhat.com amuller at redhat.com
Thu Apr 11 08:47:19 UTC 2013


Assaf Muller has uploaded a new change for review.

Change subject: Device custom properties: Cache device XML after hotplug
......................................................................

Device custom properties: Cache device XML after hotplug

We now cache new device XML after diskHotplug and nicHotplug,
just like we cache device XML when they are created during
vmCreate.

Change-Id: I1d7a78b6b9cff6484b97d42560092292b38d02c4
Signed-off-by: Assaf Muller <amuller at redhat.com>
---
M vdsm/libvirtvm.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/02/13802/1

diff --git a/vdsm/libvirtvm.py b/vdsm/libvirtvm.py
index 7482dd1..18ca5aa 100644
--- a/vdsm/libvirtvm.py
+++ b/vdsm/libvirtvm.py
@@ -1556,6 +1556,7 @@
         nicXml = nic.getXML().toprettyxml(encoding='utf-8')
         nicXml = hooks.before_nic_hotplug(nicXml, self.conf,
                                           params=params.get('custom', {}))
+        nic._deviceXML = nicXml
         self.log.debug("Hotplug NIC xml: %s", nicXml)
 
         try:
@@ -1800,6 +1801,7 @@
 
         hooks.before_disk_hotplug(driveXml, self.conf,
                                   params=params.get('custom', {}))
+        drive._deviceXML = driveXml
         try:
             self._dom.attachDevice(driveXml)
         except libvirt.libvirtError as e:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d7a78b6b9cff6484b97d42560092292b38d02c4
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Assaf Muller <amuller at redhat.com>


More information about the vdsm-patches mailing list