Merge "Improve OVS-DPDK boot process"
[yardstick.git] / samples / MoongenTestPMD.yaml
1 # Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at
5 #
6 #   http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 # VSPERF specific configuration file for execution of RFC2544 throughput
15 # traffic. Traffic executed by traffic generator is forwarded directly
16 # between interfaces connected to the traffic generator. So test will only
17 # benchmark the performance of OVS external bridge at controller node.
18 # Details about supported test options and test case execution can be
19 # found in VSPERF documentation:
20 #
21 #   http://artifacts.opnfv.org/vswitchperf/docs/userguide/yardstick.html
22
23 schema: "yardstick:task:0.1"
24
25 scenarios:
26 {% for multistream in [1, 1000] %}
27 -
28   type: MoongenTestPMD
29   options:
30     multistream: {{multistream}}
31     frame_size: 1024
32     testpmd_queue: 2
33     trafficgen_port1: 'ens5'
34     trafficgen_port2: 'ens6'
35     moongen_host_user: 'root'
36     moongen_host_passwd: 'root'
37     moongen_host_ip: '192.168.37.2'
38     moongen_dir: '/home/lua-trafficgen'
39     moongen_runBidirec: 'true'
40     Package_Loss: 0
41     SearchRuntime: 60
42     moongen_port1_mac: '88:cf:98:2f:4d:ed'
43     moongen_port2_mac: '88:cf:98:2f:4d:ee'
44     forward_type: 'testpmd'
45
46   host: testpmd.demo
47
48   runner:
49     type: Sequence
50     scenario_option_name: frame_size
51     sequence:
52     - 64
53
54   sla:
55     # The throughput SLA (or any other SLA) cannot be set to a meaningful
56     # value without knowledge of the server and networking environment,
57     # possibly including prior testing in that environment to establish
58     # a baseline SLA level under well-understood circumstances.
59     throughput_rx_mpps: 0.5
60 {% endfor %}
61
62 context:
63   name: demo
64   #image: yardstick-image
65   image: yardstick-nsb-image
66   flavor:
67     vcpus: 10
68     ram: 20480
69     disk: 6
70     extra_specs:
71       hw:mem_page_size: "1GB"
72       hw:cpu_policy: "dedicated"
73       hw:vif_multiqueue_enabled: "true"
74   user: ubuntu
75
76   placement_groups:
77     pgrp1:
78       policy: "availability"
79
80   servers:
81     testpmd:
82       floating_ip: true
83       placement: "pgrp1"
84
85   networks:
86     test:
87       cidr: '10.0.1.0/24'
88       provider: "sriov"
89       physical_network: "sriov2"
90       segmentation_id: "1063"
91     test2:
92       cidr: '10.0.2.0/24'
93       gateway_ip: 'null'
94       provider: "sriov"
95       physical_network: "sriov2"
96       segmentation_id: "1061"
97       #port_security_enabled: False
98       enable_dhcp: 'false'
99     test3:
100       cidr: '10.0.3.0/24'
101       provider: "sriov"
102       physical_network: "sriov2"
103       segmentation_id: "1062"
104       gateway_ip: 'null'
105       #port_security_enabled: False
106       enable_dhcp: 'false'