summaryrefslogtreecommitdiff
path: root/src/op_mode/show_nat_statistics.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-03-13 11:26:00 +0100
committerGitHub <noreply@github.com>2021-03-13 11:26:00 +0100
commit2595b90203ef1db5a86e332ca314f8a2df5ff28c (patch)
tree582f1a9b68d5e71c9dd240c6e4e53480337c496e /src/op_mode/show_nat_statistics.py
parentca08d8dc51ef93bfd5429c331ea919fe77ac8b39 (diff)
parentf0d0a572af9663a3dbbdbf5bbe9631a30235637f (diff)
downloadvyos-1x-2595b90203ef1db5a86e332ca314f8a2df5ff28c.tar.gz
vyos-1x-2595b90203ef1db5a86e332ca314f8a2df5ff28c.zip
Merge pull request #771 from jack9603301/T2518
nat: nat66: T2518: Support operation mode command
Diffstat (limited to 'src/op_mode/show_nat_statistics.py')
-rwxr-xr-xsrc/op_mode/show_nat_statistics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/show_nat_statistics.py b/src/op_mode/show_nat_statistics.py
index 482993d06..c568c8305 100755
--- a/src/op_mode/show_nat_statistics.py
+++ b/src/op_mode/show_nat_statistics.py
@@ -44,7 +44,7 @@ group.add_argument("--destination", help="Show statistics for configured destina
args = parser.parse_args()
if args.source or args.destination:
- tmp = cmd('sudo nft -j list table nat')
+ tmp = cmd('sudo nft -j list table ip nat')
tmp = json.loads(tmp)
source = r"nftables[?rule.chain=='POSTROUTING'].rule.{chain: chain, handle: handle, comment: comment, counter: expr[].counter | [0], interface: expr[].match.right | [0] }"