[dts] [PATCH V1] tests/vf_port_start_stop: fix mac address error

Fangfang Wei fangfangx.wei at intel.com
Tue Aug 29 03:58:34 CEST 2017


vm port mac address will be changed after bind to igb_uio and run testpmd.
So getting port mac address should uses the function get_port_mac() which
is in PmdOutput class.

Signed-off-by: Fangfang Wei <fangfangx.wei at intel.com>
---
 tests/TestSuite_vf_port_start_stop.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_vf_port_start_stop.py b/tests/TestSuite_vf_port_start_stop.py
index ddcfbc7..9e2e47c 100644
--- a/tests/TestSuite_vf_port_start_stop.py
+++ b/tests/TestSuite_vf_port_start_stop.py
@@ -219,7 +219,7 @@ class TestVfPortStartStop(TestCase):
 
         time.sleep(2)
 
-        dst_mac = self.vm_dut_0.get_mac_address(self.vm0_dut_ports[0])
+        dst_mac = self.vm0_testpmd.get_port_mac(self.vm0_dut_ports[0])
         self.send_and_verify(dst_mac, self.vm0_testpmd) 
 
     def tear_down(self):
-- 
2.7.4



More information about the dts mailing list