Merge "Configure n_rxq DPDK port option when adding the port"
[yardstick.git] / samples / ping-security-group.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 ping test case using custom security group
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   security_group:
41     rules:
42       - remote_ip_prefix: "0.0.0.0/0"
43         protocol: "tcp"
44         port_range_min: 1
45         port_range_max: 65535
46       - remote_ip_prefix: "0.0.0.0/0"
47         protocol: "udp"
48         port_range_min: 1
49         port_range_max: 65535
50       - remote_ip_prefix: "0.0.0.0/0"
51         protocol: "icmp"
52
53   placement_groups:
54     pgrp1:
55       policy: "availability"
56
57   servers:
58     athena:
59       floating_ip: true
60       placement: "pgrp1"
61     ares:
62       placement: "pgrp1"
63
64
65   networks:
66     test:
67       cidr: '10.0.1.0/24'
68       {% if provider == "vlan" %}
69       provider: {{provider}}
70       physical_network: {{physical_network}}
71         {% if segmentation_id %}
72       segmentation_id: {{segmentation_id}}
73         {% endif %}
74       {% endif %}