1 # Copyright (c) 2019 Viosoft 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.
15 {% set num_tg = get(extra_args, 'num_tg', 2) %}
16 {% set num_sg = get(extra_args, 'num_sg', 2) %}
22 short-name: vcmts-topology
23 description: vcmts-topology
25 {% for tg_num in range(0, num_tg) %}
26 - member-vnf-index: '{{ tg_num + 1 }}'
27 vnfd-id-ref: tg__{{ tg_num }}
28 VNF model: ../../vnf_descriptors/tg_vcmts_tpl.yaml #VNF type
30 {% for vnf_num in range(0, num_sg * 2) %}
31 - member-vnf-index: '{{ vnf_num + num_tg + 1 }}'
32 vnfd-id-ref: vnf__{{ vnf_num }}
33 VNF model: ../../vnf_descriptors/vnf_vcmts_tpl.yaml #VNF type