Merge "Tools: Improve Stability."
[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     frame_size: '64'
34     test_params: 'TRAFFICGEN="Dummy";
35         TRAFFIC={
36             "traffic_type":"rfc2544_back2back"
37         };
38         TRAFFICGEN_DUMMY_RESULTS={
39             "b2b frames":"10000",
40             "b2b frame loss %":"0.0",
41         }'
42
43   host: vsperf.demo
44
45   runner:
46     type: Sequence
47     scenario_option_name: frame_size
48     sequence:
49     - 64
50     - 128
51     - 512
52     - 1024
53     - 1518
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     metrics: 'b2b_frames'
60     b2b_frames: 1
61     action: monitor
62
63 context:
64   name: demo
65   image: vsperf
66   flavor: vsperf-flavor
67   user: ubuntu
68
69   placement_groups:
70     pgrp1:
71       policy: "availability"
72
73   servers:
74     vsperf:
75       floating_ip: true
76       placement: "pgrp1"
77
78   networks:
79     test:
80       cidr: '10.0.0.0/24'