Update Ixia tg to use new API for traffic model creation 99/63199/1
authorSerhiy Pshyk <serhiyx.pshyk@intel.com>
Fri, 5 Oct 2018 11:15:43 +0000 (12:15 +0100)
committerSerhiy Pshyk <serhiyx.pshyk@intel.com>
Fri, 5 Oct 2018 11:15:43 +0000 (12:15 +0100)
JIRA: YARDSTICK-1464

Change-Id: Ibbced9e0e04e077ec5c23fc15e97308dd11b7004
Signed-off-by: Serhiy Pshyk <serhiyx.pshyk@intel.com>
yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py

index 94ab069..558a629 100644 (file)
@@ -96,7 +96,10 @@ class IxiaResourceHelper(ClientResourceHelper):
         """Initialize the IXIA IxNetwork client and configure the server"""
         self.client.clear_config()
         self.client.assign_ports()
-        self.client.create_traffic_model()
+        vports = self.client.get_vports()
+        uplink_vports = vports[::2]
+        downlink_vports = vports[1::2]
+        self.client.create_traffic_model(uplink_vports, downlink_vports)
 
     def run_traffic(self, traffic_profile, *args):
         if self._terminated.value: