Added test descriptors for vCMTS testcase
[yardstick.git] / samples / vnf_samples / nsut / cmts / k8s_vcmts_topology.yaml
1 # Copyright (c) 2019 Viosoft Corporation
2 #
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
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
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
15 {% set num_tg = get(extra_args, 'num_tg', 2) %}
16 {% set num_sg = get(extra_args, 'num_sg', 2) %}
17
18 nsd:nsd-catalog:
19     nsd:
20     -   id: vcmts-topology
21         name: vcmts-topology
22         short-name: vcmts-topology
23         description: vcmts-topology
24         constituent-vnfd:
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
29         {% endfor %}
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
34         {% endfor %}
35
36         vld: []