Francesco Romani has uploaded a new change for review.

Change subject: network: filter out 'veth' devices.
......................................................................

network: filter out 'veth' devices.

The `rkt' networking uses a pair of veth for its networking needs;
this configuration step should not be disabled, because it covers
an internal use case, as detailed in

https://coreos.com/rkt/docs/latest/networking/overview.html#the-default-network

This patch makes the Vdsm code ignore this veth pair.

Change-Id: I859c4bc885c0afd99fdaf741706d9bd1538850e6
Signed-off-by: Francesco Romani <[email protected]>
---
M lib/vdsm/network/netinfo/qos.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/21/60821/1

diff --git a/lib/vdsm/network/netinfo/qos.py b/lib/vdsm/network/netinfo/qos.py
index 6268587..90ee72d 100644
--- a/lib/vdsm/network/netinfo/qos.py
+++ b/lib/vdsm/network/netinfo/qos.py
@@ -36,7 +36,8 @@
         iface = attrs['iface']
         if iface in netinfo['bridges']:
             host_ports = [port for port in attrs['ports'] if
-                          not port.startswith('vnet')]
+                          (not port.startswith('vnet') and
+                           not port.startswith('veth'))]
             if not host_ports:  # Port-less bridge
                 continue
             iface, = host_ports


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I859c4bc885c0afd99fdaf741706d9bd1538850e6
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/admin/lists/[email protected]

Reply via email to