From 0ddca9de00b7ae3969f718c2cd2f081506d5c222 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 1 Sep 2020 11:41:17 -0500 Subject: xml: T2849: vyos.xml.defaults should return a list on multi nodes --- python/vyos/xml/definition.py | 3 +++ 1 file changed, 3 insertions(+) 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('-','_') -- cgit v1.2.3