summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-04 08:28:55 +0200
committerChristian Poessinger <christian@poessinger.com>2022-08-04 08:28:55 +0200
commit475fbb785dca76868715827833dc44115635c4a6 (patch)
tree40315cef20998209b6866403f0677149d0f8611e /python/vyos/configdict.py
parent17e76dc77801ac58b2587f664c884c0d671a55c0 (diff)
downloadvyos-1x-475fbb785dca76868715827833dc44115635c4a6.tar.gz
vyos-1x-475fbb785dca76868715827833dc44115635c4a6.zip
vyos.config.configdict: T4592: only print interface name, not interface dict on error
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 20cc7de2a..8f822a97d 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -303,8 +303,8 @@ def is_source_interface(conf, interface, intftype=None):
for it in intftype:
base = ['interfaces', it]
for intf in conf.list_nodes(base):
- lower_intf = base + [intf, 'source-interface']
- if conf.exists(lower_intf) and interface in conf.return_values(lower_intf):
+ src_intf = base + [intf, 'source-interface']
+ if conf.exists(src_intf) and interface in conf.return_values(src_intf):
ret_val = intf
break