diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-03-17 21:00:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 21:00:04 +0100 |
commit | d6b28f0b5a83c6727a159b8ee15f810abe6e1636 (patch) | |
tree | 367a261a45f6e661630286d4cef5f94473c8585b /src/op_mode/show_nat66_statistics.py | |
parent | 5adcc4ca30676338fca9a06409bbc72af4f68a1f (diff) | |
parent | 5995f83eded2169cb710070c89f067ac6e28f6af (diff) | |
download | vyos-1x-d6b28f0b5a83c6727a159b8ee15f810abe6e1636.tar.gz vyos-1x-d6b28f0b5a83c6727a159b8ee15f810abe6e1636.zip |
Merge pull request #776 from jack9603301/T2518
nat66: T2518: Correct the wrong logic
Diffstat (limited to 'src/op_mode/show_nat66_statistics.py')
-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 0f0b05978..bc81692ae 100755 --- a/src/op_mode/show_nat66_statistics.py +++ b/src/op_mode/show_nat66_statistics.py @@ -31,7 +31,7 @@ rule pkts bytes interface {% set bytes = r.counter.bytes %} {% set interface = r.interface %} {# remove rule comment prefix #} -{% set comment = r.comment | replace('SRC-NAT-', '') | replace('DST-NAT-', '') | replace(' tcp_udp', '') %} +{% set comment = r.comment | replace('SRC-NAT66-', '') | replace('DST-NAT66-', '') %} {{ "%-4s" | format(comment) }} {{ "%9s" | format(packets) }} {{ "%12s" | format(bytes) }} {{ interface }} {% endif %} {% endfor %} |