1 # Copyright (c) 2018-2019 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 framesize = framesize or "{64B: 100}" %}
15 {% set num_vnfs = num_vnfs or 1 %}
16 {% set availability_zone = availability_zone or {} %}
18 schema: yardstick:task:0.1
21 traffic_profile: ../../traffic_profiles/ipv4_throughput_scale_out.yaml
22 topology: vfw_tg_topology_scale_out.yaml
24 num_vnfs: {{ num_vnfs }}
26 {% for vnf_num in range(num_vnfs|int) %}
27 tg__{{ vnf_num }}: tg_{{ vnf_num }}.yardstick
28 vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
32 uplink: {{ framesize }}
33 downlink: {{ framesize }}
36 {% for vnf_num in range(num_vnfs|int) %}
37 - {'tg__{{ vnf_num }}': 'xe0'}
40 {% for vnf_num in range(num_vnfs|int) %}
41 - {'tg__{{ vnf_num }}': 'xe1'}
46 allowed_drop_rate: 0.0001 - 0.0001
47 {% for vnf_num in range(num_vnfs|int) %}
50 vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
57 # put node context first, so we don't HEAT deploy if node has errors
59 image: yardstick-samplevnfs
71 policy: "availability"
73 {% for vnf_num in range(num_vnfs|int) %}
77 {% if 'vnf_%s'|format(vnf_num) in availability_zone %}
78 availability_zone: "{{ availability_zone['vnf_%s'|format(vnf_num)] }}"
85 downlink_{{ vnf_num }}:
90 {% if 'tg_%s'|format(vnf_num) in availability_zone %}
91 availability_zone: "{{ availability_zone['tg_%s'|format(vnf_num)] }}"
98 downlink_{{ vnf_num }}:
104 {% for vnf_num in range(num_vnfs|int) %}
105 uplink_{{ vnf_num }}:
106 cidr: '10.0.{{ (vnf_num * 2) + 2 }}.0/24'
108 port_security_enabled: False
110 downlink_{{ vnf_num }}:
111 cidr: '10.0.{{ (vnf_num * 2) + 3 }}.0/24'
113 port_security_enabled: False