diff options
Diffstat (limited to 'script/traffic_replay')
-rwxr-xr-x | script/traffic_replay | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/script/traffic_replay b/script/traffic_replay index 6fbbe4f4425..83b7041f635 100755 --- a/script/traffic_replay +++ b/script/traffic_replay @@ -250,9 +250,9 @@ def main(): logger.info(("Using the specified model file to " "generate conversations")) - conversations = model.generate_conversations(opts.scale_traffic, - opts.duration, - opts.replay_rate) + conversations = model.generate_conversation_sequences(opts.scale_traffic, + opts.duration, + opts.replay_rate) except ValueError: logger.error(("Could not parse %s, which does not seem to be " "a model generated by script/traffic_learner." @@ -263,7 +263,7 @@ def main(): conversations = [] if debuglevel > 5: - for c in conversations: + for c in traffic.seq_to_conversations(conversations): for p in c.packets: print(" ", p, file=sys.stderr) @@ -350,7 +350,7 @@ def main(): logger.info("Writing traffic summary") summaries = [] - for c in conversations: + for c in traffic.seq_to_conversations(conversations): summaries += c.replay_as_summary_lines() summaries.sort() @@ -359,7 +359,8 @@ def main(): exit(0) - traffic.replay(conversations, host, + traffic.replay(traffic.seq_to_conversations(conversations), + host, lp=lp, creds=creds, accounts=accounts, |