diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-29 21:36:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 21:36:37 +0200 |
commit | c9e362224a7209e78dcff989861f5c2b2be7bdad (patch) | |
tree | c842092b83cec1be8d0a602441c6eedb0d69e28a /python/vyos | |
parent | 2a2bb78fb1dc01a1adc454b637f92cd99f698db7 (diff) | |
parent | dde78e8024dea260a506f31226d57a75d9516df4 (diff) | |
download | vyos-1x-c9e362224a7209e78dcff989861f5c2b2be7bdad.tar.gz vyos-1x-c9e362224a7209e78dcff989861f5c2b2be7bdad.zip |
Merge pull request #1308 from c-po/t4369-openvpn-equuleus
openvpn: T4369: enforce daemon-restart on openvpn-option CLI change (equuleus)
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configdict.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/configdict.py b/python/vyos/configdict.py index 1f245f3d2..be10cbdfc 100644 --- a/python/vyos/configdict.py +++ b/python/vyos/configdict.py @@ -104,6 +104,12 @@ def list_diff(first, second): second = set(second) return [item for item in first if item not in second] +def is_node_changed(conf, path): + from vyos.configdiff import get_config_diff + D = get_config_diff(conf, key_mangling=('-', '_')) + D.set_level(conf.get_level()) + return D.is_node_changed(path) + def leaf_node_changed(conf, path): """ Check if a leaf node was altered. If it has been altered - values has been |