CSIT-1389 Refactor current keywords for multichaining - CNF 25/16725/11
authorPeter Mikus <pmikus@cisco.com>
Tue, 8 Jan 2019 08:25:55 +0000 (08:25 +0000)
committerPeter Mikus <pmikus@cisco.com>
Wed, 9 Jan 2019 07:51:56 +0000 (07:51 +0000)
- Add ability to create matrix of containers (chains x nodeness)
- Change default Docker image to csit-dut
- Use new resource mapping function

Change-Id: Iaac0f2efc99146fbaef0b33dc71b38770610023d
Signed-off-by: Peter Mikus <pmikus@cisco.com>
50 files changed:
resources/libraries/python/ContainerUtils.py
resources/libraries/robot/performance/performance_configuration.robot
resources/libraries/robot/performance/performance_setup.robot
resources/libraries/robot/shared/container.robot
tests/vpp/perf/container_memif/10ge2p1x520-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-1memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-1memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-eth-l2xcbase-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x520-ethip4-ip4base-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x520-ethip4-ip4base-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-1memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-1memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-eth-l2xcbase-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/10ge2p1x710-ethip4-ip4base-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/10ge2p1x710-ethip4-ip4base-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-eth-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-eth-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-eth-l2xcbase-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-eth-l2xcbase-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-ethip4-ip4base-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-10ge2p1x710-ethip4-ip4base-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-dot1q-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-eth-l2bdbasemaclrn-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-eth-l2bdbasemaclrn-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-eth-l2xcbase-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-eth-l2xcbase-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-ethip4-ip4base-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/2n1l-25ge2p1xxv710-ethip4-ip4base-eth-2memif-1dcr-ndrpdr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-eth-l2bdbasemaclrn-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-eth-l2bdbasemaclrn-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-eth-l2xcbase-eth-2memif-1lxc-mrr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-eth-l2xcbase-eth-2memif-1lxc-ndrpdr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-ethip4-ip4base-eth-2memif-1dcr-mrr.robot
tests/vpp/perf/container_memif/40ge2p1xl710-ethip4-ip4base-eth-2memif-1dcr-ndrpdr.robot

index 478a978..786a401 100644 (file)
@@ -20,7 +20,6 @@ from collections import OrderedDict, Counter
 
 from resources.libraries.python.ssh import SSH
 from resources.libraries.python.constants import Constants
-from resources.libraries.python.CpuUtils import CpuUtils
 from resources.libraries.python.topology import Topology
 from resources.libraries.python.VppConfigGenerator import VppConfigGenerator
 
@@ -78,24 +77,6 @@ class ContainerManager(object):
         setattr(self.engine.container, 'env',
                 'MICROSERVICE_LABEL={label}'.format(label=kwargs['name']))
 
-        # Set cpuset.cpus cgroup
-        skip_cnt = kwargs['cpu_skip']
-        smt_used = CpuUtils.is_smt_enabled(kwargs['node']['cpuinfo'])
-        if not kwargs['cpu_shared']:
-            skip_cnt += kwargs['i'] * kwargs['cpu_count']
-        self.engine.container.cpuset_cpus = \
-            CpuUtils.cpu_slice_of_list_per_node(node=kwargs['node'],
-                                                cpu_node=kwargs['cpuset_mems'],
-                                                skip_cnt=skip_cnt,
-                                                cpu_cnt=1,
-                                                smt_used=False) \
-            + \
-            CpuUtils.cpu_slice_of_list_per_node(node=kwargs['node'],
-                                                cpu_node=kwargs['cpuset_mems'],
-                                                skip_cnt=skip_cnt+1,
-                                                cpu_cnt=kwargs['cpu_count']-1,
-                                                smt_used=smt_used)
-
         # Store container instance
         self.containers[kwargs['name']] = self.engine.container
 
@@ -326,19 +307,22 @@ class ContainerEngine(object):
         """Install VPP inside a container."""
         self.execute('ln -s /dev/null /etc/sysctl.d/80-vpp.conf')
         self.execute('apt-get update')
