summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2020-09-01 11:41:17 -0500
committerJohn Estabrook <jestabro@vyos.io>2020-09-01 11:41:17 -0500
commit0ddca9de00b7ae3969f718c2cd2f081506d5c222 (patch)
treec79d3106f160fcaccfd30e5242599e677a5a6518 /python/vyos
parent0952b62baf878a9d4abcfc777beaa19c1cf9e47b (diff)
downloadvyos-1x-0ddca9de00b7ae3969f718c2cd2f081506d5c222.tar.gz
vyos-1x-0ddca9de00b7ae3969f718c2cd2f081506d5c222.zip
xml: T2849: vyos.xml.defaults should return a list on multi nodes
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/xml/definition.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/xml/definition.py b/python/vyos/xml/definition.py
index 6d6fcb5c7..a25fc50c5 100644
--- a/python/vyos/xml/definition.py
+++ b/python/vyos/xml/definition.py
@@ -254,6 +254,9 @@ class XML(dict):
d = d.get(k, {})
if not flat:
+ # _flatten will make this conversion
+ d = self.multi_to_list(lpath, d)
+
r = {}
for k in d:
under = k.replace('-','_')