Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed Oct 22, 2021
1 parent 91c96c4 commit 5d0c058
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/tunnelstat
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
12 changes: 6 additions & 6 deletions tests/tunnelstat_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="""\
Expand Down

0 comments on commit 5d0c058

Please sign in to comment.