-        if self.container.install_dkms:
-            self.execute(
-                'apt-get install -y dkms && '
-                'dpkg -i --force-all '
-                '{guest_dir}/openvpp-testing/download_dir/*.deb'.
-                format(guest_dir=self.container.mnt[0].split(':')[1]))
-        else:
-            self.execute(
-                'for i in $(ls -I \"*dkms*\" '
-                '{guest_dir}/openvpp-testing/download_dir/); do '
-                'dpkg -i --force-all '
-                '{guest_dir}/openvpp-testing/download_dir/$i; done'.
-                format(guest_dir=self.container.mnt[0].split(':')[1]))
+        # Workaround for install xenial vpp build on bionic ubuntu.
+        self.execute('apt-get install -y wget')
+        self.execute('deb=$(mktemp) && wget -O "${deb}" '
+                     'http://launchpadlibrarian.net/336117627/'
+                     'libmbedcrypto0_2.5.1-1ubuntu1_amd64.deb && '
+                     'dpkg -i "${deb}" && '
+                     'rm -f "${deb}"')
+        self.execute('deb=$(mktemp) && wget -O "${deb}" '
+                     'http://launchpadlibrarian.net/252876048/'
+                     'libboost-system1.58.0_1.58.0+dfsg-5ubuntu3_amd64.deb && '
+                     'dpkg -i "${deb}" && '
+                     'rm -f "${deb}"')
+        self.execute(
+            'dpkg -i --force-all '
+            '{guest_dir}/openvpp-testing/download_dir/*.deb'.
+            format(guest_dir=self.container.mnt[0].split(':')[1]))
         self.execute('apt-get -f install -y')
         self.execute('apt-get install -y ca-certificates')
         self.execute('echo "{config}" >> {config_file}'.
@@ -685,10 +669,10 @@ class Docker(ContainerEngine):
             else:
                 return
 
-        image = self.container.image if self.container.image else\
-            "ubuntu:xenial-20180412"
+        if not self.container.image:
+            setattr(self.container, 'image', 'snergster/csit-sut:latest')
 
-        cmd = 'docker pull {image}'.format(image=image)
+        cmd = 'docker pull {image}'.format(image=self.container.image)
 
         ret, _, _ = self.container.ssh.exec_command_sudo(cmd, timeout=1800)
         if int(ret) != 0:
index 17f2d5f..f8628d0 100644 (file)
 | | ${tg1_if2_mac}= | Get Interface MAC | ${tg} | ${tg_if2}
 | | ${dut1_if2_mac}= | Get Interface MAC | ${dut1} | ${dut1_if2}
 | | ${dut2_if1_mac}= | Get Interface MAC | ${dut2} | ${dut2_if1}
-| | ${sock1}= | Set Variable | memif-DUT1_VNF
-| | ${sock2}= | Set Variable | memif-DUT2_VNF
+| | ${sock1}= | Set Variable | memif-DUT1_CNF1
+| | ${sock2}= | Set Variable | memif-DUT2_CNF1
 | | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock1}
 | | ... | ${1} | dut1-memif-1-if1 | dut1-memif-1-if2 | ${rxq_count_int}
 | | ... | ${rxq_count_int}
 | | ...
 | | ... | *Note:*
 | | ... | Socket paths for Memif are defined in following format:
-| | ... | - /tmp/memif-\${dut}_VNF\${number}-\${sid}
+| | ... | - /tmp/memif-\${dut}_CNF\${number}-\${sid}
 | | ...
 | | ... | KW uses test variable \${rxq_count_int} set by KW Add worker threads
 | | ... | and rxqueues to all DUTs
 | | [Arguments] | ${dut} | ${count}
 | | ...
 | | :FOR | ${number} | IN RANGE | 1 | ${count}+1
-| | | ${sock1}= | Set Variable | memif-${dut}_VNF
-| | | ${sock2}= | Set Variable | memif-${dut}_VNF
+| | | ${sock1}= | Set Variable | memif-${dut}_CNF1
+| | | ${sock2}= | Set Variable | memif-${dut}_CNF1
 | | | ${prev_index}= | Evaluate | ${number}-1
 | | | Set up memif interfaces on DUT node | ${nodes['${dut}']}
 | | | ... | ${sock1} | ${sock2} | ${number} | ${dut}-memif-${number}-if1
 | | ...
 | | ... | *Note:*
 | | ... | Socket paths for Memif are defined in following format:
-| | ... | - /tmp/memif-\${dut}_VNF\${number}-\${sid}
+| | ... | - /tmp/memif-\${dut}_CNF\${number}-\${sid}
 | | ...
 | | ... | *Example:*
 | | ...
 | | Add interface to bridge domain | ${nodes['${dut}']} | ${${dut}_if2}
 | | ... | ${bd_id2}
 | | :FOR | ${number} | IN RANGE | 1 | ${count}+1
