From ac8d2bcaee2f9636271bd5e07d699015e54d347d Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Wed, 7 Feb 2018 17:21:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D1=8B=20sl?= =?UTF-8?q?ave=20=D1=81=D0=B5=D1=82=D0=B5=D0=B2=D1=8B=D0=B5=20=D1=83=D1=81?= =?UTF-8?q?=D1=82=D1=80=D0=BE=D0=B9=D1=81=D1=82=D0=B2=D0=B0=20=D0=B8=D0=B7?= =?UTF-8?q?=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/calculate/lib/utils/ip.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/calculate/lib/utils/ip.py b/pym/calculate/lib/utils/ip.py index 13e5b11..86f75c6 100644 --- a/pym/calculate/lib/utils/ip.py +++ b/pym/calculate/lib/utils/ip.py @@ -246,6 +246,9 @@ def getInterfaces(): return False if device.sysfs.exists(x, "bonding_slave"): return False + # exclude slave devices + if any(device.sysfs.glob(x, "lower_*")): + return False return True return sorted(path.basename(x)