X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Fvm.robot;h=bdb1964bd30b74117958fb926f330c4799a29629;hp=c6e5373c8b2c4d2bcce737c7b64fd0e7d02bd9a8;hb=d68951ac245150eeefa6e0f4156e4c1b5c9e9325;hpb=ed0258a440cfad7023d643f717ab78ac568dc59b diff --git a/resources/libraries/robot/shared/vm.robot b/resources/libraries/robot/shared/vm.robot index c6e5373c8b..bdb1964bd3 100644 --- a/resources/libraries/robot/shared/vm.robot +++ b/resources/libraries/robot/shared/vm.robot @@ -21,7 +21,7 @@ | | [Documentation] | | ... | Start 1..N chains of 1..N QEMU guests (VNFs) with two vhost-user\ | | ... | interfaces and interconnecting NF. -| | ... +| | | | ... | *Arguments:* | | ... | - nf_chains - Number of chains of NFs. Type: integer | | ... | - nf_nodes - Number of NFs nodes per chain. Type: integer @@ -34,16 +34,16 @@ | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean | | ... | - vnf - Network function as a payload. Type: string | | ... | - pinning - Whether to pin QEMU VMs to specific cores -| | ... +| | | | ... | *Example:* -| | ... +| | | | ... | \| Configure chains of VMs connected via vhost-user | | ... | \| 1 \| 1 \| False \| 1024 \| False \| False \| vpp \| True \| -| | ... +| | | | [Arguments] | ${nf_chains}=${1} | ${nf_nodes}=${1} | ${jumbo}=${False} | | ... | ${perf_qemu_qsz}=${1024} | ${use_tuned_cfs}=${False} | | ... | ${auto_scale}=${True} | ${vnf}=vpp | ${pinning}=${True} -| | ... +| | | | Import Library | resources.libraries.python.QemuManager | ${nodes} | | ... | WITH NAME | vnf_manager | | Run Keyword | vnf_manager.Construct VMs on all nodes @@ -61,7 +61,7 @@ | | [Documentation] | | ... | Start 1..N chains of 1..N QEMU guests (VNFs) with two vhost-user\ | | ... | interfaces and interconnecting NF on single DUT node. -| | ... +| | | | ... | *Arguments:* | | ... | - node - DUT node. Type: dictionary | | ... | - nf_chains - Number of chains of NFs. Type: integer @@ -75,18 +75,18 @@ | | ... | in containers as vswitch, otherwise use single RXQ. Type: boolean | | ... | - vnf - Network function as a payload. Type: string | | ... | - pinning - Whether to pin QEMU VMs to specific cores -| | ... +| | | | ... | *Example:* -| | ... +| | | | ... | \| Configure chains of NFs connected via vhost-user on single node | | ... | \| DUT1 \| 1 \| 1 \| False \| 1024 \| False \| False \| vpp \| | | ... | True \| -| | ... +| | | | [Arguments] | ${node} | ${nf_chains}=${1} | ${nf_nodes}=${1} | | ... | ${jumbo}=${False} | ${perf_qemu_qsz}=${1024} | | ... | ${use_tuned_cfs}=${False} | ${auto_scale}=${True} | ${vnf}=vpp | | ... | ${pinning}=${True} -| | ... +| | | | Import Library | resources.libraries.python.QemuManager | ${nodes} | | ... | WITH NAME | vnf_manager | | Run Keyword | vnf_manager.Initialize