diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-16 11:51:26 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-16 11:51:26 +0100 |
commit | 666f5b5f9226d47ebe0a296d9cd5d4ed397331b4 (patch) | |
tree | 073e00dd82e6cc5548fb9efeeea7c8bf1f2beec7 /python/vyos | |
parent | 9fcf23801e6ccece6b8076e99b05b4ba80743ec9 (diff) | |
download | vyos-1x-666f5b5f9226d47ebe0a296d9cd5d4ed397331b4.tar.gz vyos-1x-666f5b5f9226d47ebe0a296d9cd5d4ed397331b4.zip |
ifconfig: bond: T2043: T2030: fix wrong call to os.listdir()
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ifconfig.py | 2 |
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_','')) |