samples: Add generic L3 forwarder tests
[yardstick.git] / samples / vnf_samples / nsut / router / tc_sriov_rfc2544_ipv4_128Kflows_7cores_2ports_1280B_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     cpt__0: sriov.yardstick
25   options:
26     framesize:
27       uplink: {1280B: 100}
28       downlink: {1280B: 100}
29     flow:
30       src_ip:
31         - '152.16.100.26-152.16.100.105'
32       dst_ip:
33         - '152.16.40.26-152.16.40.105'
34       src_port:
35         - '1234-1238'
36       dst_port:
37         - '2001-2004'
38       count: 128000
39     traffic_type: 4
40     rfc2544:
41       allowed_drop_rate: 0.0001 - 0.1
42     tg__0:
43       queues_per_port: 4
44     vnf__0:
45       nfvi_enable: True
46   runner:
47     type: Iteration
48     iterations: 10
49     interval: 35
50 contexts:
51    - name: yardstick
52      type: Node
53      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
54
55    - name: yardstick
56      type: Node
57      file: /etc/yardstick/nodes/standalone/pod_trex.yaml
58
59    - name: yardstick
60      type: StandaloneSriov
61      file: /etc/yardstick/nodes/standalone/host_sriov.yaml
62
63      vm_deploy: True
64      flavor:
65        images: "/var/lib/libvirt/images/ubuntu.qcow2"
66        ram: 4096
67        extra_specs:
68          hw:cpu_sockets: 1
69          hw:cpu_cores: 7
70          hw:cpu_threads: 1
71        user: root
72        password: password
73      servers:
74        vnf:
75          network_ports:
76            mgmt:
77              ip: '192.168.18.185'
78              cidr: '192.168.18.185/30'
79            xe0:
80              - uplink_0
81            xe1:
82              - downlink_0
83      networks:
84        uplink_0:
85          phy_port: "0000:07:00.0"
86          vpci: "0000:00:07.0"
87          cidr: '152.16.100.19/24'
88          gateway_ip: '152.16.100.20'
89        downlink_0:
90          phy_port: "0000:07:00.1"
91          vpci: "0000:00:08.0"
92          cidr: '152.16.40.19/24'
93          gateway_ip: '152.16.40.20'