tc063: make node parameter can be pass
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc012.yaml
1 ##############################################################################
2 # Copyright (c) 2017 kristian.hunt@gmail.com 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 TC012 config file;
14     Measure memory read and write bandwidth using lmbench.
15
16 {% set provider = provider or none %}
17 {% set physical_network = physical_network or 'physnet1' %}
18 {% set segmentation_id = segmentation_id or none %}
19
20 scenarios:
21 -
22   type: Lmbench
23   options:
24     test_type: "bandwidth"
25     size: 10240
26     benchmark: "rdwr"
27     warmup: 0
28
29   host: demeter.demo
30
31   runner:
32     type: Iteration
33     iterations: 10
34     interval: 1
35
36   sla:
37     min_bandwidth: 15000
38     action: monitor
39
40 context:
41   name: demo
42   image: yardstick-image
43   flavor: yardstick-flavor
44   user: ubuntu
45
46   servers:
47     demeter:
48       floating_ip: true
49
50   networks:
51     test:
52       cidr: '10.0.1.0/24'
53       {% if provider == "vlan" %}
54       provider: {{provider}}
55       physical_network: {{physical_network}}
56         {% if segmentation_id %}
57       segmentation_id: {{segmentation_id}}
58         {% endif %}
59       {% endif %}
60