Alon Bar-Lev has uploaded a new change for review.

Change subject: node: detect: detect own bridges
......................................................................

node: detect: detect own bridges

Change-Id: I37b1050bddbad769533838460753f02ad57a011f
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M ChangeLog
M src/ovirt_host_deploy/constants.py
M src/plugins/ovirt-host-deploy/node/detect.py
3 files changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/53/15953/1

diff --git a/ChangeLog b/ChangeLog
index fe5aebd..ab08298 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
  * vdsm: vdsmid: do not attempt to install dmidecode on platforms other than
    x86.
  * vdsm: vdsmid: detect power cpu correctly.
+ * vdsm: ovirt-node: detect nodes with own bridges and report back.
  * gluster: packages: start glusterd if no reboot.
  * build: re-introduce external gettext packaging.
 
diff --git a/src/ovirt_host_deploy/constants.py 
b/src/ovirt_host_deploy/constants.py
index d81f277..af91fef 100644
--- a/src/ovirt_host_deploy/constants.py
+++ b/src/ovirt_host_deploy/constants.py
@@ -95,6 +95,7 @@
     MANAGEMENT_BRIDGE_NAME = 'VDSM/managementBridgeName'
     CHECK_VIRT_HARDWARE = 'VDSM/checkVirtHardware'
     OVIRT_NODE = 'VDSM/node'
+    OVIRT_NODE_HAS_OWN_BRIDGES = 'VDSM/nodeHasOwnBridges'
     CONFIG_OVERRIDE = 'VDSM/configOverride'
     CONFIG_PREFIX = 'VDSM_CONFIG/'
 
diff --git a/src/plugins/ovirt-host-deploy/node/detect.py 
b/src/plugins/ovirt-host-deploy/node/detect.py
index 921cecf..4c927c1 100644
--- a/src/plugins/ovirt-host-deploy/node/detect.py
+++ b/src/plugins/ovirt-host-deploy/node/detect.py
@@ -57,6 +57,9 @@
                 bool(glob.glob('/etc/ovirt-node-*-release'))
             )
         )
+        self.environment[
+            odeploycons.VdsmEnv.OVIRT_NODE_HAS_OWN_BRIDGES
+        ] = len(glob.glob('/sys/class/net/br*/bridge/bridge_id')) != 0
         self.environment.setdefault(
             odeploycons.CoreEnv.OFFLINE_PACKAGER,
             self.environment[


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I37b1050bddbad769533838460753f02ad57a011f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to