1 # Copyright (c) 2016 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.
17 - id: {{ num_vnfs }}-vnf-correlated
18 name: {{ num_vnfs }}-vnf-correlated
19 short-name: {{ num_vnfs }}-vnf-correlated
20 description: {{ num_vnfs }}-vnf-correlated
22 - member-vnf-index: '0'
24 VNF model: ../../vnf_descriptors/tg_rfc2544_tpl.yaml #VNF type
25 - member-vnf-index: '1'
27 VNF model: ../../vnf_descriptors/udp_replay_vnf.yaml #VNF type
28 {% for vnf_num in range(num_vnfs|int) %}
29 - member-vnf-index: '{{ vnf_num + 2 }}'
30 vnfd-id-ref: vnf__{{ vnf_num }}
31 VNF model: ../../vnf_descriptors/acl_vnf.yaml #VNF type
35 {% for vnf_num in range(num_vnfs|int) %}
36 - id: uplink_{{ vnf_num }}
37 name: "tg__0 to vnf__{{ vnf_num }} link {{ vnf_num }}"
39 vnfd-connection-point-ref:
40 - member-vnf-index-ref: '0'
41 vnfd-connection-point-ref: xe{{ vnf_num }}
43 - member-vnf-index-ref: '{{ vnf_num + 2 }}'
44 vnfd-connection-point-ref: xe0
45 vnfd-id-ref: vnf__{{ vnf_num }}
46 - id: downlink_{{ vnf_num }}
47 name: "vnf__{{ vnf_num }} to tg__1 link {{ vnf_num }}"
49 vnfd-connection-point-ref:
50 - member-vnf-index-ref: '{{ vnf_num + 2}}'
51 vnfd-connection-point-ref: xe1
52 vnfd-id-ref: vnf__{{ vnf_num }}
53 - member-vnf-index-ref: '1'
54 vnfd-connection-point-ref: xe{{ vnf_num }}