summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_nhrp.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-28 07:41:15 +0200
committerGitHub <noreply@github.com>2022-04-28 07:41:15 +0200
commit92b834fdc0129b24de6683afe18a81a24f7bc495 (patch)
tree5e7be44bc34d5b459ce241d10aa321e11bbf8b4e /src/conf_mode/protocols_nhrp.py
parentb6a9a27a72d007e5993a3ad2ba2111026c899660 (diff)
parentd1455f936ca721633fcc04d5c84169b4ccf2f447 (diff)
downloadvyos-1x-92b834fdc0129b24de6683afe18a81a24f7bc495.tar.gz
vyos-1x-92b834fdc0129b24de6683afe18a81a24f7bc495.zip
Merge pull request #1306 from fett0/T4399
NHRP : T4399: fix restart nhrp when adding or delete a tunnel
Diffstat (limited to 'src/conf_mode/protocols_nhrp.py')
-rwxr-xr-xsrc/conf_mode/protocols_nhrp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/protocols_nhrp.py b/src/conf_mode/protocols_nhrp.py
index 7eeb5cd30..ff8ae8eeb 100755
--- a/src/conf_mode/protocols_nhrp.py
+++ b/src/conf_mode/protocols_nhrp.py
@@ -104,7 +104,7 @@ def apply(nhrp):
if rule_handle:
remove_nftables_rule('ip filter', 'VYOS_FW_OUTPUT', rule_handle)
- action = 'restart' if nhrp and 'tunnel' in nhrp else 'stop'
+ action = 'reload-or-restart' if nhrp and 'tunnel' in nhrp else 'stop'
run(f'systemctl {action} opennhrp')
return None