1 # Copyright (c) 2018 Intel Corporation
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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 {% set num_vnfs = num_vnfs or 1 %}
15 {% set availability_zone = availability_zone or {} %}
17 schema: yardstick:task:0.1
20 traffic_profile: ../../traffic_profiles/ipv4_throughput_scale_out.yaml
21 topology: vfw_tg_topology_scale_out.yaml
23 num_vnfs: {{ num_vnfs }}
25 {% for vnf_num in range(num_vnfs|int) %}
26 tg__{{ vnf_num }}: tg_{{ vnf_num }}.yardstick
27 vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
35 {% for vnf_num in range(num_vnfs|int) %}
36 - {'tg__{{ vnf_num }}': 'xe0'}
39 {% for vnf_num in range(num_vnfs|int) %}
40 - {'tg__{{ vnf_num }}': 'xe1'}
45 allowed_drop_rate: 0.0001 - 0.0001
46 {% for vnf_num in range(num_vnfs|int) %}
49 vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
56 # put node context first, so we don't HEAT deploy if node has errors
58 image: yardstick-samplevnfs
70 policy: "availability"
72 {% for vnf_num in range(num_vnfs|int) %}
76 {% if 'vnf_%s'|format(vnf_num) in availability_zone %}
77 availability_zone: "{{ availability_zone['vnf_%s'|format(vnf_num)] }}"
84 downlink_{{ vnf_num }}:
89 {% if 'tg_%s'|format(vnf_num) in availability_zone %}
90 availability_zone: "{{ availability_zone['tg_%s'|format(vnf_num)] }}"
97 downlink_{{ vnf_num }}:
103 {% for vnf_num in range(num_vnfs|int) %}
104 uplink_{{ vnf_num }}:
105 cidr: '10.0.{{ (vnf_num * 2) + 2 }}.0/24'
107 port_security_enabled: False
109 downlink_{{ vnf_num }}:
110 cidr: '10.0.{{ (vnf_num * 2) + 3 }}.0/24'
112 port_security_enabled: False