Adding scale up test case for l3fwd SRIOV.
[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
17 nsd:nsd-catalog:
18     nsd:
19     -   id: prox-tg-topology
20         name: prox-tg-topology
21         short-name: prox-tg-topology
22         description: prox-tg-topology
23         constituent-vnfd:
24         -   member-vnf-index: '1'
25             vnfd-id-ref: tg__0
26             VNF model: ../../vnf_descriptors/tg_prox_tpl.yaml
27         -   member-vnf-index: '2'
28             vnfd-id-ref: vnf__0
29             VNF model: ../../vnf_descriptors/prox_vnf.yaml
30         vld:
31 {% for vport in range(0,vports,2|int) %}
32         -   id: uplink_{{loop.index0}}
33             name: tg__0 to vnf__0 link {{ vport + 1 }}
34             type: ELAN
35             vnfd-connection-point-ref:
36             -   member-vnf-index-ref: '1'
37                 vnfd-connection-point-ref: xe{{ vport }}
38                 vnfd-id-ref: tg__0
39             -   member-vnf-index-ref: '2'
40                 vnfd-connection-point-ref: xe{{ vport }}
41                 vnfd-id-ref: vnf__0
42         -   id: downlink_{{loop.index0}}
43             name: vnf__0 to tg__0 link {{ vport + 2 }}
44             type: ELAN
45             vnfd-connection-point-ref:
46             -   member-vnf-index-ref: '2'
47                 vnfd-connection-point-ref: xe{{ vport + 1 }}
48                 vnfd-id-ref: vnf__0
49             -   member-vnf-index-ref: '1'
50                 vnfd-connection-point-ref: xe{{ vport + 1 }}
51                 vnfd-id-ref: tg__0
52 {% endfor %}