summaryrefslogtreecommitdiff
path: root/python/vyos/configdict.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-27 12:54:13 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-27 13:51:28 +0200
commite0bd74e399cc2693b6d442af52c9345e279db059 (patch)
treede854e2d5b10153dfc427b7cdb5849a40d830b7f /python/vyos/configdict.py
parentcbc293c31709af86af07f03a60818136eeef84fb (diff)
downloadvyos-1x-e0bd74e399cc2693b6d442af52c9345e279db059.tar.gz
vyos-1x-e0bd74e399cc2693b6d442af52c9345e279db059.zip
ifconfig: T2653: move macsec interface to get_config_dict()
Diffstat (limited to 'python/vyos/configdict.py')
-rw-r--r--python/vyos/configdict.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 074dc0131..0dc7578d8 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -96,6 +96,8 @@ def dict_merge(source, destination):
for key, value in source.items():
if key not in tmp.keys():
tmp[key] = value
+ elif isinstance(source[key], dict):
+ tmp[key] = dict_merge(source[key], tmp[key])
return tmp