summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-17 09:02:01 +0100
committerGitHub <noreply@github.com>2021-01-17 09:02:01 +0100
commit3571c72a25fa8eb882d64f078f16a7307fa7b62a (patch)
tree8bdd6a956a52f14a585ee2c51fbbc72161cde63e /python/vyos
parentb2b5ea81243f672d3cc3c4082374551f38fd4dde (diff)
parent558e1ca9a8b80a9f6785ca0aedc26b6a03f4f3d8 (diff)
downloadvyos-1x-3571c72a25fa8eb882d64f078f16a7307fa7b62a.tar.gz
vyos-1x-3571c72a25fa8eb882d64f078f16a7307fa7b62a.zip
Merge pull request #688 from jack9603301/current
smoketest: bridge: T3226: Repair bridge smoke test damage
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configdict.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 4f9d3739d..5acb1fdfe 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -272,9 +272,9 @@ def has_vlan_subinterface_configured(conf, intf):
old_level = conf.get_level()
conf.set_level([])
- intfpath = 'interfaces ' + Section.get_config_path(intf)
- if ( conf.exists(f'{intfpath} vif') or
- conf.exists(f'{intfpath} vif-s')):
+ intfpath = ['interfaces', Section.section(intf), intf]
+ if ( conf.exists(intfpath + ['vif']) or
+ conf.exists(intfpath + ['vif-s'])):
ret = True
conf.set_level(old_level)