summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:50:05 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-01 21:53:51 +0200
commitf92ef7f3c86ca09775b536ca2bd9813f95cc7d3f (patch)
tree9b169dc15fb4a485c2791eb352dab90864611eb7
parenta33946630348371518247ff13ce918c208ef50d1 (diff)
downloadvyos-1x-f92ef7f3c86ca09775b536ca2bd9813f95cc7d3f.tar.gz
vyos-1x-f92ef7f3c86ca09775b536ca2bd9813f95cc7d3f.zip
nhrp: T2199: always use full nft command name (e.g. --file over -f)
-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')