tc063: make node parameter can be pass
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc008.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 TC008 config file;
14     Measure network throughput and packet loss using Pktgen;
15     Different amount of flows, from 2 up to 1001000, in combination
16     with different packet sizes are run in each test.
17     Each combination of packet size and flow amount is run 10 times.
18     First 10 times with the smallest packet size, starting with the
19     least amount of ports/flows, then next amount of ports with same
20     packet size, and so on. The test sequence continues with the next
21     packet size, with same ports/flows sequence as before.
22
23 {% set provider = provider or none %}
24 {% set physical_network = physical_network or 'physnet1' %}
25 {% set segmentation_id = segmentation_id or none %}
26
27 scenarios:
28 {% for pkt_size in [64, 128, 256, 512, 1024, 1280, 1518] %}
29   {% for num_ports in [1, 10, 50, 100, 500, 1000] %}
30 -
31   type: Pktgen
32   options:
33     packetsize: {{pkt_size}}
34     number_of_ports: {{num_ports}}
35     duration: 20
36     # choose vnic name: default to eth0
37     # vnic_name: 'ens3'
38     # turn on multiqueue inside VM
39     # multiqueue: True
40     # choose starting pps: default 1M;
41     # works with binary search runner Dynamictp to find max throughput per sla
42     # pps: 3000000
43
44   host: demeter.yardstick-TC008
45   target: poseidon.yardstick-TC008
46
47   runner:
48     type: Iteration
49     # binary search runner
50     # type: Dynamictp
51     iterations: 10
52     interval: 1
53
54   sla:
55     max_ppm: 1000
56     action: monitor
57   {% endfor %}
58 {% endfor %}
59
60 context:
61   name: yardstick-TC008
62   image: yardstick-image
63   flavor: yardstick-flavor
64   user: ubuntu
65
66   placement_groups:
67     pgrp1:
68       policy: "availability"
69
70   servers:
71     demeter:
72       floating_ip: true
73       placement: "pgrp1"
74     poseidon:
75       floating_ip: true
76       placement: "pgrp1"
77
78   networks:
79     test:
80       cidr: '10.0.1.0/24'
81       {% if provider == "vlan" %}
82       provider: {{provider}}
83       physical_network: {{physical_network}}
84         {% if segmentation_id %}
85       segmentation_id: {{segmentation_id}}
86         {% endif %}
87       {% endif %}
88     #test-sriov:
89       #cidr: '10.0.1.0/24'
90       #provider: "sriov"