1 # Copyright (c) 2017 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.
16 schema: yardstick:task:0.1
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 %}
26 traffic_profile: ../../traffic_profiles/ipv4_throughput-{{ num_vnfs }}.yaml
27 topology: acl-tg-topology-3node-{{ num_vnfs }}.yaml
31 {% for vnf_num in range(num_vnfs|int) %}
32 vnf__{{ vnf_num }}: vnf_{{ vnf_num }}.yardstick
40 {% for vnf_num in range(num_vnfs|int) %}
41 - {'tg__0': 'xe{{ vnf_num }}'}
44 {% for vnf_num in range(num_vnfs|int) %}
45 - {'tg__1': 'xe{{ vnf_num }}'}
50 allowed_drop_rate: 0.0001 - 0.0001
51 correlated_traffic: true
52 {% for vnf_num in range(num_vnfs|int) %}
55 vnf_config: {lb_config: 'SW', lb_count: 1, worker_config: '1C/1T', worker_threads: 1}
63 image: {{ image_name }}
70 hw:cpu_cores: {{ cpu_num }}
75 policy: "availability"
83 {% for vnf_num in range(num_vnfs|int) %}
93 {% for vnf_num in range(num_vnfs|int) %}
94 downlink_{{ vnf_num }}:
97 {% for vnf_num in range(num_vnfs|int) %}
104 uplink_{{ vnf_num }}:
106 downlink_{{ vnf_num }}:
112 {% for vnf_num in range(num_vnfs|int) %}
113 uplink_{{ vnf_num }}:
114 cidr: '10.{{ vnf_num + 1 }}.0.0/24'
116 port_security_enabled: False
118 downlink_{{ vnf_num }}:
119 cidr: '10.{{ vnf_num + 1 }}.1.0/24'
121 port_security_enabled: False