Merge "conf:Traffic-type naming convention and consistency"
[vswitchperf.git] / yardstick / tests / rfc2544_back2back_dummy.yaml
1 # Copyright 2016 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 # VSPERF specific configuration file for execution of RFC2544 back2back
16 # traffic.
17 # This test uses a dummy traffic generator, which does not execute a real
18 # traffic. The purpose of this test is to demonstrate vsperf execution
19 # by yardstick environment. Provided 'test_params' option can modified
20 # to use a real traffic generator.
21 # Details about supported test options and test case execution can be
22 # found in VSPERF documentation:
23 #
24 #   http://artifacts.opnfv.org/vswitchperf/docs/userguide/yardstick.html
25
26 schema: "yardstick:task:0.1"
27
28 scenarios:
29 -
30   type: Vsperf
31   options:
32     testname: 'rfc2544_back2back'
33     traffic_type: 'back2back'
34     frame_size: '64'
35     bidirectional: 'True'
36     iload: 100
37     test_params: 'TRAFFICGEN="Dummy";
38         TRAFFICGEN_DUMMY_RESULTS={
39             "b2b frames":"10000",
40             "b2b frame loss %":"0.0"}'
41
42   host: vsperf.demo
43
44   runner:
45     type: Sequence
46     scenario_option_name: frame_size
47     sequence:
48     - 64
49     - 128
50     - 512
51     - 1024
52     - 1518
53   sla:
54     # The throughput SLA (or any other SLA) cannot be set to a meaningful
55     # value without knowledge of the server and networking environment,
56     # possibly including prior testing in that environment to establish
57     # a baseline SLA level under well-understood circumstances.
58     metrics: 'b2b_frames'
59     b2b_frames: 1
60     action: monitor
61
62 context:
63   name: demo
64   image: vsperf
65   flavor: vsperf-flavor
66   user: ubuntu
67
68   placement_groups:
69     pgrp1:
70       policy: "availability"
71
72   servers:
73     vsperf:
74       floating_ip: true
75       placement: "pgrp1"
76
77   networks:
78     test:
79       cidr: '10.0.0.0/24'