diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configdict.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 075ffe466..ed8137c0a 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -104,6 +104,10 @@ def list_diff(first, second): return [item for item in first if item not in second] def is_node_changed(conf, path): + """ + Check if any key under path has been changed and return True. + If nothing changed, return false + """ from vyos.configdiff import get_config_diff D = get_config_diff(conf, key_mangling=('-', '_')) return D.is_node_changed(path) |