Merge "Bugfix: HA kill process recovery has a conflict"
[yardstick.git] / samples / vnf_samples / nsut / prox / prox-tg-topology-scale-up.yaml
1 # Copyright (c) 2018 Intel 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 vports = get(extra_args, 'vports', 2) %}
16 nsd:nsd-catalog:
17     nsd:
18     -   id: prox-tg-topology
19         name: prox-tg-topology
20         short-name: prox-tg-topology
21         description: prox-tg-topology
22         constituent-vnfd:
23         -   member-vnf-index: '1'
24             vnfd-id-ref: tg__0
25             VNF model: ../../vnf_descriptors/tg_prox_tpl.yaml
26         -   member-vnf-index: '2'
27             vnfd-id-ref: vnf__0
28             VNF model: ../../vnf_descriptors/prox_vnf.yaml
29         vld:
30         -   id: uplink_0
31             name: tg__0 to vnf__0 link 1
32             type: ELAN
33             vnfd-connection-point-ref:
34             -   member-vnf-index-ref: '1'
35                 vnfd-connection-point-ref: xe0
36                 vnfd-id-ref: tg__0
37             -   member-vnf-index-ref: '2'
38                 vnfd-connection-point-ref: xe0
39                 vnfd-id-ref: vnf__0
40 {% for vport in range(vports-1|int) %}
41         -   id: downlink_{{ vport }}
42             name: vnf__0 to tg__0 link {{ vport+2 }}
43             type: ELAN
44             vnfd-connection-point-ref:
45             -   member-vnf-index-ref: '1'
46                 vnfd-connection-point-ref: xe{{ vport+1 }}
47                 vnfd-id-ref: vnf__0
48             -   member-vnf-index-ref: '2'
49                 vnfd-connection-point-ref: xe{{ vport+1 }}
50                 vnfd-id-ref: tg__0
51 {% else %}
52         -   id: downlink_0
53             name: vnf__0 to tg__0 link 1
54             type: ELAN
55             vnfd-connection-point-ref:
56             -   member-vnf-index-ref: '1'
57                 vnfd-connection-point-ref: xe0
58                 vnfd-id-ref: vnf__0
59             -   member-vnf-index-ref: '2'
60                 vnfd-connection-point-ref: xe0
61                 vnfd-id-ref: tg__0
62 {% endfor %}