[dts] [PATCH V1 2/3] remove auto_portmap parameter
xu,huilong
huilongx.xu at intel.com
Tue Dec 22 04:15:11 CET 2015
remove auto_portmap parameter when init virt dut.
because set portmap by crete_portmap function
Signed-off-by: xu,huilong <huilongx.xu at intel.com>
---
framework/virt_base.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/framework/virt_base.py b/framework/virt_base.py
index 4a445d1..1d0c282 100644
--- a/framework/virt_base.py
+++ b/framework/virt_base.py
@@ -224,7 +224,7 @@ class VirtBase(object):
self.load_global_config()
self.load_local_config(self.suite)
- def start(self, load_config=True, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def start(self, load_config=True, set_target=True, cpu_topo='', bind_dev=True):
"""
Start VM and instantiate the VM with VirtDut.
"""
@@ -238,7 +238,7 @@ class VirtBase(object):
self._start_vm()
# connect vm dut and init running environment
- vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, auto_portmap)
+ vm_dut = self.instantiate_vm_dut(set_target, cpu_topo)
except Exception as vm_except:
if self.handle_exception(vm_except):
print dts.RED("Handled expection " + str(type(vm_except)))
@@ -293,7 +293,7 @@ class VirtBase(object):
"""
NotImplemented
- def instantiate_vm_dut(self, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True):
+ def instantiate_vm_dut(self, set_target=True, cpu_topo='', bind_dev=True):
"""
Instantiate the Dut class for VM.
"""
@@ -341,7 +341,7 @@ class VirtBase(object):
try:
# setting up dpdk in vm, must call at last
- vm_dut.prerequisites(dts.Package, dts.Patches, auto_portmap)
+ vm_dut.prerequisites(dts.Package, dts.Patches)
if set_target:
target = self.host_dut.target
vm_dut.set_target(target, bind_dev)
--
1.9.3
More information about the dts
mailing list