summaryrefslogtreecommitdiff
path: root/src/op_mode/show_nat_statistics.py
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-03-13 15:03:53 +0800
committerjack9603301 <jack9603301@163.com>2021-03-13 18:00:51 +0800
commitf0d0a572af9663a3dbbdbf5bbe9631a30235637f (patch)
tree582f1a9b68d5e71c9dd240c6e4e53480337c496e /src/op_mode/show_nat_statistics.py
parentca08d8dc51ef93bfd5429c331ea919fe77ac8b39 (diff)
downloadvyos-1x-f0d0a572af9663a3dbbdbf5bbe9631a30235637f.tar.gz
vyos-1x-f0d0a572af9663a3dbbdbf5bbe9631a30235637f.zip
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] }"