Merge "Do not start collectd twice when SampleVNF is running on Baremetal"
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc009.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Ericsson AB 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 TC009 config file;
14     Measure network throughput and packet loss using pktgen;
15     Different amounts of flows are tested with, from 2 up to 1001000;
16     All tests are run 10 times each. First 10 times with the least
17     amount of ports, then 10 times with the next amount of ports,
18     and so on until all packet sizes have been run with;
19
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 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
26 -
27   type: Pktgen
28   options:
29     packetsize: 64
30     number_of_ports: {{num_ports}}
31     duration: 20
32
33   host: demeter.yardstick-TC009
34   target: poseidon.yardstick-TC009
35
36   runner:
37     type: Iteration
38     iterations: 10
39     interval: 1
40
41   sla:
42     max_ppm: 1000
43     action: monitor
44 {% endfor %}
45
46 context:
47   name: yardstick-TC009
48   image: yardstick-image
49   flavor: yardstick-flavor
50   user: ubuntu
51
52   placement_groups:
53     pgrp1:
54       policy: "availability"
55
56   servers:
57     demeter:
58       floating_ip: true
59       placement: "pgrp1"
60     poseidon:
61       floating_ip: true
62       placement: "pgrp1"
63
64   networks:
65     test:
66       cidr: '10.0.1.0/24'
67       {% if provider == "vlan" %}
68       provider: {{provider}}
69       physical_network: {{physical_network}}
70         {% if segmentation_id %}
71       segmentation_id: {{segmentation_id}}
72         {% endif %}
73       {% endif %}