tohojo / flent

The FLExible Network Tester.
https://flent.org
Other
431 stars 77 forks source link

KeyError in parse_raw #244

Closed hrishikeshathalye closed 2 years ago

hrishikeshathalye commented 2 years ago

parse_raw in class DitgRunner throws a KeyError when using DITG to generate VoIP traffic.

Screenshot from 2021-11-01 16-57-18

Printing the parts dictionary reveals the reason to be incorrect parsing of the DITG output.

Screenshot from 2021-11-01 16-59-17

Changing the regex parts = re.split(r">?\s*", line) to parts = list(filter(None, re.split(r"(\S+)>\s*", line))) can fix the issue.

Can submit a PR if needed.

tohojo commented 2 years ago

Can submit a PR if needed.

Please do! :)