summaryrefslogtreecommitdiff
path: root/src/conf_mode/nat66.py
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-02 18:32:23 +0200
committerGitHub <noreply@github.com>2024-04-02 18:32:23 +0200
commit7ee2f016878ed29120baa66f8e1d372f97402c96 (patch)
treee480e1f12e0ca1dbe4c29fdccf213063ceda32a3 /src/conf_mode/nat66.py
parent2a031e68cbe6b0e9beb6e57b2f93b4ec4d95c84f (diff)
parent0529371bc587e2fcdd8794061e9bb9d60c792c43 (diff)
downloadvyos-1x-7ee2f016878ed29120baa66f8e1d372f97402c96.tar.gz
vyos-1x-7ee2f016878ed29120baa66f8e1d372f97402c96.zip
Merge pull request #3230 from c-po/syntax-cleanup
firewall: nat: policy: vrf: nft call syntax and import cleanup
Diffstat (limited to 'src/conf_mode/nat66.py')
-rwxr-xr-xsrc/conf_mode/nat66.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/conf_mode/nat66.py b/src/conf_mode/nat66.py
index 4c1ead258..fe017527d 100755
--- a/src/conf_mode/nat66.py
+++ b/src/conf_mode/nat66.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2020-2023 VyOS maintainers and contributors
+# Copyright (C) 2020-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
@@ -14,8 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import jmespath
-import json
import os
from sys import exit
@@ -106,7 +104,7 @@ def apply(nat):
if not nat:
return None
- cmd(f'nft -f {nftables_nat66_config}')
+ cmd(f'nft --file {nftables_nat66_config}')
call_dependents()
return None