Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: engine_page: replace netinfo to xmlrpc
......................................................................

engine_page: replace netinfo to xmlrpc

Currently ovirt-node-plugin-vdsm uses vdsm netinfo
module to consult data. However, if for some reason
the connection between vdsm and libvirt is not
available vdsm kills the caller. This patch will
replace the uses of netinfo to use xmlrpc via
vdscli module

Change-Id: I2a1243342a5f46861940dda353798e3413587969
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1097645
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>
---
M src/engine_page.py
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node-plugin-vdsm 
refs/changes/79/27779/1

diff --git a/src/engine_page.py b/src/engine_page.py
index 24e967a..abbce2c 100644
--- a/src/engine_page.py
+++ b/src/engine_page.py
@@ -29,7 +29,7 @@
 from ovirt.node.config.defaults import NodeConfigFileSection, SSH, Management
 from ovirt.node.plugins import Changeset
 
-from vdsm import netinfo
+from vdsm import vdscli
 
 """
 Configure Engine
@@ -46,9 +46,11 @@
     """
     engine_data = None
     cfg = VDSM().retrieve()
-    networks = netinfo.networks()
 
     mgmtIface = []
+    cli = vdscli.connect()
+    networks = cli.getVdsCapabilities()['info']['networks']
+
     for net in networks:
         if net in ('ovirtmgmt', 'rhevm'):
             if 'bridge' in networks[net]:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a1243342a5f46861940dda353798e3413587969
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node-plugin-vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsl...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to