Skip to content

Commit

Permalink
fix flow results transmit state
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbalogh committed Nov 19, 2020
1 parent ef26de6 commit ff32ce0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.55
0.0.56
4 changes: 2 additions & 2 deletions ixnetwork_open_traffic_generator/trafficitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,14 @@ def results(self, request):
self._set_result_value(flow_row, external_name, 0, external_type)
flow_rows[flow_row['name'] + flow_row['port_tx'] + flow_row['port_rx']] = flow_row
try:
if traffic_item['state'] == 'stopped':
time.sleep(3)
table = self._api.assistant.StatViewAssistant(
'Flow Statistics')
table.AddRowFilter('Traffic Item', StatViewAssistant.REGEX,
filter['regex'])
for row in table.Rows:
flow_row = flow_rows[row['Traffic Item'] + row['Tx Port'] + row['Rx Port']]
if traffic_item['state'] == 'stopped' and float(row['Tx Frame Rate']) > 0 or int(row['Tx Frames']) == 0:
flow_row['transmit'] = 'started'
for external_name, internal_name, external_type in self._RESULT_COLUMNS:
self._set_result_value(flow_row, external_name, row[internal_name], external_type)
except Exception as e:
Expand Down

0 comments on commit ff32ce0

Please sign in to comment.