Added script for measuring impact of delay on OSM
[osm/vim-emu.git] / examples / templates / vnffg-nsd.yaml
1 # Copyright (c) 2019 Erik Schilling
2 # ALL RIGHTS RESERVED.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 nsd:nsd-catalog:
17     nsd:
18     -   id: vnffg-example
19         short-name: vnffg-example
20         name: vnffg-example
21         constituent-vnfd:
22         -   member-vnf-index: 1
23             vnfd-id-ref: vnfd-traffic-view
24         {% for i in range(2, n + 2) %}
25         -   member-vnf-index: {{ i }}
26             vnfd-id-ref: vnfd-traffic-view
27         {% endfor %}
28         ip-profiles:
29         -   description: Inter VNF Link
30             ip-profile-params:
31                 gateway-address: 10.0.{{ subnet }}.210
32                 ip-version: ipv4
33                 subnet-address: 10.0.{{ subnet }}.0/24
34                 dns-server:
35                 -   address: 8.8.8.8
36                 -   address: 8.8.8.9
37                 dhcp-params:
38                   count: 200
39                   start-address: 10.0.{{ subnet }}.1
40             name: ipprofileA
41         vld:
42             -   id: vld1
43                 name: vld1-name
44                 short-name: vld1-sname
45                 type: ELAN
46                 ip-profile-ref: ipprofileA
47                 vnfd-connection-point-ref:
48                 -   member-vnf-index-ref: 1
49                     vnfd-id-ref: vnfd-traffic-view
50                     vnfd-connection-point-ref: eth0
51                     ip-address: 10.0.{{ subnet }}.2
52                 {% for i in range(2, n + 2) %}
53                 -   member-vnf-index-ref: {{ i }}
54                     vnfd-id-ref: vnfd-traffic-view
55                     vnfd-connection-point-ref: eth0
56                     ip-address: 10.0.{{ subnet }}.{{ i + 1 }}
57                 {% endfor %}
58         vnffgd:
59             -   id: vnffg1
60                 name: vnffg1-name
61                 short-name: vnffg1-sname
62                 description: vnffg1-description
63                 vendor: vnffg1-vendor
64                 version: '1.0'
65                 rsp:
66                 -   id: rsp1
67                     name: rsp1-name
68                     vnfd-connection-point-ref:
69                     {% for i in range(n) %}
70                     -   member-vnf-index-ref: {{ i + 2 }}
71                         order: {{ i }}
72                         vnfd-id-ref: vnfd-traffic-view
73                         vnfd-ingress-connection-point-ref: eth0
74                         vnfd-egress-connection-point-ref: eth0
75                     {% endfor %}
76                 classifier:
77                 -   id: class1
78                     name: class1-name
79                     rsp-id-ref: rsp1
80                     member-vnf-index-ref: 1
81                     vnfd-id-ref: vnfd-traffic-view
82                     vnfd-connection-point-ref: eth0
83                     match-attributes:
84                     -   id: match1
85                         ip-proto: 6 # TCP
86                         source-ip-address: 10.0.{{ subnet }}.2
87                         destination-ip-address: 10.0.{{ subnet }}.{{ n + 2 }}
88                         source-port: 0
89                         destination-port: 80
90