Yardsitck Gambia Release 7.2.0 release notes.
[yardstick.git] / samples / ping-one-exising-network.yaml
1 ##############################################################################
2 ## Copyright (c) 2018 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 # This sample use one existing network as both public network and private network.
13
14 schema: "yardstick:task:0.1"
15
16 {% set public_net = public_net or 'public' %}
17 {% set public_subnet = public_subnet or 'public_subnet' %}
18
19 scenarios:
20 -
21   type: Ping
22   options:
23     packetsize: 200
24   host: athena.demo
25   target: ares.demo
26
27   runner:
28     type: Duration
29     duration: 60
30     interval: 1
31
32   sla:
33     max_rtt: 10
34     action: monitor
35
36 context:
37   name: demo
38   image: yardstick-image
39   flavor: yardstick-flavor
40   user: ubuntu
41
42   servers:
43     athena:
44     ares:
45
46   networks:
47     {{ public_net }}:
48       net_flags:
49         is_existing: true
50       subnet: {{ public_subnet }}