samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_ovs_rfc2544_ipv4_128Kflows_7cores_2ports_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.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: {256B: 100}
29       downlink: {256B: 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        ram:
70          socket_0: 2048
71          socket_1: 2048
72        queues: 4
73        vpath: "/usr/local"
74
75      flavor:
76        images: "/var/lib/libvirt/images/ubuntu.qcow2"
77        ram: 4096
78        extra_specs:
79          hw:cpu_sockets: 1
80          hw:cpu_cores: 7
81          hw:cpu_threads: 1
82        user: "root"
83        password: "password"
84      servers:
85        vnf:
86          network_ports:
87            mgmt:
88              ip: '10.166.31.252'
89              cidr: '10.166.31.252/28'
90            xe0:
91              - uplink_0
92            xe1:
93              - downlink_0
94      networks:
95        uplink_0:
96          port_num: 0
97          phy_port: "0000:1a:00.0"
98          vpci: "0000:00:07.0"
99          cidr: '152.16.100.19/24'
100          gateway_ip: '152.16.100.20'
101        downlink_0:
102          port_num: 1
103          phy_port: "0000:18:00.0"
104          vpci: "0000:00:08.0"
105          cidr: '152.16.40.19/24'
106          gateway_ip: '152.16.100.20'