summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-02-16 11:51:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-16 11:51:26 +0100
commit666f5b5f9226d47ebe0a296d9cd5d4ed397331b4 (patch)
tree073e00dd82e6cc5548fb9efeeea7c8bf1f2beec7 /python
parent9fcf23801e6ccece6b8076e99b05b4ba80743ec9 (diff)
downloadvyos-1x-666f5b5f9226d47ebe0a296d9cd5d4ed397331b4.tar.gz
vyos-1x-666f5b5f9226d47ebe0a296d9cd5d4ed397331b4.zip
ifconfig: bond: T2043: T2030: fix wrong call to os.listdir()
Diffstat (limited to 'python')
-rw-r--r--python/vyos/ifconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py
index b3683dc57..81867d086 100644
--- a/python/vyos/ifconfig.py
+++ b/python/vyos/ifconfig.py
@@ -1542,7 +1542,7 @@ class BondIf(VLANIf):
# retrieve real enslaved interfaces from OS kernel
sysfs_bond = '/sys/class/net/{}'.format(self._ifname)
if os.path.isdir(sysfs_bond):
- for directory in os.listdir():
+ for directory in os.listdir(sysfs_bond):
if 'lower_' in directory:
enslaved_ifs.append(directory.replace('lower_',''))