Update release note for Danube.3.2
[yardstick.git] / samples / ping-template.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Huawei Technologies Co.,Ltd 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 # Jinja2 Syntax is supported
13 # parameterize this task, {{packetsize}} is passed to the scenario as an argument
14 # If you don't pass the value for {{packetsize}} while starting a task,
15 # the default one will be used.
16
17
18 schema: "yardstick:task:0.1"
19 {% set packetsize = packetsize or "100" %}
20 scenarios:
21 -
22   type: Ping
23   options:
24     packetsize: {{packetsize}}
25   host: athena.demo
26   target: ares.demo
27
28   runner:
29     type: Duration
30     duration: 60
31     interval: 1
32
33   sla:
34     max_rtt: 10
35     action: monitor
36
37 context:
38   name: demo
39   image: cirros-0.3.5
40   flavor: yardstick-flavor
41   user: cirros
42
43   placement_groups:
44     pgrp1:
45       policy: "availability"
46
47   servers:
48     athena:
49       floating_ip: true
50       placement: "pgrp1"
51     ares:
52       placement: "pgrp1"
53
54   networks:
55     test:
56       cidr: '10.0.1.0/24'
57