From 5d0c0589e5fff52f72fcf243477afc05fce693c3 Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Fri, 22 Oct 2021 05:20:50 +0000 Subject: [PATCH] Addressing code review comments --- scripts/tunnelstat | 2 +- tests/tunnelstat_test.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/tunnelstat b/scripts/tunnelstat index c53fc0f0e4..829a5ab5d2 100755 --- a/scripts/tunnelstat +++ b/scripts/tunnelstat @@ -35,7 +35,7 @@ from swsscommon.swsscommon import SonicV2Connector nstat_fields = ("rx_b_ok", "rx_p_ok", "tx_b_ok", "tx_p_ok") NStats = namedtuple("NStats", nstat_fields) -header = ['IFACE', 'RX_OK', 'RX_BYTES', 'RX_PPS','TX_OK', 'TX_BYTES', 'TX_PPS'] +header = ['IFACE', 'RX_PKTS', 'RX_BYTES', 'RX_PPS','TX_PKTS', 'TX_BYTES', 'TX_PPS'] rates_key_list = [ 'RX_BPS', 'RX_PPS', 'TX_BPS', 'TX_PPS'] ratestat_fields = ("rx_bps", "rx_pps", "tx_bps", "tx_pps") diff --git a/tests/tunnelstat_test.py b/tests/tunnelstat_test.py index c816009a45..286cd7feeb 100644 --- a/tests/tunnelstat_test.py +++ b/tests/tunnelstat_test.py @@ -16,15 +16,15 @@ import clear.main as clear show_vxlan_counters_output="""\ - IFACE RX_OK RX_BYTES RX_PPS TX_OK TX_BYTES TX_PPS -------- ------- ---------- ---------- ------- ---------- -------- - vtep1 452 81922 20523.00/s 154 23434 201.00/s + IFACE RX_PKTS RX_BYTES RX_PPS TX_PKTS TX_BYTES TX_PPS +------- --------- ---------- ---------- --------- ---------- -------- + vtep1 452 81922 20523.00/s 154 23434 201.00/s """ show_vxlan_counters_clear_output="""\ - IFACE RX_OK RX_BYTES RX_PPS TX_OK TX_BYTES TX_PPS -------- ------- ---------- ---------- ------- ---------- -------- - vtep1 0 0 20523.00/s 0 0 201.00/s + IFACE RX_PKTS RX_BYTES RX_PPS TX_PKTS TX_BYTES TX_PPS +------- --------- ---------- ---------- --------- ---------- -------- + vtep1 0 0 20523.00/s 0 0 201.00/s """ show_vxlan_counters_interface_output="""\