Printer FriendlyEmail Article Link

Spirent Test Center- HLTAPI : Ability to access streamblock results directly from the traffic_stats API return value

Environment/Versions
xTAPI 4.59
Current implementation of traffic_stats API returns the streamblock results under the port as a parent.
This sometimes creates a confusion to the end user while trying to retrieve the results from the data structure.
Answer
It will provide direct streamblock result data structure in the return value.

1. if user input “-port_handle” or “rx_port_handle”, then the return structure is the same as before.

2. If user call like this: set stats [sth::traffic_stats -mode streams], we will *add* a new return structure to return stats of all streamblocks under project1:

streamblock1 =>
|------------rx =>
|------------tx =>

streamblock2 =>
|------------rx =>
|------------tx =>

If user call like this: set stats [sth::traffic_stats -mode streams -streams ], then we will *add* a new return structure to return streamblock1 stats
streamblock1 =>
|------------rx =>
|------------tx =>

3 it will the same case as #2 if mode is “detailed_streams”

Product : API