[dts] [PATCH] Add hook function before IXIA stop transmission

Yong Liu yong.liu at intel.com
Thu Jul 9 08:56:29 CEST 2015


From: Marvin Liu <yong.liu at intel.com>

This function will be replaced by suite self-defined function. By this
function, suite can strip system status when running performance case.

Signed-off-by: Marvin Liu <yong.liu at intel.com>

diff --git a/framework/etgen.py b/framework/etgen.py
index fc64b70..1803a1f 100644
--- a/framework/etgen.py
+++ b/framework/etgen.py
@@ -606,6 +606,9 @@ class IxiaPacketGenerator(SSHConnection):
         for port in rxPortlist:
             self.start_pktGroup(self.pci_to_port(self.tester.get_pci(port)))
 
+    def hook_transmissoin_func(self):
+        pass
+
     def get_transmission_results(self, rx_port_list, tx_port_list, delay=5):
         """
         Override this method if you want to change the way of getting results
@@ -628,6 +631,8 @@ class IxiaPacketGenerator(SSHConnection):
         self.logger.info("Rate: %f Mpps" % (rate * 1.0 / 1000000))
         self.logger.info("Mbps rate: %f Mbps" % (bpsRate * 1.0 / 1000000))
 
+        self.hook_transmissoin_func()
+
         self.send_expect("ixStopTransmit portList", "%", 30)
 
         if rate == 0 and oversize > 0:
-- 
1.9.3



More information about the dts mailing list