[node-patches] Change in ovirt-node[master]: utils/network: NIC() set config.bridge

rbarry at redhat.com rbarry at redhat.com
Thu Jan 7 14:55:22 UTC 2016


Ryan Barry has posted comments on this change.

Change subject: utils/network: NIC() set config.bridge
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.ovirt.org/#/c/49051/1/src/ovirt/node/utils/network.py
File src/ovirt/node/utils/network.py:

Line 358: 
Line 359:     def __init__(self, snic):
Line 360:         super(BridgedNIC, self).__init__(snic.ifname)
Line 361:         self.slave_nic = snic
Line 362:         self.bridge_nic = NIC(snic.ifname)
> Fabian, my understanding is that caller has passed as snic in param the ovi
That's correct, but this appears intentional. Again, I've never really looked at this before, but it seems that BridgedNIC(nic) is setting BridgedNIC.bridge_nic in order to point to the bridge itself.

That way, BridgedNIC.is_configured() is checking whether the bridge (ovirtmgmt, for example) is_configured()

I would look at what object bridge_nic is (hopefully NIC), and why that object's .is_configured is not returning true (for bridges, presumably)
Line 363:         self.config = self.bridge_nic.config
Line 364: 
Line 365:     def exists(self):
Line 366:         return self.bridge_nic.exists()


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

Gerrit-MessageType: comment
Gerrit-Change-Id: Ia680a3ed97b3352dfe07f8653010df20a53f3683
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Douglas Schilling Landgraf <dougsland at redhat.com>
Gerrit-Reviewer: Fabian Deutsch <fabiand at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Ryan Barry <rbarry at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>
Gerrit-HasComments: Yes



More information about the node-patches mailing list