diff mbox series

[V1,15/27] framework/pktgen: enable ixNetwork

Message ID 20210125084414.8503-16-yufengx.mo@intel.com (mailing list archive)
State Accepted
Delegated to: LIjuan Tu
Headers show
Series dts: enable IxNetwork and enhance perf testing | expand

Commit Message

yufengmx Jan. 25, 2021, 8:44 a.m. UTC
add ixNetwork packet generator support in pktgen.

Signed-off-by: yufengmx <yufengx.mo@intel.com>
---
 framework/pktgen.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/framework/pktgen.py b/framework/pktgen.py
index 92d17784..a00bc090 100644
--- a/framework/pktgen.py
+++ b/framework/pktgen.py
@@ -42,10 +42,11 @@  from scapy.utils import rdpcap
 from utils import (convert_int2ip, convert_ip2int,
                    convert_mac2long, convert_mac2str)
 
-from pktgen_base import (PKTGEN_DPDK, PKTGEN_TREX, PKTGEN_IXIA, STAT_TYPE,
+from pktgen_base import (PKTGEN_DPDK, PKTGEN_TREX, PKTGEN_IXIA, PKTGEN_IXIA_NETWORK, STAT_TYPE,
                          TRANSMIT_CONT, TRANSMIT_M_BURST, TRANSMIT_S_BURST)
 from pktgen_base import DpdkPacketGenerator
 from pktgen_ixia import IxiaPacketGenerator
+from pktgen_ixia_network import IxNetworkPacketGenerator
 from pktgen_trex import TrexPacketGenerator
 
 
@@ -208,7 +209,9 @@  def getPacketGenerator(tester, pktgen_type=PKTGEN_IXIA):
     pktgen_cls = {
         PKTGEN_DPDK: DpdkPacketGenerator,
         PKTGEN_IXIA: IxiaPacketGenerator,
-        PKTGEN_TREX: TrexPacketGenerator, }
+        PKTGEN_IXIA_NETWORK: IxNetworkPacketGenerator,
+        PKTGEN_TREX: TrexPacketGenerator,
+    }
 
     if pktgen_type in list(pktgen_cls.keys()):
         CLS = pktgen_cls.get(pktgen_type)