- while nflows < self.nflows:
- node_id = randrange(1, n_nodes + 1)
- flow_list = []
- for i in range(self.fpr):
- flow_id = tid * (self.ncycles * self.nflows) + nflows + start_flow_id + self.startflow
- self.flows[tid][flow_id] = node_id
- flow_list.append(self.create_flow_from_template(flow_id, self.ip_addr.increment(), node_id))
- nflows += 1
- if nflows >= self.nflows:
- break
- sts = self.post_flows(s, node_id, flow_list, nflows)