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-19 20:33:31 +0200
commit12c9c19a2f4f55ab1d7a70b496473ac41212c510 (patch)
tree43859c36bca1c0837ecbdaa33bb0ffb756b45e15 /python/vyos/configdict.py
parentdc0e468046bef4aef3ee81eec23c3703e0b5da85 (diff)
downloadvyos-1x-12c9c19a2f4f55ab1d7a70b496473ac41212c510.tar.gz
vyos-1x-12c9c19a2f4f55ab1d7a70b496473ac41212c510.zip
vyos.config.configdict: T4592: T4629: only print interface name, not interface dict on error
(cherry picked from commit 475fbb785dca76868715827833dc44115635c4a6)
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 466433c37..53bd1a13e 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -322,8 +322,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