improve tc002 to make packet size parameterize
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc002.yaml
1 ##############################################################################
2 # Copyright (c) 2017 kristian.hunt@gmail.com and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC002 config file;
14     measure network latency using ping;
15
16 {% set image = image or "cirros-0.3.5" %}
17
18 {% set provider = provider or none %}
19 {% set physical_network = physical_network or 'physnet1' %}
20 {% set segmentation_id = segmentation_id or none %}
21 {% set packetsize = packetsize or 100 %}
22
23 scenarios:
24 {% for i in range(2) %}
25 -
26   type: Ping
27   options:
28     packetsize: {{packetsize}}
29   host: athena.demo
30   target: ares.demo
31
32   runner:
33     type: Duration
34     duration: 60
35     interval: 10
36
37   sla:
38     max_rtt: 10
39     action: monitor
40 {% endfor %}
41
42 context:
43   name: demo
44   image: {{image}}
45   flavor: yardstick-flavor
46   user: cirros
47
48   placement_groups:
49     pgrp1:
50       policy: "availability"
51
52   servers:
53     athena:
54       floating_ip: true
55       placement: "pgrp1"
56     ares:
57       placement: "pgrp1"
58
59   networks:
60     test:
61       cidr: '10.0.1.0/24'
62       {% if provider == "vlan" %}
63       provider: {{provider}}
64       physical_network: {{physical_network}}
65         {% if segmentation_id %}
66       segmentation_id: {{segmentation_id}}
67         {% endif %}
68       {% endif %}