samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_sriov_rfc2544_ipv4_128Kflows_13cores_6ports_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-3.yaml
20   topology: router-tg-topology-6port.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         - '152.16.102.26-152.16.102.105'
35       dst_ip:
36         - '152.16.40.26-152.16.40.105'
37         - '152.16.41.26-152.16.41.105'
38         - '152.16.42.26-152.16.42.105'
39       src_port:
40         - '1234-1238'
41       dst_port:
42         - '2001-2004'
43       count: 128000
44     traffic_type: 4
45     rfc2544:
46       allowed_drop_rate: 0.0001 - 0.1
47     tg__0:
48       queues_per_port: 8
49     vnf__0:
50       nfvi_enable: True
51   runner:
52     type: Iteration
53     iterations: 10
54     interval: 35
55 contexts:
56    - name: yardstick
57      type: Node
58      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
59    - name: yardstick
60      type: Node
61      file: /etc/yardstick/nodes/standalone/pod_trex_6ports.yaml
62    - type: StandaloneSriov
63      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
64      name: yardstick
65      vm_deploy: True
66      flavor:
67        images: "/var/lib/libvirt/images/ubuntu_13cores.qcow2"
68        ram: 4096
69        hw_socket: 1
70        extra_specs:
71          hw:cpu_sockets: 1
72          hw:cpu_cores: 13
73          hw:cpu_threads: 1
74          cputune: "<cputune>
75     <vcpupin vcpu='0' cpuset='27'/>
76     <vcpupin vcpu='1' cpuset='28'/>
77     <vcpupin vcpu='2' cpuset='29'/>
78     <vcpupin vcpu='3' cpuset='30'/>
79     <vcpupin vcpu='4' cpuset='31'/>
80     <vcpupin vcpu='5' cpuset='32'/>
81     <vcpupin vcpu='6' cpuset='33'/>
82     <vcpupin vcpu='7' cpuset='34'/>
83     <vcpupin vcpu='8' cpuset='35'/>
84     <vcpupin vcpu='9' cpuset='36'/>
85     <vcpupin vcpu='10' cpuset='37'/>
86     <vcpupin vcpu='11' cpuset='38'/>
87     <vcpupin vcpu='12' cpuset='39'/>
88     <emulatorpin cpuset='27-39'/>
89                    </cputune>"
90        user: root
91        password: password
92      servers:
93        vnf:
94          network_ports:
95            mgmt:
96              ip: '10.166.31.252'
97              cidr: '10.166.31.252/28'
98            xe0:
99              - uplink_0
100            xe1:
101              - downlink_0
102            xe2:
103              - uplink_1
104            xe3:
105              - downlink_1
106            xe4:
107              - uplink_2
108            xe5:
109              - downlink_2
110      networks:
111        uplink_0:
112          phy_port: "0000:88:00.0"
113          vpci: "0000:00:07.0"
114          cidr: '152.16.100.19/24'
115          gateway_ip: '152.16.100.20'
116        downlink_0:
117          phy_port: "0000:d8:00.0"
118          vpci: "0000:00:08.0"
119          cidr: '152.16.40.19/24'
120          gateway_ip: '152.16.40.20'
121        uplink_1:
122          phy_port: "0000:81:00.0"
123          vpci: "0000:00:09.0"
124          cidr: '152.16.101.19/24'
125          gateway_ip: '152.16.101.20'
126        downlink_1:
127          phy_port: "0000:81:00.1"
128          vpci: "0000:00:0a.0"
129          cidr: '152.16.41.19/24'
130          gateway_ip: '152.16.41.20'
131        uplink_2:
132          phy_port: "0000:86:00.0"
133          vpci: "0000:00:0b.0"
134          cidr: '152.16.102.19/24'
135          gateway_ip: '152.16.102.20'
136        downlink_2:
137          phy_port: "0000:86:00.1"
138          vpci: "0000:00:0c.0"
139          cidr: '152.16.42.19/24'
140          gateway_ip: '152.16.42.20'
141