summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:49:23 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-01 21:53:48 +0200
commita33946630348371518247ff13ce918c208ef50d1 (patch)
tree88d7f24363f18dde4c5d7c5bc29b74a7ee161d83 /src
parente257155aea09b906d8784cb6143d3ab27578c4a8 (diff)
downloadvyos-1x-a33946630348371518247ff13ce918c208ef50d1.tar.gz
vyos-1x-a33946630348371518247ff13ce918c208ef50d1.zip
policy: T2199: always use full nft command name (e.g. --file over -f)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/policy_route.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/policy_route.py b/src/conf_mode/policy_route.py
index 6d7a06714..c58fe1bce 100755
--- a/src/conf_mode/policy_route.py
+++ b/src/conf_mode/policy_route.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
@@ -177,7 +177,7 @@ def cleanup_table_marks():
cmd(f'{cmd_str} rule del fwmark {fwmark} table {table}')
def apply(policy):
- install_result = run(f'nft -f {nftables_conf}')
+ install_result = run(f'nft --file {nftables_conf}')
if install_result == 1:
raise ConfigError('Failed to apply policy based routing')