Adds SOL004 package validator with package examples and tests
[osm/common.git] / osm_common / tests / packages / native_charm_with_metadata_dir_vnf / Definitions / native_charm_vnfd.yaml
1 #
2 # Licensed under the Apache License, Version 2.0 (the "License"); you may
3 # not use this file except in compliance with the License. You may obtain
4 # a copy of the License at
5 #
6 #         http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
10 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
11 # License for the specific language governing permissions and limitations
12 # under the License.
13 #
14
15 vnfd:
16   description: A VNF consisting of 1 VDU connected to two external VL, and one for
17     data and another one for management
18   df:
19   - id: default-df
20     instantiation-level:
21     - id: default-instantiation-level
22       vdu-level:
23       - number-of-instances: 1
24         vdu-id: mgmtVM
25     vdu-profile:
26     - id: mgmtVM
27       min-number-of-instances: 1
28       vdu-configuration-id: mgmtVM-vdu-configuration
29   ext-cpd:
30   - id: vnf-mgmt-ext
31     int-cpd:
32       cpd: mgmtVM-eth0-int
33       vdu-id: mgmtVM
34   - id: vnf-data-ext
35     int-cpd:
36       cpd: dataVM-xe0-int
37       vdu-id: mgmtVM
38   id: native_charm-vnf
39   mgmt-cp: vnf-mgmt-ext
40   product-name: native_charm-vnf
41   sw-image-desc:
42   - id: ubuntu18.04
43     image: ubuntu18.04
44     name: ubuntu18.04
45   vdu:
46   - cloud-init-file: cloud-config.txt
47     id: mgmtVM
48     int-cpd:
49     - id: mgmtVM-eth0-int
50       virtual-network-interface-requirement:
51       - name: mgmtVM-eth0
52         position: 1
53         virtual-interface:
54           type: PARAVIRT
55     - id: dataVM-xe0-int
56       virtual-network-interface-requirement:
57       - name: dataVM-xe0
58         position: 2
59         virtual-interface:
60           type: PARAVIRT
61     name: mgmtVM
62     sw-image-desc: ubuntu18.04
63     virtual-compute-desc: mgmtVM-compute
64     virtual-storage-desc:
65     - mgmtVM-storage
66   vdu-configuration:
67   - config-access:
68       ssh-access:
69         default-user: ubuntu
70         required: true
71     config-primitive:
72     - name: touch
73       parameter:
74       - data-type: STRING
75         default-value: /home/ubuntu/touched
76         name: filename
77     id: mgmtVM-vdu-configuration
78     initial-config-primitive:
79     - name: touch
80       parameter:
81       - data-type: STRING
82         name: filename
83         value: /home/ubuntu/first-touch
84       seq: 1
85     juju:
86       charm: simple
87       proxy: false
88   version: 1.0
89   virtual-compute-desc:
90   - id: mgmtVM-compute
91     virtual-cpu:
92       num-virtual-cpu: 1
93     virtual-memory:
94       size: 1.0
95   virtual-storage-desc:
96   - id: mgmtVM-storage
97     size-of-storage: 10