feat(configurations): now VNF/VDU/KDU configurations are in the same place, compatibl...
[osm/IM.git] / tests / examples / vnfd_sol006.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 new SOL006-based OSM model
17
18 vnfd:
19   id: vnfd
20   mgmt-cp: vnf-mgmt-ext
21
22   sw-image-desc:
23     - id: ubuntu1804
24       image: ubuntu1804
25       name: ubuntu1804
26
27   ext-cpd:
28     - id: vnf-mgmt-ext
29       int-cpd:
30         vdu-id: mgmtVM
31         cpd: mgmtVM-eth0-int
32     - id: vnf-data-ext
33       int-cpd:
34         vdu-id: dataVM
35         cpd: dataVM-xe0-int
36
37   int-virtual-link-desc:
38     - id: internal
39
40   vdu:
41     - id: mgmtVM
42       sw-image-desc: ubuntu1804
43       int-cpd:
44         - id: mgmtVM-eth0-int
45           virtual-network-interface-requirement:
46             - name: mgmtVM-eth0
47               position: 1
48               virtual-interface:
49                 type: VIRTIO
50         - id: mgmtVM-eth1-int
51           int-virtual-link-desc: internal
52           virtual-network-interface-requirement:
53             - name: mgmtVM-eth1
54               position: 2
55               virtual-interface:
56                 type: VIRTIO
57
58     - id: dataVM
59       sw-image-desc: ubuntu1804
60       int-cpd:
61         - id: dataVM-eth0-int
62           int-virtual-link-desc: internal
63           virtual-network-interface-requirement:
64             - name: dataVM-eth0
65               position: 1
66               virtual-interface:
67                 type: VIRTIO
68         - id: dataVM-xe0-int
69           virtual-network-interface-requirement:
70             - name: dataVM-xe0
71               position: 2
72               virtual-interface:
73                 type: VIRTIO
74
75   df:
76     - id: default-df
77       instantiation-level:
78         - id: default-instantiation-level
79           vdu-level:
80             - number-of-instances: 1
81               vdu-id: mgmtVM
82             - number-of-instances: 1
83               vdu-id: dataVM
84       vdu-profile:
85         - id: mgmtVM
86           min-number-of-instances: 1
87         - id: dataVM
88           min-number-of-instances: 1