Merge "Add send socket commands function"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc011.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
11 schema: "yardstick:task:0.1"
12 description: >
13     Yardstick TC011 config file;
14     Measure packet delay variation (jitter) using iperf3.
15
16 {% set protocol = protocol or "udp" %}
17 {% set bandwidth = bandwidth or "20m" %}
18 {% set length = length or "8K" %}
19 {% set window = window or 29200 %}
20 {% set provider = provider or none %}
21 {% set physical_network = physical_network or 'physnet1' %}
22 {% set segmentation_id = segmentation_id or none %}
23
24 scenarios:
25 -
26   type: Iperf3
27   options:
28     protocol: {{protocol}}
29     bandwidth: {{bandwidth}}
30     length: {{length}}
31     window: {{window}}
32   host: zeus.demo
33   target: hera.demo
34
35   runner:
36     type: Duration
37     duration: 30
38
39   sla:
40     jitter: 10
41     action: monitor
42
43 context:
44   name: demo
45   image: yardstick-image
46   flavor: yardstick-flavor
47   user: ubuntu
48
49   placement_groups:
50     pgrp1:
51       policy: "availability"
52
53   servers:
54     zeus:
55       floating_ip: true
56       placement: "pgrp1"
57     hera:
58       floating_ip: true
59       placement: "pgrp1"
60
61   networks:
62     test:
63       cidr: '10.0.1.0/24'
64       {% if provider == "vlan" or provider == "sriov" %}
65       provider: {{provider}}
66       physical_network: {{physical_network}}
67         {% if segmentation_id %}
68       segmentation_id: {{segmentation_id}}
69         {% endif %}
70       {% endif %}