aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2018-09-28 13:34:46 +0000
committerPeter Mikus <pmikus@cisco.com>2018-09-28 15:36:23 +0000
commitb261d69c4a72539dc5a571c1abb3e6a6cb45d408 (patch)
tree24f8adfb768581512e4d10ba1c0ed33f39b58340 /resources/libraries
parent8fa4cadbb4b3c6a95dab9e7715e5e6435225673f (diff)
FIX: Single memif tests failing
This patch suppose to fix the single memif TCs failing on SKX nodes. By stoping Host VPP during startup of Guest VPP. This way Guest VPP can take interface on single pass.o Change-Id: I88e6932bf007ce0f6a367927de5f017ffb8fdaca Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/VPPUtil.py9
-rw-r--r--resources/libraries/robot/performance/performance_setup.robot2
-rw-r--r--resources/libraries/robot/shared/container.robot1
3 files changed, 11 insertions, 1 deletions
diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py
index de3caad916..17310aa21a 100644
--- a/resources/libraries/python/VPPUtil.py
+++ b/resources/libraries/python/VPPUtil.py
@@ -82,6 +82,15 @@ class VPPUtil(object):
DUTSetup.stop_service(node, Constants.VPP_UNIT)
@staticmethod
+ def stop_vpp_service_on_all_duts(nodes):
+ """Stop VPP service on all nodes.
+
+ :param nodes: Nodes in the topology.
+ :type nodes: dict
+ """
+ DUTSetup.stop_service_on_all_duts(nodes, Constants.VPP_UNIT)
+
+ @staticmethod
def verify_vpp_on_dut(node):
"""Verify that VPP is installed on DUT node.
diff --git a/resources/libraries/robot/performance/performance_setup.robot b/resources/libraries/robot/performance/performance_setup.robot
index e9f155533e..f5288e7a4b 100644
--- a/resources/libraries/robot/performance/performance_setup.robot
+++ b/resources/libraries/robot/performance/performance_setup.robot
@@ -538,7 +538,9 @@
| | Acquire all 'VNF' containers
| | Create all 'VNF' containers
| | Configure VPP in all 'VNF' containers
+| | Stop VPP service on all DUTs | ${nodes}
| | Install VPP in all 'VNF' containers
+| | Start VPP service on all DUTs | ${nodes}
| Set up performance test suite with MEMIF
| | [Documentation]
diff --git a/resources/libraries/robot/shared/container.robot b/resources/libraries/robot/shared/container.robot
index 5b1b2ffa03..e7b101cb94 100644
--- a/resources/libraries/robot/shared/container.robot
+++ b/resources/libraries/robot/shared/container.robot
@@ -29,7 +29,6 @@
| | :FOR | ${dut} | IN | @{duts}
| | | ${env}= | Create List | DEBIAN_FRONTEND=noninteractive
| | | ${mnt}= | Create List | /tmp:/mnt/host | /dev/vfio:/dev/vfio
-| | | ... | /dev/bus:/dev/bus
| | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']}
| | | ... | ${dut1_if1} | ${dut1_if2}
| | | Run Keyword | ${group}.Construct containers