tohojo/flent

KeyError in parse_raw

hrishikeshathalye opened this issue · 1 comments

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.

Can submit a PR if needed.

Please do! :)