summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-20 14:22:56 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-20 14:22:56 +0200
commite36efa6b5df764982678a470b7aa82a33c1c369c (patch)
treeece5f3e3c30d7905c2e08f1b7f25ab42cfff7320 /src/conf_mode
parent714346e2ee0c61a08a9d17fdb962f2fbea9f73c9 (diff)
downloadvyos-1x-e36efa6b5df764982678a470b7aa82a33c1c369c.tar.gz
vyos-1x-e36efa6b5df764982678a470b7aa82a33c1c369c.zip
openvpn: T4369: enforce daemon-restart on openvpn-option CLI change
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index a9be093c2..6c1a01dab 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -32,7 +32,7 @@ from shutil import rmtree
from vyos.config import Config
from vyos.configdict import get_interface_dict
-from vyos.configdict import leaf_node_changed
+from vyos.configdict import is_node_changed
from vyos.configverify import verify_vrf
from vyos.configverify import verify_bridge_delete
from vyos.configverify import verify_mirror_redirect
@@ -90,8 +90,8 @@ def get_config(config=None):
if 'deleted' not in openvpn:
openvpn['pki'] = tmp_pki
- tmp = leaf_node_changed(conf, ['openvpn-option'])
- if tmp: openvpn['restart_required'] = ''
+ if is_node_changed(conf, ['openvpn-option']):
+ openvpn.update({'restart_required': {}})
# We have to get the dict using 'get_config_dict' instead of 'get_interface_dict'
# as 'get_interface_dict' merges the defaults in, so we can not check for defaults in there.