summaryrefslogtreecommitdiff
path: root/src/op_mode/nat.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-09-22 16:03:15 +0200
committerGitHub <noreply@github.com>2022-09-22 16:03:15 +0200
commitb19a70c1cc38195a8861a2be1876487480072dfd (patch)
tree824ecc20bf7e98468656c2b8674509466b012473 /src/op_mode/nat.py
parentcd1875cb15211d733630b97f1dc7f73f11061927 (diff)
parentc72d6bc68c7152cb24349a2b2e1158a8bb0f3b88 (diff)
downloadvyos-1x-b19a70c1cc38195a8861a2be1876487480072dfd.tar.gz
vyos-1x-b19a70c1cc38195a8861a2be1876487480072dfd.zip
Merge pull request #1554 from sarthurdev/nat_refactor
nat: T4605: Fix op-mode NAT table name
Diffstat (limited to 'src/op_mode/nat.py')
-rwxr-xr-xsrc/op_mode/nat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/nat.py b/src/op_mode/nat.py
index 1339d5b92..a0496dedb 100755
--- a/src/op_mode/nat.py
+++ b/src/op_mode/nat.py
@@ -60,7 +60,7 @@ def _get_json_data(direction, family):
if direction == 'destination':
chain = 'PREROUTING'
family = 'ip6' if family == 'inet6' else 'ip'
- return cmd(f'sudo nft --json list chain {family} nat {chain}')
+ return cmd(f'sudo nft --json list chain {family} vyos_nat {chain}')
def _get_raw_data_rules(direction, family):