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"
21 traffic_profile: ../../traffic_profiles/prox_binsearch.yaml
22 topology: prox-tg-topology-scale-out.yaml
24 num_vnfs: {{ num_vnfs }}
27 {% for vnf_num in range(num_vnfs|int) %}
28 tg__{{ vnf_num }}: tg_{{ vnf_num }}.yardstick
29 vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
33 {% for vnf_num in range(num_vnfs|int) %}
35 prox_path: /opt/nsb_bin/prox
36 prox_config: "configs/handle_l2fwd_multiflow-2.cfg"
41 prox_path: /opt/nsb_bin/prox
42 prox_config: "configs/gen_l2fwd_multiflow-2.cfg"
50 # we kill after duration, independent of test duration, so set this high
55 image: yardstick-samplevnfs
67 policy: "availability"
70 {% for vnf_num in range(num_vnfs|int) %}
74 {% if 'vnf_%s'|format(vnf_num) in availability_zone %}
75 availability_zone: "{{ availability_zone['vnf_%s'|format(vnf_num)] }}"
82 downlink_{{ vnf_num }}:
87 {% if 'tg_%s'|format(vnf_num) in availability_zone %}
88 availability_zone: "{{ availability_zone['tg_%s'|format(vnf_num)] }}"
95 downlink_{{ vnf_num }}:
102 {% for vnf_num in range(num_vnfs|int) %}
103 uplink_{{ vnf_num }}:
104 cidr: '10.0.{{ (vnf_num * 2) + 2 }}.0/24'
106 port_security_enabled: False
108 downlink_{{ vnf_num }}:
109 cidr: '10.0.{{ (vnf_num * 2) + 3 }}.0/24'
111 port_security_enabled: False