[node-patches] Change in ovirt-node[master]: utils/network: BridgedNIC use proper value for self.bridge_nic

dougsland at redhat.com dougsland at redhat.com
Mon Nov 23 23:15:41 UTC 2015


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: utils/network: BridgedNIC use proper value for self.bridge_nic
......................................................................

utils/network: BridgedNIC use proper value for self.bridge_nic

snic.config.bridge value is None and mislead the TUI showing
wrong data to users about bridge. This patch sets the bridge_nic
as the interface name detected as bridge.

Change-Id: Ia680a3ed97b3352dfe07f8653010df20a53f3683
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1280241
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M src/ovirt/node/utils/network.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/51/49051/1

diff --git a/src/ovirt/node/utils/network.py b/src/ovirt/node/utils/network.py
index fa742d0..4620ce6 100755
--- a/src/ovirt/node/utils/network.py
+++ b/src/ovirt/node/utils/network.py
@@ -359,7 +359,7 @@
     def __init__(self, snic):
         super(BridgedNIC, self).__init__(snic.ifname)
         self.slave_nic = snic
-        self.bridge_nic = NIC(snic.config.bridge)
+        self.bridge_nic = NIC(snic.ifname)
         self.config = self.bridge_nic.config
 
     def exists(self):


-- 
To view, visit https://gerrit.ovirt.org/49051
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia680a3ed97b3352dfe07f8653010df20a53f3683
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list