Updates branch master with sol006 branch, introducing new SOL006 model classes
[osm/IM.git] / tests / examples / cirros_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 vnfd:
17   id: cirros_vnfd
18   product-name: cirros_vnf
19   description: Simple VNF example with a cirros
20   provider: OSM
21   version: "1.0"
22   mgmt-cp: eth0-ext
23
24   virtual-compute-desc:
25     - id: cirros-compute
26       virtual-cpu:
27         num-virtual-cpu: 1
28       virtual-memory:
29         size: 0.256 # Memory size in GB
30
31   virtual-storage-desc:
32     - id: cirros-storage
33       size-of-storage: 2
34
35   sw-image-desc:
36     - id: cirros034
37       name: cirros034
38
39   vdu:
40     - id: cirros_vnfd-VM
41       name: cirros_vnfd-VM
42       description: cirros_vnfd-VM
43       virtual-compute-desc: cirros-compute
44       virtual-storage-desc:
45         - cirros-storage
46       sw-image-desc: cirros034
47       int-cpd:
48         - id: eth0-int
49           virtual-network-interface-requirement:
50             - name: eth0
51               virtual-interface:
52                 type: VIRTIO
53                 bandwidth: "0"
54                 vpci: 0000:00:0a.0
55
56   df:
57     - id: cirros_default
58       vdu-profile:
59         - id: cirros_vnfd-VM
60           min-number-of-instances: 1
61       instantiation-level:
62         - id: default
63           vdu-level:
64             - vdu-id: cirros_vnfd-VM
65               number-of-instances: 1
66
67   ext-cpd:
68     - id: eth0-ext
69       int-cpd: # Connection to int-cpd
70         vdu-id: cirros_vnfd-VM
71         cpd: eth0-int