Merge "Make security group configurable - dovetail" into stable/fraser
[yardstick.git] / samples / ping.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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 # Sample benchmark task config file
11 # measure network latency using ping
12
13 schema: "yardstick:task:0.1"
14
15 {% set provider = provider or none %}
16 {% set physical_network = physical_network or 'physnet1' %}
17 {% set segmentation_id = segmentation_id or none %}
18 scenarios:
19 -
20   type: Ping
21   options:
22     packetsize: 200
23   host: athena.demo
24   target: ares.demo
25
26   runner:
27     type: Duration
28     duration: 60
29     interval: 1
30
31   sla:
32     max_rtt: 10
33     action: monitor
34
35 context:
36   name: demo
37   image: yardstick-image
38   flavor: yardstick-flavor
39   user: ubuntu
40
41   placement_groups:
42     pgrp1:
43       policy: "availability"
44
45   servers:
46     athena:
47       floating_ip: true
48       placement: "pgrp1"
49     ares:
50       placement: "pgrp1"
51
52   networks:
53     test:
54       cidr: '10.0.1.0/24'
55       {% if provider == "vlan" %}
56       provider: {{provider}}
57       physical_network: {{physical_network}}
58         {% if segmentation_id %}
59       segmentation_id: {{segmentation_id}}
60         {% endif %}
61       {% endif %}