-| | | ${sock1}= | Set Variable | memif-${dut}_VNF
-| | | ${sock2}= | Set Variable | memif-${dut}_VNF
+| | | ${sock1}= | Set Variable | memif-${dut}_CNF1
+| | | ${sock2}= | Set Variable | memif-${dut}_CNF1
 | | | Set up memif interfaces on DUT node | ${nodes['${dut}']}
 | | | ... | ${sock1} | ${sock2} | ${number} | ${dut}-memif-${number}-if1
 | | | ... | ${dut}-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
 | | ... | ${dut1} | ${subif_index_1} | TAG_REWRITE_METHOD=${tag_rewrite}
 | | ...
 | | ${number}= | Set Variable | ${1}
-| | ${sock1}= | Set Variable | memif-DUT1_VNF
-| | ${sock2}= | Set Variable | memif-DUT1_VNF
+| | ${sock1}= | Set Variable | memif-DUT1_CNF1
+| | ${sock2}= | Set Variable | memif-DUT1_CNF1
 | | ${memif_if1_name}= | Set Variable | DUT1-memif-${number}-if1
 | | ${memif_if2_name}= | Set Variable | DUT1-memif-${number}-if2
 | | Set up memif interfaces on DUT node | ${dut1} | ${sock1} | ${sock2}
 | | Add interface to bridge domain | ${dut1} | ${${memif_if2_name}} | ${bd_id2}
 | | Add interface to bridge domain | ${dut1} | ${subif_index_1} | ${bd_id2}
 | | ${sock1}= | Run Keyword If | '${dut2_status}' == 'PASS'
-| | ... | Set Variable | memif-DUT2_VNF
+| | ... | Set Variable | memif-DUT2_CNF1
 | | ${sock2}= | Run Keyword If | '${dut2_status}' == 'PASS'
-| | ... | Set Variable | memif-DUT2_VNF
+| | ... | Set Variable | memif-DUT2_CNF1
 | | ${memif_if1_name}= | Run Keyword If | '${dut2_status}' == 'PASS'
 | | ... | Set Variable | DUT2-memif-${number}-if1
 | | ${memif_if2_name}= | Run Keyword If | '${dut2_status}' == 'PASS'
 | | ...
 | | ... | *Note:*
 | | ... | Socket paths for Memif are defined in following format:
-| | ... | - /tmp/memif-\${dut}_VNF\${number}-\${sid}
+| | ... | - /tmp/memif-\${dut}_CNF\${number}-\${sid}
 | | ...
 | | ... | *Example:*
 | | ...
 | | ${fib_table_1}= | Evaluate | ${fib_table_1} - ${1}
 | | ${ip_base_start}= | Set Variable | ${31}
 | | :FOR | ${number} | IN RANGE | 1 | ${count+${1}}
-| | | ${sock1}= | Set Variable | memif-${dut}_VNF
-| | | ${sock2}= | Set Variable | memif-${dut}_VNF
+| | | ${sock1}= | Set Variable | memif-${dut}_CNF1
+| | | ${sock2}= | Set Variable | memif-${dut}_CNF1
 | | | Set up memif interfaces on DUT node | ${nodes['${dut}']}
 | | | ... | ${sock1} | ${sock2} | ${number} | ${dut}-memif-${number}-if1
 | | | ... | ${dut}-memif-${number}-if2 | ${rxq_count_int} | ${rxq_count_int}
 | | ...
 | | ... | *Note:*
 | | ... | Socket paths for Memif are defined in following format:
-| | ... | - /tmp/memif-DUT1_VNF\${number}-\${sid}
+| | ... | - /tmp/memif-DUT1_CNF\${number}-\${sid}
 | | ...
 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
 | | ... | and rxqueues to all DUTs
 | | ...
 | | ${duts}= | Get Matches | ${nodes} | DUT*
 | | :FOR | ${dut} | IN | @{duts}
-| | | ${sock}= | Set Variable | memif-${dut}_VNF
+| | | ${sock}= | Set Variable | memif-${dut}_CNF1
 | | | Set up single memif interface on DUT node | ${nodes['${dut}']} | ${sock}
 | | | ... | ${number} | ${dut}-memif-${number}-if1 | ${rxq_count_int}
 | | | ... | ${rxq_count_int}
 | | ...
 | | ... | *Note:*
 | | ... | Socket paths for Memif are defined in following format:
