Mark Wu has uploaded a new change for review.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Return the result directly instead of generator when getting network for interface
Since one nic could be only used for one non-VLANed bridge or one non-VLANed bridgeless network, it needn't continue to check other networks after found one.
Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Signed-off-by: Mark Wu wudxw@linux.vnet.ibm.com --- M vdsm/configNetwork.py M vdsm/netinfo.py 2 files changed, 17 insertions(+), 16 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/37/9737/1
diff --git a/vdsm/configNetwork.py b/vdsm/configNetwork.py index 09d70ac..dd92bb1 100755 --- a/vdsm/configNetwork.py +++ b/vdsm/configNetwork.py @@ -858,11 +858,11 @@ raise ConfigNetworkError(ne.ERR_USED_NIC, "nic %s already used by vlans %s" % (nic, vlansForNic)) - networksForNic = tuple(_netinfo.getNetworksForIface(nic)) - if networksForNic: + networkForNic = _netinfo.getNetworkForIface(nic) + if networkForNic: raise ConfigNetworkError(ne.ERR_USED_NIC, - "nic %s already used by networks %s" % - (nic, networksForNic)) + "nic %s already used by network %s" % + (nic, networkForNic)) else: _validateInterNetworkCompatibility(_netinfo, vlan, nic, bridged)
@@ -1213,9 +1213,7 @@ logger.debug("Creating/Editing bond %s with attributes %s", bond, bondAttrs)
- brNets = list(_netinfo.getBridgedNetworksForIface(bond)) - # Only one bridged-non-VLANed network allowed on same nic/bond - bridge = brNets[0] if brNets else None + bridge = _netinfo.getBridgedNetworkForIface(bond)
mtu = None if bond in _netinfo.bondings: diff --git a/vdsm/netinfo.py b/vdsm/netinfo.py index f7d1799..0113688 100644 --- a/vdsm/netinfo.py +++ b/vdsm/netinfo.py @@ -432,22 +432,25 @@ if iface == vdict['iface']: yield v.split('.', 1)[1]
- def getNetworksForIface(self, iface): - """ Return all networks attached to nic/bond """ - return chain(self.getBridgelessNetworksForIface(iface), - self.getBridgedNetworksForIface(iface)) + def getNetworkForIface(self, iface): + """ Return the network attached to nic/bond """ + network = self.getBridgelessNetworkForIface(iface) + if network is not None: + return network + else: + return self.getBridgedNetworkForIface(iface)
- def getBridgelessNetworksForIface(self, iface): - """ Return all bridgeless networks attached to nic/bond """ + def getBridgelessNetworkForIface(self, iface): + """ Return the bridgeless network attached to nic/bond """ for network, netdict in self.networks.iteritems(): if not netdict['bridged'] and iface == netdict['iface']: - yield network + return network
- def getBridgedNetworksForIface(self, iface): + def getBridgedNetworkForIface(self, iface): """ Return all bridged networks attached to nic/bond """ for bridge, netdict in self.networks.iteritems(): if netdict['bridged'] and iface in netdict['ports']: - yield bridge + return bridge
def getBondingsForNic(self, nic): for b, bdict in self.bondings.iteritems():
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com
oVirt Jenkins CI Server has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1318/ (1/3)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1356/ (2/3)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/465/ (3/3)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1318/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1356/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit_el/465/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Hunt Xu has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2: (1 inline comment)
.................................................... File vdsm/netinfo.py Line 476: network = self.getBridgelessNetworkForIface(iface) Line 477: if network is not None: Line 478: return network Line 479: else: Line 480: return self.getBridgedNetworkForIface(iface) I don't think we really need to iterate the self.network dict twice though I have no idea about how much it affects the performance.
IMO we could move the iteration here(unpep8ed):
def getNetworkForIface(self, iface): for network, netdict in self.networks.iteritems(): if (not netdict['bridged'] and iface == netdict['iface']) or (netdict['bridged'] and iface in netdict['ports']): return network
Or even to simplify the if statement to: if iface == netdict['iface'] or 'ports' in netdict and iface in netdict['ports']
Thus whether to remove getBridge{d,less}NetworkForIface depends on whether we are keeping them for future usage. Line 481: Line 482: def getBridgelessNetworks(self): Line 483: """ Return all bridgless networks.""" Line 484: for network, netdict in self.networks.iteritems():
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has posted comments on this change.
Change subject: Return the result directly instead of generator when getting network for interface ......................................................................
Patch Set 2: I would prefer that you didn't submit this
(1 inline comment)
minor comment on comment.
.................................................... Commit Message Line 3: AuthorDate: 2012-12-05 15:49:57 +0800 Line 4: Commit: Mark Wu wudxw@linux.vnet.ibm.com Line 5: CommitDate: 2013-02-21 14:46:04 +0800 Line 6: Line 7: Return the result directly instead of generator when getting network Yes, the current name and implementation of netinfo.getNetworksForIface is misleading. Thanks.
Would you rewrite the subject line in the spirit of:
netinfo: there may be up to one network attached directly to an Iface Line 8: for interface Line 9: Line 10: Since one nic could be only used for one non-VLANed bridge or one non-VLANed Line 11: bridgeless network, it needn't continue to check other networks after
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1521/ (1/2)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1484/ (2/2)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3:
Build Successful
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1521/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1484/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Mark Wu has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 2: (1 inline comment)
.................................................... File vdsm/netinfo.py Line 476: network = self.getBridgelessNetworkForIface(iface) Line 477: if network is not None: Line 478: return network Line 479: else: Line 480: return self.getBridgedNetworkForIface(iface) I have improved it in v3 as per your suggestion. getBridge{d,less}NetworkForIface is reserved for future use.
Thanks! Line 481: Line 482: def getBridgelessNetworks(self): Line 483: """ Return all bridgless networks.""" Line 484: for network, netdict in self.networks.iteritems():
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 2 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Antoni Segura Puimedon has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3: Looks good to me, but someone else must approve
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Mark Wu has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3:
@Dan could you please continue to review this one? Thanks!
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3: Looks good to me, approved
Mark, sorry for having missed your patch.
The best way to catch my attention is to have it both reviewed+1 and verified+1.
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Mark Wu has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3: Verified
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 3: I would prefer that you didn't submit this
argh, needs a manual rebase. sorry.
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 3 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1785/ (1/2)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 4:
Build Started http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1836/ (2/2)
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
oVirt Jenkins CI Server has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 4:
Build Successful
http://jenkins.ovirt.org/job/vdsm_pep8_gerrit/1785/ : SUCCESS
http://jenkins.ovirt.org/job/vdsm_unit_tests_gerrit/1836/ : SUCCESS
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Mark Wu has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 4: Verified
Git can resolve the path change in my local repo. I thought gerrit can auto merge it successfully. But it turns out gerrit doesn't support it: http://groups.google.com/group/repo-discuss/msg/2ee99ed99609bb4b
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has posted comments on this change.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
Patch Set 4: Looks good to me, approved
Thanks, Mark!
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
Dan Kenigsberg has submitted this change and it was merged.
Change subject: netinfo: there may be up to one network attached directly to an Iface ......................................................................
netinfo: there may be up to one network attached directly to an Iface
Since one nic could be only used for one non-VLANed bridge or one non-VLANed bridgeless network, it needn't continue to check other networks after found one.
Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Signed-off-by: Mark Wu wudxw@linux.vnet.ibm.com --- M lib/vdsm/netinfo.py M vdsm/configNetwork.py 2 files changed, 16 insertions(+), 16 deletions(-)
Approvals: Mark Wu: Verified Dan Kenigsberg: Looks good to me, approved
-- To view, visit http://gerrit.ovirt.org/9737 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged Gerrit-Change-Id: I80c47d0f0df70de73993ef0c09f69cbf882f6629 Gerrit-PatchSet: 4 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: Antoni Segura Puimedon asegurap@redhat.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Hunt Xu mhuntxu@gmail.com Gerrit-Reviewer: Igor Lvovsky ilvovsky@redhat.com Gerrit-Reviewer: Mark Wu wudxw@linux.vnet.ibm.com Gerrit-Reviewer: oVirt Jenkins CI Server
vdsm-patches@lists.fedorahosted.org