diff options
author | jack9603301 <jack9603301@163.com> | 2021-03-13 15:03:53 +0800 |
---|---|---|
committer | jack9603301 <jack9603301@163.com> | 2021-03-13 18:00:51 +0800 |
commit | f0d0a572af9663a3dbbdbf5bbe9631a30235637f (patch) | |
tree | 582f1a9b68d5e71c9dd240c6e4e53480337c496e /src/op_mode/show_nat_statistics.py | |
parent | ca08d8dc51ef93bfd5429c331ea919fe77ac8b39 (diff) | |
download | vyos-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-x | src/op_mode/show_nat_statistics.py | 2 |
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] }" |