Add Testcase for Prox Standalone OvS-DPDK.
[yardstick.git] / samples / ping-mixed-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 test case sample uses existing network to be public network,
13 # and also create the private network by heat like normal ping.
14
15 schema: "yardstick:task:0.1"
16
17 {% set public_net = public_net or 'public' %}
18 {% set public_subnet = public_subnet or 'public_subnet' %}
19 {% set provider = provider or none %}
20 {% set physical_network = physical_network or 'physnet1' %}
21 {% set segmentation_id = segmentation_id or none %}
22
23 scenarios:
24 -
25   type: Ping
26   options:
27     packetsize: 200
28   host: athena.demo
29   target: ares.demo
30
31   runner:
32     type: Duration
33     duration: 60
34     interval: 1
35
36   sla:
37     max_rtt: 10
38     action: monitor
39
40 context:
41   name: demo
42   image: yardstick-image
43   flavor: yardstick-flavor
44   user: ubuntu
45
46   servers:
47     athena:
48     ares:
49
50   networks:
51     test:
52       cidr: '10.0.1.0/24'
53       {% if provider == "vlan" %}
54       provider: {{provider}}
55       physical_network: {{physical_network}}
56         {% if segmentation_id %}
57       segmentation_id: {{segmentation_id}}
58         {% endif %}
59       {% endif %}
60
61     {{ public_net }}:
62       net_flags:
63         is_existing: true
64         is_public: true
65       subnet: {{ public_subnet }}