samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_sriov_rfc2544_ipv4_128Kflows_13cores_4ports_256B_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-4port.yaml
21   nodes:
22     tg__0: trafficgen_1.yardstick
23     vnf__0: vnf.yardstick
24 # Required for enabling NFVi collection
25     cpt__0: sriov.yardstick
26   options:
27     framesize:
28       uplink: {256B: 100}
29       downlink: {256B: 100}
30     flow:
31       src_ip:
32         - '152.16.100.26-152.16.100.105'
33         - '152.16.101.26-152.16.101.105'
34       dst_ip:
35         - '152.16.40.26-152.16.40.105'
36         - '152.16.41.26-152.16.41.105'
37       src_port:
38         - '1234-1238'
39       dst_port:
40         - '2001-2004'
41       count: 128000
42     traffic_type: 4
43     rfc2544:
44       allowed_drop_rate: 0.0001 - 0.1
45     tg__0:
46       queues_per_port: 8
47     vnf__0:
48       nfvi_enable: True
49   runner:
50     type: Iteration
51     iterations: 10
52     interval: 35
53 contexts:
54    - name: yardstick
55      type: Node
56      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
57    - name: yardstick
58      type: Node
59      file: /etc/yardstick/nodes/standalone/pod_trex_4ports.yaml
60    - type: StandaloneSriov
61      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
62      name: yardstick
63      vm_deploy: True
64      flavor:
65        images: "/var/lib/libvirt/images/ubuntu_13cores.qcow2"
66        ram: 4096
67        hw_socket: 1
68        extra_specs:
69          hw:cpu_sockets: 1
70          hw:cpu_cores: 13
71          hw:cpu_threads: 1
72          cputune: "<cputune>
73     <vcpupin vcpu='0' cpuset='27'/>
74     <vcpupin vcpu='1' cpuset='28'/>
75     <vcpupin vcpu='2' cpuset='29'/>
76     <vcpupin vcpu='3' cpuset='30'/>
77     <vcpupin vcpu='4' cpuset='31'/>
78     <vcpupin vcpu='5' cpuset='32'/>
79     <vcpupin vcpu='6' cpuset='33'/>
80     <vcpupin vcpu='7' cpuset='34'/>
81     <vcpupin vcpu='8' cpuset='35'/>
82     <vcpupin vcpu='9' cpuset='36'/>
83     <vcpupin vcpu='10' cpuset='37'/>
84     <vcpupin vcpu='11' cpuset='38'/>
85     <vcpupin vcpu='12' cpuset='39'/>
86     <emulatorpin cpuset='27-39'/>
87                    </cputune>"
88        user: root
89        password: password
90      servers:
91        vnf:
92          network_ports:
93            mgmt:
94              ip: '10.166.31.252'
95              cidr: '10.166.31.252/28'
96            xe0:
97              - uplink_0
98            xe1:
99              - downlink_0
100            xe2:
101              - uplink_1
102            xe3:
103              - downlink_1
104      networks:
105        uplink_0:
106          phy_port: "0000:88:00.0"
107          vpci: "0000:00:07.0"
108          cidr: '152.16.100.19/24'
109          gateway_ip: '152.16.100.20'
110        downlink_0:
111          phy_port: "0000:d8:00.0"
112          vpci: "0000:00:08.0"
113          cidr: '152.16.40.19/24'
114          gateway_ip: '152.16.40.20'
115        uplink_1:
116          phy_port: "0000:81:00.0"
117          vpci: "0000:00:09.0"
118          cidr: '152.16.101.19/24'
119          gateway_ip: '152.16.101.20'
120        downlink_1:
121          phy_port: "0000:86:00.0"
122          vpci: "0000:00:0a.0"
123          cidr: '152.16.41.19/24'
124          gateway_ip: '152.16.41.20'
125