Code Review
/
nfvbench.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NFVBENCH-118 VxLAN fixed rate: Trex far end port Rx counters are incorrect
[nfvbench.git]
/
nfvbench
/
summarizer.py
diff --git
a/nfvbench/summarizer.py
b/nfvbench/summarizer.py
index
f03d3bc
..
7520076
100644
(file)
--- a/
nfvbench/summarizer.py
+++ b/
nfvbench/summarizer.py
@@
-44,7
+44,8
@@
def _annotate_chain_stats(chain_stats, nodrop_marker='=>'):
'total': {...}
}
'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']
"""
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 = ''
# 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:
else:
drop = cur_count - prev_count
if drop: