projects
/
osm
/
openvim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e088f32
)
Fix bug, check VF is active before destroy
51/1851/1
author
mirabal
<leonardo.mirabal@altran.com>
Thu, 18 May 2017 12:16:26 +0000
(14:16 +0200)
committer
mirabal
<leonardo.mirabal@altran.com>
Thu, 18 May 2017 12:16:26 +0000
(14:16 +0200)
Change-Id: Id589ab96fad5a4c1af876e03a0f27586b2af7695
Signed-off-by: mirabal <leonardo.mirabal@altran.com>
osm_openvim/host_thread.py
patch
|
blob
|
history
diff --git
a/osm_openvim/host_thread.py
b/osm_openvim/host_thread.py
index
1f8fdb4
..
80d9986
100644
(file)
--- a/
osm_openvim/host_thread.py
+++ b/
osm_openvim/host_thread.py
@@
-1901,7
+1901,8
@@
class host_thread(threading.Thread):
#TODO.Revise self.server_forceoff(True)
iface = conn.interfaceLookupByMACString(mac)
- iface.destroy()
+ if iface.isActive():
+ iface.destroy()
iface.create()
self.logger.debug("restore_iface '%s' %s", name, mac)
except host_thread.lvirt_module.libvirtError as e: