Merge "Replace nova delete keypair with shade client."
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc001.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 TC001 config file;
14     Measure network throughput using pktgen;
15     Different amounts of flows are tested with, from 2 up to 1001000;
16     All tests are run twice. First twice with the least amount of ports and further on.
17
18 {% set provider = provider or none %}
19 {% set physical_network = physical_network or 'physnet1' %}
20 {% set segmentation_id = segmentation_id or none %}
21
22 scenarios:
23 {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
24 -
25   type: Pktgen
26   options:
27     packetsize: 64
28     number_of_ports: {{num_ports}}
29     duration: 20
30
31   host: demeter.yardstick
32   target: poseidon.yardstick
33
34   runner:
35     type: Iteration
36     iterations: 2
37     interval: 1
38
39   sla:
40     max_ppm: 1000
41     action: monitor
42 {% endfor %}
43
44 context:
45   name: yardstick
46   image: yardstick-image
47   flavor: yardstick-flavor
48   user: ubuntu
49
50   placement_groups:
51     pgrp1:
52       policy: "availability"
53
54   servers:
55     demeter:
56       floating_ip: true
57       placement: "pgrp1"
58     poseidon:
59       floating_ip: true
60       placement: "pgrp1"
61
62   networks:
63     test:
64       cidr: '10.0.1.0/24'
65       {% if provider == "vlan" %}
66       provider: {{provider}}
67       physical_network: {{physical_network}}
68         {% if segmentation_id %}
69       segmentation_id: {{segmentation_id}}
70         {% endif %}
71       {% endif %}