Fix add_Flows method in Flow config blaster
[integration/test.git] / tools / odl-mdsal-clustering-tests / clustering-performance-test / flow_config_blaster.py
index b947baa7a0243eaf4d6d6052e5db318ec48580e2..d290ad30709e15b655530533ddf3eea0213e4e65 100755 (executable)
@@ -341,9 +341,9 @@ class FlowConfigBlaster(object):
                 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
-                nb_actions.append((s, node_id, flow_list, nflows))
                 if nflows >= self.nflows:
                     break
+            nb_actions.append((s, node_id, flow_list, nflows))
 
         with Timer() as t:
             for nb_action in nb_actions: