diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-09-20 17:16:43 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-09-21 20:53:49 +0200 |
commit | e6ba98a85ca72abc7e7e2001d208bcd1806c2c13 (patch) | |
tree | dc36b04502efdab35b3ab9612e36c4fc008068f4 /src/op_mode | |
parent | 448d4f6db9cf6dfceffccf988301e5f4d04c9afa (diff) | |
download | vyos-1x-e6ba98a85ca72abc7e7e2001d208bcd1806c2c13.tar.gz vyos-1x-e6ba98a85ca72abc7e7e2001d208bcd1806c2c13.zip |
nat66: T4605: Refactor NAT66 to use python module for parsing rules
* Rename table to vyos_nat
* Refactor tests to use `verify_nftables` format
Diffstat (limited to 'src/op_mode')
-rwxr-xr-x | src/op_mode/show_nat66_statistics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/show_nat66_statistics.py b/src/op_mode/show_nat66_statistics.py index bc81692ae..cb10aed9f 100755 --- a/src/op_mode/show_nat66_statistics.py +++ b/src/op_mode/show_nat66_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 ip6 nat') + tmp = cmd('sudo nft -j list table ip6 vyos_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] }" |