samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_ovs_rfc2544_ipv4_128Kflows_5cores_2ports_512B_trex.yaml
1 # Copyright (c) 2016-2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 schema: yardstick:task:0.1
17 scenarios:
18 - type: NSPerf
19   traffic_profile: ../../traffic_profiles/ipv4_throughput.yaml
20   topology: router-tg-topology.yaml
21   nodes:
22     tg__0: trafficgen_1.yardstick
23     vnf__0: vnf.yardstick
24 # Required for enabling NFVi collection
25     cpt__0: ovs_dpdk.yardstick
26   options:
27     framesize:
28       uplink: {512B: 100}
29       downlink: {512B: 100}
30     flow:
31       src_ip:
32         - '152.16.100.26-152.16.100.105'
33       dst_ip:
34         - '152.16.40.26-152.16.40.105'
35       src_port:
36         - '1234-1238'
37       dst_port:
38         - '2001-2004'
39       count: 128000
40     traffic_type: 4
41     rfc2544:
42       allowed_drop_rate: 0.0001 - 0.1
43     tg__0:
44       queues_per_port: 7
45     vnf__0:
46       nfvi_enable: True
47   runner:
48     type: Iteration
49     iterations: 10
50     interval: 35
51 contexts:
52    - name: yardstick
53      type: Node
54      file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
55
56    - name: yardstick
57      type: Node
58      file: /etc/yardstick/nodes/standalone/pod_trex.yaml
59
60    - name: yardstick
61      type: StandaloneOvsDpdk
62      file: /etc/yardstick/nodes/standalone/pod_ovs.yaml
63      vm_deploy: True
64      ovs_properties:
65        version:
66          ovs: 2.7.0
67          dpdk: 16.11.1
68        pmd_threads: 4
69        # override pmd_threads to use specific cpus
70        pmd_cpu_mask: "0x78"
71        lcore_mask: "0x4"
72        ram:
73          socket_0: 2048
74          socket_1: 2048
75        queues: 4
76        vpath: "/usr/local"
77
78      flavor:
79        images: "/var/lib/libvirt/images/ubuntu_5cores.qcow2"
80        ram: 4096
81        extra_specs:
82          hw:cpu_sockets: 1
83          hw:cpu_cores: 5
84          hw:cpu_threads: 1
85          cputune: "<cputune>
86     <vcpupin vcpu='0' cpuset='11'/>
87     <vcpupin vcpu='1' cpuset='12'/>
88     <vcpupin vcpu='2' cpuset='13'/>
89     <vcpupin vcpu='3' cpuset='14'/>
90     <vcpupin vcpu='4' cpuset='15'/>
91                    </cputune>"
92        user: "root"
93        password: "password"
94      servers:
95        vnf:
96          network_ports:
97            mgmt:
98              ip: '10.166.31.252'
99              cidr: '10.166.31.252/28'
100            xe0:
101              - uplink_0
102            xe1:
103              - downlink_0
104      networks:
105        uplink_0:
106          port_num: 0
107          phy_port: "0000:1a:00.0"
108          vpci: "0000:00:07.0"
109          cidr: '152.16.100.19/24'
110          gateway_ip: '152.16.100.20'
111        downlink_0:
112          port_num: 1
113          phy_port: "0000:18:00.0"
114          vpci: "0000:00:08.0"
115          cidr: '152.16.40.19/24'
116          gateway_ip: '152.16.100.20'