-| | ... | - /tmp/memif-DUT1_VNF\${number}-\${sid}
+| | ... | - /tmp/memif-DUT1_CNF\${number}-\${sid}
 | | ...
 | | ... | KW uses test variable ${rxq_count_int} set by KW Add worker threads
 | | ... | and rxqueues to all DUTs
 | | ...
 | | ${duts}= | Get Matches | ${nodes} | DUT*
 | | :FOR | ${dut} | IN | @{duts}
-| | | ${sock}= | Set Variable | memif-${dut}_VNF
+| | | ${sock}= | Set Variable | memif-${dut}_CNF1
 | | | Set up single memif interface on DUT node | ${nodes['${dut}']} | ${sock}
 | | | ... | ${number} | ${dut}-memif-${number}-if1 | ${rxq_count_int}
 | | | ... | ${rxq_count_int}
index a06a0cf..a63a7df 100644 (file)
 | | [Documentation]
 | | ... | Suite preparation phase that starts containers
 | | ...
+| | ... | *Arguments:*
+| | ... | - chains: Total number of chains. Type: integer
+| | ... | - nodeness: Total number of nodes per chain. Type: integer
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Set up performance topology with containers \| 1 \| 1 \|
+| | ...
+| | [Arguments] | ${chains}=${1} | ${nodeness}=${1}
+| | ...
 | | Set Suite Variable | @{container_groups} | @{EMPTY}
-| | Construct VNF containers on all DUTs
-| | Acquire all 'VNF' containers
-| | Create all 'VNF' containers
-| | Configure VPP in all 'VNF' containers
+| | Construct chains of containers on all DUTs | ${chains} | ${nodeness}
+| | Acquire all 'CNF' containers
+| | Create all 'CNF' containers
+| | Configure VPP in all 'CNF' containers
 | | Stop VPP service on all DUTs | ${nodes}
-| | Install VPP in all 'VNF' containers
+| | Install VPP in all 'CNF' containers
 | | Start VPP service on all DUTs | ${nodes}
 
 | Set up performance test suite with MEMIF
index e7b101c..e4748db 100644 (file)
 | Library | resources.libraries.python.topology.Topology
 
 *** Keywords ***
-| Construct VNF containers on all DUTs
-| | [Documentation] | Construct 1..N VNF container(s) of specific technology on
-| | ... |  all DUT nodes.
+| Construct container on all DUTs
+| | [Documentation] | Construct 1 CNF of specific technology on all DUT nodes.
 | | ...
-| | ${group}= | Set Variable | VNF
-| | ${skip_cpus}= | Evaluate | ${vpp_cpus}+${system_cpus}
+| | ... | *Arguments:*
+| | ... | - chains: Total number of chains. Type: integer
+| | ... | - nodeness: Total number of nodes per chain. Type: integer
+| | ... | - chain_id: Chain ID. Type: integer
+| | ... | - node_id: Node ID. Type: integer
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Construct container on all DUTs \| 1 \| 1 \| 1 \| 1 \|
+| | ...
+| | [Arguments] | ${chains}=${1} | ${nodeness}=${1} | ${chain_id}=${1}
+| | ... | ${node_id}=${1}
+| | ...
+| | ${group}= | Set Variable | CNF
 | | Import Library | resources.libraries.python.ContainerUtils.ContainerManager
 | | ... | engine=${container_engine} | WITH NAME | ${group}
 | | ${duts}= | Get Matches | ${nodes} | DUT*
 | | :FOR | ${dut} | IN | @{duts}
 | | | ${env}= | Create List | DEBIAN_FRONTEND=noninteractive
 | | | ${mnt}= | Create List | /tmp:/mnt/host | /dev/vfio:/dev/vfio
-| | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']}
-| | | ... | ${dut1_if1} | ${dut1_if2}
-| | | Run Keyword | ${group}.Construct containers
-| | | ... | name=${dut}_${group} | node=${nodes['${dut}']} | mnt=${mnt}
-| | | ... | image=${container_image} | cpu_count=${container_cpus}
-| | | ... | cpu_skip=${skip_cpus} | cpuset_mems=${cpu_node}
-| | | ... | cpu_shared=${False} | env=${env} | count=${container_count}
-| | | ... | install_dkms=${container_install_dkms}
-| | Append To List | ${container_groups} | ${group}
-
-| Construct ETCD containers on all DUTs
-| | [Documentation] | Construct Docker ETCD container on all DUTs.
-| | ...
-| | ${group}= | Set Variable | ETCD
-| | ${command}= | Set Variable
-| | ... | /usr/local/bin/etcd -advertise-client-urls http://0.0.0.0:2379 -listen-client-urls http://0.0.0.0:2379
-| | ${image}= | Set Variable | quay.io/coreos/etcd:v3.2.5
-| | ${publish}= | Create List | 2379:2379
-| | Import Library | resources.libraries.python.ContainerUtils.ContainerManager
-| | ... | engine=Docker | WITH NAME | ${group}
-| | ${duts}= | Get Matches | ${nodes} | DUT*
-| | :FOR | ${dut} | IN | @{duts}
-| | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']}
-| | | ... | ${dut1_if1} | ${dut1_if2}
+| | | ${nf_cpus}= | Create network function CPU list | ${dut}
+| | | ... | chains=${chains} | nodeness=${nodeness} | chain_id=${chain_id}
+| | | ... | node_id=${node_id} | auto_scale=${True}
 | | | Run Keyword | ${group}.Construct container
-| | | ... | name=${dut}_${group} | node=${nodes['${dut}']}
-| | | ... | image=${container_image} | cpu_count=${1} | cpu_skip=${0}
-| | | ... | cpuset_mems=${cpu_node} | cpu_shared=${True}
-| | | ... | publish=${publish} | command=${command}
+| | | ... | name=${dut}_${group}${chain_id}${node_id} | node=${nodes['${dut}']}
+| | | ... | mnt=${mnt} | env=${env} | cpuset_cpus=${nf_cpus}
 | | Append To List | ${container_groups} | ${group}
 
-| Construct Kafka containers on all DUTs
-| | [Documentation] | Construct Docker Kafka container on all DUTs.
+| Construct chain of containers on all DUTs
+| | [Documentation] | Construct 1 chain of 1..N CNFs on all DUT nodes.
 | | ...
-| | ${group}= | Set Variable | Kafka
-| | ${image}= | Set Variable | spotify/kafka
-| | ${publish}= | Create List | 2181:2181 | 9092:9092
-| | Import Library | resources.libraries.python.ContainerUtils.ContainerManager
-| | ... | engine=Docker | WITH NAME | ${group}
-| | ${duts}= | Get Matches | ${nodes} | DUT*
-| | :FOR | ${dut} | IN | @{duts}
-| | | ${env}= | Create List | ADVERTISED_HOST=172.17.0.1 | ADVERTISED_PORT=9092
-| | | ${cpu_node}= | Get interfaces numa node | ${nodes['${dut}']}
-| | | ... | ${dut1_if1} | ${dut1_if2}
-| | | Run Keyword | ${group}.Construct container
-| | | ... | name=${dut}_${group} | node=${nodes['${dut}']} | image=${image}
-| | | ... | cpu_count=${1} | cpu_skip=${0} | cpuset_mems=${cpu_node}
-| | | ... | cpu_shared=${True} | publish=${publish} | env=${env}
-| | Append To List | ${container_groups} | ${group}
+| | ... | *Arguments:*
+| | ... | - chains: Total number of chains. Type: integer
+| | ... | - nodeness: Total number of nodes per chain. Type: integer
+| | ... | - chain_id: Chain ID. Type: integer
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Construct chain of containers on all DUTs \| 1 \| 1 \| 1 \|
+| | ...
+| | [Arguments] | ${chains} | ${nodeness} | ${chain_id}
+| | ...
+| | :FOR | ${node_id} | IN RANGE | 1 | ${nodeness}+1
+| | | Construct container on all DUTs | chains=${chains} | nodeness=${nodeness}
+| | | ... | chain_id=${chain_id} | node_id=${node_id}
+
+| Construct chains of containers on all DUTs
+| | [Documentation] | Construct 1..N chains of 1..N CNFs on all DUT nodes.
+| | ...
+| | ... | *Arguments:*
+| | ... | - chains: Total number of chains. Type: integer
+| | ... | - nodeness: Total number of nodes per chain. Type: integer
+| | ...
+| | ... | *Example:*
+| | ...
+| | ... | \| Construct chains of containers on all DUTs \| 1 \| 1 \|
+| | ...
+| | [Arguments] | ${chains}=${1} | ${nodeness}=${1}
+| | ...
+| | :FOR | ${chain_id} | IN RANGE | 1 | ${chains}+1
+| | | Construct chain of containers on all DUTs | chains=${chains}
+| | | ... | nodeness=${nodeness} | chain_id=${chain_id}
 
 | Acquire all '${group}' containers
 | | [Documentation] | Acquire all container(s) in specific container group on
