From c685c0f762ea054c7a220bde625fdab549bbbdd2 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 18 Apr 2022 12:26:55 +0200 Subject: vyos.configdict(): T4369: leaf_node_changed() must return True when node is added --- python/vyos/configdict.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.3