diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-02 18:50:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-02 18:50:42 +0200 |
commit | 92be9ee46943f38648daeb75da729a460daea9c9 (patch) | |
tree | b6ca67716ab8e6716f56d42557adc5b55a92cd80 /src/conf_mode/system_conntrack.py | |
parent | 0cb21915164551b3d2eaab79ed6339184957c326 (diff) | |
parent | 33b031cc9005e51129719ff42d70bf50fb7f14e1 (diff) | |
download | vyos-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/system_conntrack.py')
-rwxr-xr-x | src/conf_mode/system_conntrack.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/conf_mode/system_conntrack.py b/src/conf_mode/system_conntrack.py index 4bea31bbb..56d798e43 100755 --- a/src/conf_mode/system_conntrack.py +++ b/src/conf_mode/system_conntrack.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 @@ -15,19 +15,16 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. import os -import re from sys import exit from vyos.config import Config from vyos.configdep import set_dependents, call_dependents -from vyos.utils.process import process_named_running from vyos.utils.dict import dict_search from vyos.utils.dict import dict_search_args from vyos.utils.dict import dict_search_recursive from vyos.utils.process import cmd from vyos.utils.process import rc_cmd -from vyos.utils.process import run from vyos.template import render from vyos import ConfigError from vyos import airbag @@ -218,7 +215,7 @@ def apply(conntrack): cmd(f'modprobe -a {module_str}') # Load new nftables ruleset - install_result, output = rc_cmd(f'nft -f {nftables_ct_file}') + install_result, output = rc_cmd(f'nft --file {nftables_ct_file}') if install_result == 1: raise ConfigError(f'Failed to apply configuration: {output}') |