diff options
-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_','')) |