Updates branch master with sol006 branch, introducing new SOL006 model classes
[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           interface:
48             - name: mgmtVM-eth0
49               position: "1"
50               type: EXTERNAL
51               virtual-interface:
52                 type: VIRTIO
53               external-connection-point-ref: vnf-mgmt
54             - name: mgmtVM-eth1
55               position: "2"
56               type: INTERNAL
57               virtual-interface:
58                 type: VIRTIO
59               internal-connection-point-ref: mgmtVM-internal
60
61           internal-connection-point:
62             - id: mgmtVM-internal
63               name: mgmtVM-internal
64               short-name: mgmtVM-internal
65               type: VPORT
66
67         - id: dataVM
68
69           interface:
70             - name: dataVM-eth0
71               position: "1"
72               type: INTERNAL
73               virtual-interface:
74                 type: VIRTIO
75               internal-connection-point-ref: dataVM-internal
76             - name: dataVM-xe0
77               position: "2"
78               type: EXTERNAL
79               virtual-interface:
80                 type: VIRTIO
81               external-connection-point-ref: vnf-data
82
83           internal-connection-point:
84             - id: dataVM-internal
85               name: dataVM-internal
86               short-name: dataVM-internal
87               type: VPORT