Merge "[docs] Test case documentation for vEPC testing"
[yardstick.git] / yardstick / benchmark / scenarios / networking / vnf_generic.py
index 4884e57..20fff61 100644 (file)
@@ -63,6 +63,9 @@ class NetworkServiceTestCase(scenario_base.Scenario):
         self.bin_path = get_nsb_option('bin_path', '')
         self._mq_ids = []
 
+    def is_ended(self):
+        return self.traffic_profile is not None and self.traffic_profile.is_ended()
+
     def _get_ip_flow_range(self, ip_start_range):
         """Retrieve a CIDR first and last viable IPs
 
@@ -120,8 +123,11 @@ class NetworkServiceTestCase(scenario_base.Scenario):
             if "count" in fflow:
                 flow["count"] = fflow["count"]
 
-            if "seed" in fflow:
-                flow["seed"] = fflow["seed"]
+            if "srcseed" in fflow:
+                flow["srcseed"] = fflow["srcseed"]
+
+            if "dstseed" in fflow:
+                flow["dstseed"] = fflow["dstseed"]
 
         except KeyError:
             flow = {}