From 2ba8c8499f8664b69bb9b48268f7c5cd5b06cd89 Mon Sep 17 00:00:00 2001
From: Christian Poessinger <christian@poessinger.com>
Date: Sat, 16 May 2020 18:32:22 +0200
Subject: nat: T2198: remove "tcp_udp" from "show nat dest stat"x

---
 src/op_mode/show_nat_statistics.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/op_mode/show_nat_statistics.py b/src/op_mode/show_nat_statistics.py
index b77693e19..0b53112f2 100755
--- a/src/op_mode/show_nat_statistics.py
+++ b/src/op_mode/show_nat_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-', '') -%}
+{%- set comment   = r.comment | replace('SRC-NAT-', '') | replace('DST-NAT-', '') | replace(' tcp_udp', '') -%}
 {{ "%-4s" | format(comment) }} {{ "%9s" | format(packets) }} {{ "%12s" | format(bytes) }}   {{ interface }}
 {%- endif %}
 {% endfor %}
-- 
cgit v1.2.3