Petr Horáček has uploaded a new change for review.

Change subject: Veth devices are shown as NICs
......................................................................

Veth devices are shown as NICs

Veth and dummy LinkTypes were not listed in tuple, therefore they
were evaluated as NICs.

Bug 1125177 (https://bugzilla.redhat.com/show_bug.cgi?id=1125177)

Change-Id: Iff436c492628977914b0ef5499906bacce9315a5
Signed-off-by: Petr Horáček <[email protected]>
---
M lib/vdsm/ipwrapper.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/28/31028/1

diff --git a/lib/vdsm/ipwrapper.py b/lib/vdsm/ipwrapper.py
index 3b38be4..c1aaca6 100644
--- a/lib/vdsm/ipwrapper.py
+++ b/lib/vdsm/ipwrapper.py
@@ -165,7 +165,8 @@
             else:
                 raise  # Reraise other errors like ENODEV
         if driver in (LinkType.BRIDGE, LinkType.MACVLAN, LinkType.TUN,
-                      LinkType.OVS, LinkType.TEAM):
+                      LinkType.OVS, LinkType.TEAM, LinkType.VETH,
+                      LinkType.DUMMY):
             detectedType = driver
         elif driver == 'bonding':
             detectedType = LinkType.BOND


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff436c492628977914b0ef5499906bacce9315a5
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Petr Horáček <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to