diff options
author | Peter Mikus <pmikus@cisco.com> | 2017-06-22 13:24:22 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-06-23 07:56:36 +0000 |
commit | 45aa8056fd26ea55e3e229c4d5b164a272a5b3c2 (patch) | |
tree | af5cf1a96ea01ee10cb023bc090a6a4d8d3a2a1c /resources/libraries/robot | |
parent | 2a17b5c9e6746cff71eff0e0a9c6f822eb6645f8 (diff) |
Update of LXCUtil library
Change-Id: I1a095e45960ca004413c4ecbfd410e41fb621c74
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r-- | resources/libraries/robot/lxc.robot | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/resources/libraries/robot/lxc.robot b/resources/libraries/robot/lxc.robot index b4dd1d117d..83bd5c1837 100644 --- a/resources/libraries/robot/lxc.robot +++ b/resources/libraries/robot/lxc.robot @@ -36,7 +36,7 @@ | | Import Library | resources.libraries.python.LXCUtils | | ... | container_name=${lxc_name} | WITH NAME | ${lxc_name} | | Run keyword | ${lxc_name}.Set node | ${dut_node} -| | Run keyword | ${lxc_name}.Container create | force_create=${TRUE} +| | Run keyword | ${lxc_name}.Create container | force_create=${TRUE} | | Run keyword | ${lxc_name}.Mount host dir in container | Create LXC container on DUT node with cpuset @@ -63,10 +63,11 @@ | | ... | ${dut1_if1} | ${dut1_if2} | | ${lxc_cpus}= | CPU list per node str | ${dut_node} | ${dut_numa} | | ... | skip_cnt=${skip} | cpu_cnt=${count} | smt_used=${False} +| | Set Suite Variable | ${lxc_cpus} | | Run keyword | ${lxc_name}.Set node | ${dut_node} -| | Run keyword | ${lxc_name}.Container create | force_create=${TRUE} +| | Run keyword | ${lxc_name}.Create container | force_create=${TRUE} | | Run keyword | ${lxc_name}.Mount host dir in container -| | Run keyword | ${lxc_name}.Container cpuset cpus | ${lxc_cpus} +| | Run keyword | ${lxc_name}.Container cpuset cpus | 0,${lxc_cpus} | Create '${nr}' LXC containers on '${dut}' node | | [Documentation] | Create and start multiple lxc containers on DUT node. @@ -136,7 +137,7 @@ | | Import Library | resources.libraries.python.LXCUtils | | ... | container_name=${lxc_name} | WITH NAME | ${lxc_name} | | Run keyword | ${lxc_name}.Set node | ${dut_node} -| | Run keyword | ${lxc_name}.Container destroy +| | Run keyword | ${lxc_name}.Destroy container | Destroy '${nr}' LXC containers on '${dut}' node | | [Documentation] | Stop and destroy multiple LXC containers on DUT node. @@ -223,6 +224,9 @@ | | Run keyword | ${lxc_name}_conf.Set node | ${dut_node} | | Run keyword | ${lxc_name}_conf.Add unix CLI listen | | Run keyword | ${lxc_name}_conf.Add unix nodaemon +| | Run keyword | ${lxc_name}_conf.Add unix exec | "/tmp/running.exec" +| | Run keyword | ${lxc_name}_conf.Add CPU main core | "0" +| | Run keyword | ${lxc_name}_conf.Add CPU corelist workers | ${lxc_cpus} | | Run keyword | ${lxc_name}_conf.Add plugin disable | "dpdk_plugin.so" | | Run Keyword | ${lxc_name}_conf.Apply config LXC | ${lxc_name} |