summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-09-22 14:09:25 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-09-22 14:10:26 +0200
commitc72d6bc68c7152cb24349a2b2e1158a8bb0f3b88 (patch)
treeccfcd1f6ecc910baf7fe63a6189707964d9988e4
parentc6bbe051574acf5ca1501e631d73ac06bdb17b30 (diff)
downloadvyos-1x-c72d6bc68c7152cb24349a2b2e1158a8bb0f3b88.tar.gz
vyos-1x-c72d6bc68c7152cb24349a2b2e1158a8bb0f3b88.zip
nat: T4605: Fix op-mode NAT table name
-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):