samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_sriov_rfc2544_ipv4_128Kflows_9cores_4ports_1518B_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: {1518B: 100}
29       downlink: {1518B: 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_9cores.qcow2"
66        ram: 4096
67        hw_socket: 1
68        extra_specs:
69          hw:cpu_sockets: 1
70          hw:cpu_cores: 9
71          hw:cpu_threads: 1
72          cputune: "<cputune>
73     <vcpupin vcpu='0' cpuset='31'/>
74     <vcpupin vcpu='1' cpuset='32'/>
75     <vcpupin vcpu='2' cpuset='33'/>
76     <vcpupin vcpu='3' cpuset='34'/>
77     <vcpupin vcpu='4' cpuset='35'/>
78     <vcpupin vcpu='5' cpuset='36'/>
79     <vcpupin vcpu='6' cpuset='37'/>
80     <vcpupin vcpu='7' cpuset='38'/>
81     <vcpupin vcpu='8' cpuset='39'/>
82     <emulatorpin cpuset='31-39'/>
83                    </cputune>"
84        user: root
85        password: password
86      servers:
87        vnf:
88          network_ports:
89            mgmt:
90              ip: '10.166.31.252'
91              cidr: '10.166.31.252/28'
92            xe0:
93              - uplink_0
94            xe1:
95              - downlink_0
96            xe2:
97              - uplink_1
98            xe3:
99              - downlink_1
100      networks:
101        uplink_0:
102          phy_port: "0000:88:00.0"
103          vpci: "0000:00:07.0"
104          cidr: '152.16.100.19/24'
105          gateway_ip: '152.16.100.20'
106        downlink_0:
107          phy_port: "0000:d8:00.0"
108          vpci: "0000:00:08.0"
109          cidr: '152.16.40.19/24'
110          gateway_ip: '152.16.40.20'
111        uplink_1:
112          phy_port: "0000:81:00.0"
113          vpci: "0000:00:09.0"
114          cidr: '152.16.101.19/24'
115          gateway_ip: '152.16.101.20'
116        downlink_1:
117          phy_port: "0000:86:00.0"
118          vpci: "0000:00:0a.0"
119          cidr: '152.16.41.19/24'
120          gateway_ip: '152.16.41.20'
121