Merge "add CheckConnectivity scenario"
[yardstick.git] / samples / vnf_samples / nsut / acl / acl-tg-topology-ixia-correlated-multi-port.yaml
1 # Copyright (c) 2016-2017 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 nsd:nsd-catalog:
16     nsd:
17     -   id: 3-tg_vnf-topology
18         name: 3-tg_vnf-topology
19         short-name: 3-tg_vnf-topology
20         description: 3-tg_vnf-topology
21         constituent-vnfd:
22         - member-vnf-index: '0'
23           vnfd-id-ref: tg__0
24           VNF model: ../../vnf_descriptors/ixia_rfc2544_tpl.yaml
25         - member-vnf-index: '1'
26           vnfd-id-ref: tg__1
27           VNF model: ../../vnf_descriptors/udp_replay_vnf.yaml      #VNF type
28         - member-vnf-index: '2'
29           vnfd-id-ref: vnf__0
30           VNF model: ../../vnf_descriptors/acl_vnf.yaml      #VNF type
31
32         vld:
33 {% for vnf_num in range(num_vnfs|int) %}
34           - id: uplink_{{ vnf_num }}
35             name: "tg__0 to vnf__0 link {{ (vnf_num * 2) }}"
36             type: ELAN
37             vnfd-connection-point-ref:
38               - member-vnf-index-ref: '0'
39                 vnfd-connection-point-ref: xe{{ vnf_num * 2 }}
40                 vnfd-id-ref: tg__0
41               - member-vnf-index-ref: 2
42                 vnfd-connection-point-ref: xe{{ vnf_num * 2}}
43                 vnfd-id-ref: vnf__0
44           - id: downlink_{{ vnf_num }}
45             name: "vnf__{{ vnf_num }} to tg__1 link {{ (vnf_num * 2) + 1}}"
46             type: ELAN
47             vnfd-connection-point-ref:
48               - member-vnf-index-ref: 2
49                 vnfd-connection-point-ref: xe{{vnf_num * 2 + 1}}
50                 vnfd-id-ref: vnf__0
51               - member-vnf-index-ref: '1'
52                 vnfd-connection-point-ref: xe{{ vnf_num }}
53                 vnfd-id-ref: tg__1
54 {% endfor %}