Merge "Bugfix: Error when using API(v1) to run test suite"
[yardstick.git] / samples / vnf_samples / nsut / acl / tc_heat_rfc2544_ipv4_1rule_1flow_64B_bottlenecks_scale_out.yaml
1 # Copyright (c) 2017 Intel Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 ---
16 schema: yardstick:task:0.1
17
18 {% set num_vnfs = num_vnfs or 2 %}
19 {% set image_name = image_name or "yardstick-samplevnfs" %}
20 {% set cpu_num = cpu_num or 10 %}
21 {% set ram_num = ram_num or 10240 %}
22 {% set disk_num = disk_num or 7 %}
23
24 scenarios:
25   - type: NSPerf
26     traffic_profile: ../../traffic_profiles/ipv4_throughput-{{ num_vnfs }}.yaml
27     topology: acl-tg-topology-3node-{{ num_vnfs }}.yaml
28     nodes:
29       tg__0: tg_0.yardstick
30       tg__1: tg_1.yardstick
31 {% for vnf_num in range(num_vnfs|int) %}
32       vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
33 {% endfor %}
34     options:
35       framesize:
36         uplink: {64B: 100}
37         downlink: {64B: 100}
38       flow:
39         src_ip:
40 {% for vnf_num in range(num_vnfs|int) %}
41           - {'tg__0': 'xe{{ vnf_num }}'}
42 {% endfor %}
43         dst_ip:
44 {% for vnf_num in range(num_vnfs|int) %}
45           - {'tg__1': 'xe{{ vnf_num }}'}
46 {% endfor %}
47         count: 1
48       traffic_type: 4
49       rfc2544:
50         allowed_drop_rate: 0.0001 - 0.0001
51         correlated_traffic: true
52 {% for vnf_num in range(num_vnfs|int) %}
53       vnf__{{ vnf_num }}:
54         rules: acl_1rule.yaml
55         vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
56 {% endfor %}
57     runner:
58       type: Iteration
59       iterations: 10
60       interval: 35
61 context:
62   name: yardstick
63   image: {{ image_name }}
64   flavor:
65     vcpus: {{ cpu_num }}
66     ram: {{ ram_num }}
67     disk: {{ disk_num }}
68     extra_specs:
69       hw:cpu_sockets: 1
70       hw:cpu_cores: {{ cpu_num }}
71       hw:cpu_threads: 1
72   user: ubuntu
73   placement_groups:
74     pgrp1:
75       policy: "availability"
76   servers:
77     tg_0:
78       floating_ip: true
79       placement: "pgrp1"
80       network_ports:
81         mgmt:
82           - mgmt
83 {% for vnf_num in range(num_vnfs|int) %}
84         uplink_{{ vnf_num }}:
85           - xe{{ vnf_num }}
86 {% endfor %}
87     tg_1:
88       floating_ip: true
89       placement: "pgrp1"
90       network_ports:
91         mgmt:
92           - mgmt
93 {% for vnf_num in range(num_vnfs|int) %}
94         downlink_{{ vnf_num }}:
95           - xe{{ vnf_num }}
96 {% endfor %}
97 {% for vnf_num in range(num_vnfs|int) %}
98     vnf_{{ vnf_num }}:
99       floating_ip: true
100       placement: "pgrp1"
101       network_ports:
102         mgmt:
103           - mgmt
104         uplink_{{ vnf_num }}:
105           - xe0
106         downlink_{{ vnf_num }}:
107           - xe1
108 {% endfor %}
109   networks:
110     mgmt:
111       cidr: '10.0.1.0/24'
112 {% for vnf_num in range(num_vnfs|int) %}
113     uplink_{{ vnf_num }}:
114       cidr: '10.{{ vnf_num + 1 }}.0.0/24'
115       gateway_ip: 'null'
116       port_security_enabled: False
117       enable_dhcp: 'false'
118     downlink_{{ vnf_num }}:
119       cidr: '10.{{ vnf_num + 1 }}.1.0/24'
120       gateway_ip: 'null'
121       port_security_enabled: False
122       enable_dhcp: 'false'
123 {% endfor %}