[dts] [PATCH V1]tests/shutdown_api: set fwd mode in promisc and allmulti

Zeng Xiaoxiao xiaoxiaox.zeng at intel.com
Thu Apr 30 17:06:17 CEST 2020


*. default use io mode, set fwd mac. 

Signed-off-by: Zeng Xiaoxiao <xiaoxiaox.zeng at intel.com>
---
 tests/TestSuite_shutdown_api.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 181a385..a2f508a 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -354,6 +354,7 @@ class TestShutdownApi(TestCase):
         self.pmdout.start_testpmd("Default", "--portmask=%s  --port-topology=loop" % portmask, socket = self.ports_socket)
 
         self.dut.send_expect("port stop all", "testpmd> ", 100)
+        self.dut.send_expect("set fwd mac", "testpmd>")
         self.dut.send_expect("set promisc all off", "testpmd> ")
         self.dut.send_expect("port start all", "testpmd> ", 100)
         self.dut.send_expect("show config rxtx", "testpmd> ")
@@ -391,6 +392,7 @@ class TestShutdownApi(TestCase):
 
         self.dut.send_expect("set promisc all off", "testpmd> ")
         self.dut.send_expect("set allmulti all off", "testpmd> ")
+        self.dut.send_expect("set fwd mac", "testpmd>")
         self.dut.send_expect("start", "testpmd> ")
 
         self.check_forwarding(ports)
-- 
2.17.1



More information about the dts mailing list