[node-patches] Change in ovirt-node[master]: setup: check bridge bootproto instead of device when renamed

jboggs at redhat.com jboggs at redhat.com
Wed Oct 10 18:49:52 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: setup: check bridge bootproto instead of device when renamed
......................................................................

setup: check bridge bootproto instead of device when renamed

rhbz#859873

Change-Id: I710ae355bad1c71ae7f9a3bf35d6e9c741b5c5ed
Signed-off-by: Joey Boggs <jboggs at redhat.com>
---
M scripts/ovirt-config-setup.py
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/75/8475/1

diff --git a/scripts/ovirt-config-setup.py b/scripts/ovirt-config-setup.py
index a06b495..3d8efc2 100755
--- a/scripts/ovirt-config-setup.py
+++ b/scripts/ovirt-config-setup.py
@@ -1062,6 +1062,10 @@
         dev = self.nic_lb.current()
         (interface, bootproto, vendor, address, driver, conf_status,
                 dev_bridge) = self.nic_dict[dev].split(",", 6)
+        if dev_bridge == "rhevm" or dev_bridge == "ovirtmgmt":
+            cmd = ("/files/etc/sysconfig/network-scripts/" + \
+                   "ifcfg-%s/BOOTPROTO" % dev_bridge)
+            bootproto = augtool_get(cmd)
         nic_detail_grid = Grid(6, 10)
         nic_detail_grid.setField(Label("Interface:   "), 0, 1, anchorLeft=1,
                                  padding=(0, 0, 1, 0))


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I710ae355bad1c71ae7f9a3bf35d6e9c741b5c5ed
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list