summaryrefslogtreecommitdiff
path: root/src/conf_mode/protocols_nhrp.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-02 18:50:42 +0200
committerGitHub <noreply@github.com>2024-04-02 18:50:42 +0200
commit92be9ee46943f38648daeb75da729a460daea9c9 (patch)
treeb6ca67716ab8e6716f56d42557adc5b55a92cd80 /src/conf_mode/protocols_nhrp.py
parent0cb21915164551b3d2eaab79ed6339184957c326 (diff)
parent33b031cc9005e51129719ff42d70bf50fb7f14e1 (diff)
downloadvyos-1x-92be9ee46943f38648daeb75da729a460daea9c9.tar.gz
vyos-1x-92be9ee46943f38648daeb75da729a460daea9c9.zip
Merge pull request #3234 from vyos/mergify/bp/sagitta/pr-3230
firewall: nat: policy: vrf: nft call syntax and import cleanup (backport #3230)
Diffstat (limited to 'src/conf_mode/protocols_nhrp.py')
-rwxr-xr-xsrc/conf_mode/protocols_nhrp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/protocols_nhrp.py b/src/conf_mode/protocols_nhrp.py
index c339c6391..9f66407f2 100755
--- a/src/conf_mode/protocols_nhrp.py
+++ b/src/conf_mode/protocols_nhrp.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2021-2023 VyOS maintainers and contributors
+# Copyright (C) 2021-2024 VyOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -93,7 +93,7 @@ def generate(nhrp):
return None
def apply(nhrp):
- nft_rc = run(f'nft -f {nhrp_nftables_conf}')
+ nft_rc = run(f'nft --file {nhrp_nftables_conf}')
if nft_rc != 0:
raise ConfigError('Failed to apply NHRP tunnel firewall rules')