Enable update ip headers for given testcase 65/40765/2
authorDeepak S <deepak.s@linux.intel.com>
Thu, 31 Aug 2017 08:08:41 +0000 (01:08 -0700)
committerMaciej Skrocki <maciej.skrocki@intel.com>
Thu, 31 Aug 2017 20:57:06 +0000 (13:57 -0700)
Change-Id: I008b3f09695f5e3f484b39d4e70b83e5942de863
Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Maciej Skrocki <maciej.skrocki@intel.com>
tests/unit/network_services/libs/ixia_libs/test_IxNet.py
yardstick/network_services/libs/ixia_libs/IxNet/IxNet.py
yardstick/network_services/traffic_profile/ixia_rfc2544.py

index ae4c58d..7fe8340 100644 (file)
@@ -268,7 +268,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_add_ip_header_v4(self):
         static_traffic_params = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -308,7 +308,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
@@ -366,7 +366,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_add_ip_header_v4_nothing_to_do(self):
         static_traffic_params = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -406,7 +406,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
@@ -464,7 +464,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_add_ip_header_v6(self):
         static_traffic_profile = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -497,7 +497,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
@@ -547,7 +547,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_add_ip_header_v6_nothing_to_do(self):
         static_traffic_params = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -579,7 +579,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
@@ -684,7 +684,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_ix_update_ether(self):
         static_traffic_params = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -723,7 +723,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
@@ -787,7 +787,7 @@ class TestIxNextgen(unittest.TestCase):
 
     def test_ix_update_ether_nothing_to_do(self):
         static_traffic_params = {
-            "private": {
+            "private_1": {
                 "id": 1,
                 "bidir": "False",
                 "duration": 60,
@@ -820,7 +820,7 @@ class TestIxNextgen(unittest.TestCase):
                 },
                 "traffic_type": "continuous"
             },
-            "public": {
+            "public_1": {
                 "id": 2,
                 "bidir": "False",
                 "duration": 60,
index 2b8905b..38831ee 100644 (file)
@@ -113,10 +113,10 @@ class IxNextgen(object):
     }
 
     MODE_SEEDS_MAP = {
-        0: ('private', ['256', '2048']),
+        0: ('private_1', ['256', '2048']),
     }
 
-    MODE_SEEDS_DEFAULT = 'public', ['2048', '256']
+    MODE_SEEDS_DEFAULT = 'public_1', ['2048', '256']
 
     @staticmethod
     def find_view_obj(view_name, views):
index 5ba0018..ba532b8 100644 (file)
@@ -74,7 +74,7 @@ class IXIARFC2544Profile(TrexProfile):
                 traffic[key]["iload"] = str(self.rate)
         ixia_obj.ix_update_frame(traffic)
         ixia_obj.ix_update_ether(traffic)
-        # ixia_obj.ix_update_ipv4(traffic)
+        ixia_obj.add_ip_header(traffic, 4)
         ixia_obj.ix_start_traffic()
         self.tmp_drop = 0
         self.tmp_throughput = 0