'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']
# 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:
def __chain_analysis_summarize(self, frame_size, analysis):
self._put()
self._put('L2 frame size:', frame_size)
- if 'actual_l2frame_size' in analysis:
- self._put('Actual l2 frame size:', analysis['actual_l2frame_size'])
- elif self.config['ndr_run'] and 'actual_l2frame_size' in analysis['ndr']:
- self._put('Actual l2 frame size:', analysis['ndr']['actual_l2frame_size'])
- elif self.config['pdr_run'] and 'actual_l2frame_size' in analysis['pdr']:
- self._put('Actual l2 frame size:', analysis['pdr']['actual_l2frame_size'])
if self.config['ndr_run']:
self._put('NDR search duration:', Formatter.float(0)(analysis['ndr']['time_taken_sec']),
'seconds')