diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-09-22 16:03:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-22 16:03:15 +0200 |
commit | b19a70c1cc38195a8861a2be1876487480072dfd (patch) | |
tree | 824ecc20bf7e98468656c2b8674509466b012473 | |
parent | cd1875cb15211d733630b97f1dc7f73f11061927 (diff) | |
parent | c72d6bc68c7152cb24349a2b2e1158a8bb0f3b88 (diff) | |
download | vyos-1x-b19a70c1cc38195a8861a2be1876487480072dfd.tar.gz vyos-1x-b19a70c1cc38195a8861a2be1876487480072dfd.zip |
Merge pull request #1554 from sarthurdev/nat_refactor
nat: T4605: Fix op-mode NAT table name
-rwxr-xr-x | src/op_mode/nat.py | 2 |
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): |