Antoni Segura Puimedon has uploaded a new change for review.

Change subject: netinfo: drop unused NetInfo.getBridgelessNetworkForIface
......................................................................

netinfo: drop unused NetInfo.getBridgelessNetworkForIface

Commit fb443166d483dbff199f7e35313304f849b98470 not only changed the
method so that it would return only a single network, but also
removed its only usage. It is time to drop it.

Change-Id: Ic0287b2a899dbb5c3568851172da9415963c3324
Signed-off-by: Antoni S. Puimedon <[email protected]>
---
M lib/vdsm/netinfo.py
1 file changed, 0 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/03/29603/1

diff --git a/lib/vdsm/netinfo.py b/lib/vdsm/netinfo.py
index 9deec88..72e0745 100644
--- a/lib/vdsm/netinfo.py
+++ b/lib/vdsm/netinfo.py
@@ -918,12 +918,6 @@
             if not netdict['bridged']:
                 yield network
 
-    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']:
-                return network
-
     def getBridgedNetworkForIface(self, iface):
         """ Return all bridged networks attached to nic/bond """
         for bridge, netdict in self.networks.iteritems():


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic0287b2a899dbb5c3568851172da9415963c3324
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Antoni Segura Puimedon <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to