summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 21:49:23 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-02 16:33:04 +0000
commitc86b6868cdafcc828252509f79e7ce4f7829fdfb (patch)
tree984bd77fb20b57a37b1b1a38b7e640e814d5fc1d
parentb646d360d0811444f1373848e6c62e70e58dc809 (diff)
downloadvyos-1x-c86b6868cdafcc828252509f79e7ce4f7829fdfb.tar.gz
vyos-1x-c86b6868cdafcc828252509f79e7ce4f7829fdfb.zip
policy: T2199: always use full nft command name (e.g. --file over -f)
(cherry picked from commit a33946630348371518247ff13ce918c208ef50d1)
-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')