Merge "Docs for vPE"
[yardstick.git] / samples / vnf_samples / nsut / vfw / vfw_tg_topology_scale_out.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 {% set num_vnfs = get(extra_args, 'num_vnfs', 1) %}
15 ---
16 nsd:nsd-catalog:
17     nsd:
18     -   id: 3tg-topology
19         name: 3tg-topology
20         short-name: 3tg-topology
21         description: 3tg-topology
22         constituent-vnfd:
23 {% for vnf_num in range(num_vnfs|int) %}
24         -   member-vnf-index: '{{ (vnf_num * 2) + 1 }}'
25             vnfd-id-ref: tg__{{ vnf_num }}
26             VNF model: ../../vnf_descriptors/tg_rfc2544_tpl.yaml
27         -   member-vnf-index: '{{ (vnf_num * 2) + 2 }}'
28             vnfd-id-ref: vnf__{{ vnf_num }}
29             VNF model: ../../vnf_descriptors/vfw_vnf.yaml
30 {% endfor %}
31         vld:
32 {% for vnf_num in range(num_vnfs|int) %}
33         -   id: uplink_{{ vnf_num }}
34             name: tg__{{ vnf_num }} to vnf__{{ vnf_num }} link {{ (vnf_num * 2) + 1 }}
35             type: ELAN
36             vnfd-connection-point-ref:
37             -   member-vnf-index-ref: '{{ (vnf_num * 2) + 1 }}'
38                 vnfd-connection-point-ref: xe0
39                 vnfd-id-ref: tg__{{ vnf_num }}
40             -   member-vnf-index-ref: '{{ (vnf_num * 2) + 2 }}'
41                 vnfd-connection-point-ref: xe0
42                 vnfd-id-ref: vnf__{{ vnf_num }}
43         -   id: downlink_{{ vnf_num }}
44             name: vnf__{{ vnf_num }} to tg__{{ vnf_num }} link {{ (vnf_num * 2) + 2 }}
45             type: ELAN
46             vnfd-connection-point-ref:
47             -   member-vnf-index-ref: '{{ (vnf_num * 2) + 2 }}'
48                 vnfd-connection-point-ref: xe1
49                 vnfd-id-ref: vnf__{{ vnf_num }}
50             -   member-vnf-index-ref: '{{ (vnf_num * 2) + 1 }}'
51                 vnfd-connection-point-ref: xe1
52                 vnfd-id-ref: tg__{{ vnf_num }}
53 {% endfor %}