summaryrefslogtreecommitdiffstats
path: root/nfvbench/summarizer.py
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-12-07 15:05:06 -0800
committerahothan <ahothan@cisco.com>2018-12-07 15:44:57 -0800
commited1df5da8e6468ec7a0e25a853fe803bfc0af3f6 (patch)
tree273b40d578a62eded8898e190c10080a09cfedf0 /nfvbench/summarizer.py
parent8eaf1fcc4b2b3678d62ddb081f0d912fdc92bc20 (diff)
NFVBENCH-118 VxLAN fixed rate: Trex far end port Rx counters are incorrect
Change-Id: If3d0b199f4b97f8610dea360cb9e70fabec06601 Signed-off-by: ahothan <ahothan@cisco.com>
Diffstat (limited to 'nfvbench/summarizer.py')
-rw-r--r--nfvbench/summarizer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/nfvbench/summarizer.py b/nfvbench/summarizer.py
index f03d3bc..7520076 100644
--- a/nfvbench/summarizer.py
+++ b/nfvbench/summarizer.py
@@ -44,7 +44,8 @@ def _annotate_chain_stats(chain_stats, nodrop_marker='=>'):
'total': {...}
}
- In the case of shared net, some columns in packets array can have ''
+ In the case of shared net, some columns in packets array can have ''.
+ Some columns cab also be None which means the data is not available.
"""
for stats in chain_stats.values():
packets = stats['packets']
@@ -60,6 +61,9 @@ def _annotate_chain_stats(chain_stats, nodrop_marker='=>'):
# an empty string indicates an unknown counter for a shared interface
# do not annotate those
annotated_value = ''
+ elif cur_count is None:
+ # Not available
+ annotated_value = 'n/a'
else:
drop = cur_count - prev_count
if drop: