feat(configurations): now VNF/VDU/KDU configurations are in the same place, compatibl...
[osm/IM.git] / tests / examples / vnfd_im.yaml
1 #  Copyright 2020 Whitestack LLC
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
12 #  implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 # Using old OSM IM model
17
18 vnfd:vnfd-catalog:
19   vnfd:
20     - id: vnfd
21
22       mgmt-interface:
23         cp: vnf-mgmt
24
25       connection-point:
26         - id: vnf-mgmt
27           name: vnf-mgmt
28           short-name: vnf-mgmt
29           type: VPORT
30         - id: vnf-data
31           name: vnf-data
32           short-name: vnf-data
33           type: VPORT
34
35       internal-vld:
36         - id: internal
37           name: internal
38           short-name: internal
39           type: ELAN
40           internal-connection-point:
41             - id-ref: mgmtVM-internal
42             - id-ref: dataVM-internal
43
44       vdu:
45         - id: mgmtVM
46
47           image: ubuntu1804
48
49           interface:
50             - name: mgmtVM-eth0
51               position: "1"
52               type: EXTERNAL
53               virtual-interface:
54                 type: VIRTIO
55               external-connection-point-ref: vnf-mgmt
56             - name: mgmtVM-eth1
57               position: "2"
58               type: INTERNAL
59               virtual-interface:
60                 type: VIRTIO
61               internal-connection-point-ref: mgmtVM-internal
62
63           internal-connection-point:
64             - id: mgmtVM-internal
65               name: mgmtVM-internal
66               short-name: mgmtVM-internal
67               type: VPORT
68
69         - id: dataVM
70
71           image: ubuntu1804
72
73           interface:
74             - name: dataVM-eth0
75               position: "1"
76               type: INTERNAL
77               virtual-interface:
78                 type: VIRTIO
79               internal-connection-point-ref: dataVM-internal
80             - name: dataVM-xe0
81               position: "2"
82               type: EXTERNAL
83               virtual-interface:
84                 type: VIRTIO
85               external-connection-point-ref: vnf-data
86
87           internal-connection-point:
88             - id: dataVM-internal
89               name: dataVM-internal
90               short-name: dataVM-internal
91               type: VPORT