summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:50:05 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-02 16:33:04 +0000
commitb50dcc9b42a201592c1389c4dde581e444994a67 (patch)
treef9cfb0da13a59d51d0ef02bab073fa16500d27ff /src/conf_mode
parentc86b6868cdafcc828252509f79e7ce4f7829fdfb (diff)
downloadvyos-1x-b50dcc9b42a201592c1389c4dde581e444994a67.tar.gz
vyos-1x-b50dcc9b42a201592c1389c4dde581e444994a67.zip
nhrp: T2199: always use full nft command name (e.g. --file over -f)
(cherry picked from commit f92ef7f3c86ca09775b536ca2bd9813f95cc7d3f)
Diffstat (limited to 'src/conf_mode')
-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')