Add Testcase for Prox Standalone SRIOV.
[yardstick.git] / samples / ping-two-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 two existing network, one as public network to replace for
13 # floating ip, one as private network to ping between VMs.
14
15 schema: "yardstick:task:0.1"
16
17 {% set private_net = private_net or 'private' %}
18 {% set private_subnet = private_subnet or 'private_subnet' %}
19 {% set public_net = public_net or 'public' %}
20 {% set public_subnet = public_subnet or 'public_subnet' %}
21
22 scenarios:
23 -
24   type: Ping
25   options:
26     packetsize: 200
27   host: athena.demo
28   target: ares.demo
29
30   runner:
31     type: Duration
32     duration: 60
33     interval: 1
34
35   sla:
36     max_rtt: 10
37     action: monitor
38
39 context:
40   name: demo
41   image: yardstick-image
42   flavor: yardstick-flavor
43   user: ubuntu
44
45   servers:
46     athena:
47     ares:
48
49   networks:
50     {{ private_net }}:
51       net_flags:
52         is_existing: true
53       subnet: {{ private_subnet }}
54     {{ public_net }}:
55       net_flags:
56         is_existing: true
57         is_public: true
58       subnet: {{ public_subnet }}