summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-18 12:26:55 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-18 12:26:55 +0200
commitc685c0f762ea054c7a220bde625fdab549bbbdd2 (patch)
tree26bb681886ca88ae5d1ead10ea6461c8c1672052 /python/vyos
parent297fd814528bb1a8c570174a9bac0f2d7dd69351 (diff)
downloadvyos-1x-c685c0f762ea054c7a220bde625fdab549bbbdd2.tar.gz
vyos-1x-c685c0f762ea054c7a220bde625fdab549bbbdd2.zip
vyos.configdict(): T4369: leaf_node_changed() must return True when node is added
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configdict.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py
index 551c27b67..ddb9b563d 100644
--- a/python/vyos/configdict.py
+++ b/python/vyos/configdict.py
@@ -123,6 +123,9 @@ def leaf_node_changed(conf, path):
if old is None and isinstance(new, dict):
# valueLess nodes return {} if node was added
return True
+ if old is None and new is not None:
+ # node was added to the CLI, e.g. OpenVPN node "openvpn-options"
+ return True
if old is None:
return []
if isinstance(old, str):