index ea4f9f8..ec92a06 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 370500f..f6d3287 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index a5ab1f0..9da1519 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 1a7f13d..9fd78dc 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index cefac38..cd21d0d 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# Container settings
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${TRUE}
 | ${container_chain_topology}= | cross_horiz
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 5eec0fb..b800886 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# Container settings
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${TRUE}
 | ${container_chain_topology}= | cross_horiz
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index f2f9254..58ed892 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 3729539..9803453 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index ed208c3..43c4c56 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 24f558e..4c72089 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 37bc41d..28c475e 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index ed371d8..561bbb2 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-X520-DA2
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 60e0542..9d73c40 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 5e9db6c..7f98685 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 00e3634..b8bd553 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index df051fe..b1d789f 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index a232209..4196dab 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# Container settings
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${TRUE}
 | ${container_chain_topology}= | cross_horiz
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index d8790f0..5dd18dd 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# Container settings
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${TRUE}
 | ${container_chain_topology}= | cross_horiz
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index d279340..59d2233 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 9c13c34..b7d2401 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index dacb7d9..e017c4a 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 14a7502..1fcdca0 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 8662025..1859b9b 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 9827aa9..1b94489 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index f250e80..d54be00 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-dot1qip4asym-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 2ec53e4..dd8d149 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-dot1qip4asym-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 982142d..bf4027b 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index a232b06..a4f6d51 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 0d160d8..ddebc3d 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index b56fc9b..5c47bf4 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 0b8c23d..4114e62 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L3
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 027d6b9..9512b8e 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L3
 | ... | Intel-X710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_limit}= | ${10000000000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index e8d6c0a..f0b1eb6 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-dot1qip4asym-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index a2b72cf..4238e17 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-dot1qip4asym-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 5c1e43a..d2fe4ef 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 610e060..8159d1c 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 7edfa14..e6f7b79 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 3019c50..9985073 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L2
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index a9f3442..bfb5d35 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L3
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 045bed6..62022fc 100644 (file)
 | ... | Set up 2-node performance topology with DUT's NIC model | L3
 | ... | Intel-XXV710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 2-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-2n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 4d64e07..1aa9a7d 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 8d1d8ca..539e9c0 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index efe1fc6..514443c 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 548fac2..464c88f 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L2
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | LXC
-| ${container_image}= | ${EMPTY}
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 88a7e9b..f972df9 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance mrr test
 | ...
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template
index 0e0ba51..4a2d939 100644 (file)
 | ... | Set up 3-node performance topology with DUT's NIC model | L3
 | ... | Intel-XL710
 | ... | AND | Set up performance test suite with MEMIF
-| ... | AND | Set up performance topology with containers
+| ... | AND | Set up performance topology with containers | chains=${1}
+| ... | nodeness=${1}
 | ...
 | Suite Teardown | Tear down 3-node performance topology with container
 | ...
 | Test Setup | Run Keywords
 | ... | Set up performance test
-| ... | AND | Restart VPP in all 'VNF' containers
+| ... | AND | Restart VPP in all 'CNF' containers
 | ...
 | Test Teardown | Tear down performance discovery test | ${min_rate}pps
 | ... | ${framesize} | ${traffic_profile}
 | ${s_18.75Mpps}= | ${18750000}
 # Traffic profile:
 | ${traffic_profile}= | trex-sl-3n-ethip4-ip4src254
-# LXC container
-| ${container_count}= | ${1}
+# Container
+| ${cpu_count_int}= | ${4}
 | ${container_engine}= | Docker
-| ${container_image}= | ubuntu:xenial-20180412
-| ${container_install_dkms}= | ${FALSE}
 | ${container_chain_topology}= | chain
-# CPU settings
-| ${system_cpus}= | ${1}
-| ${vpp_cpus}= | ${5}
-| ${container_cpus}= | ${5}
 
 *** Keywords ***
 | Local Template