Adds SOL004 package validator with package examples and tests
[osm/common.git] / osm_common / tests / packages / native_charm_without_metadata_dir_vnf / 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 metadata:
16   template_name: native_charm-vnf
17   template_author: AFA
18   template_version: 1.1
19
20 vnfd:
21   description: A VNF consisting of 1 VDU connected to two external VL, and one for
22     data and another one for management
23   df:
24   - id: default-df
25     instantiation-level:
26     - id: default-instantiation-level
27       vdu-level:
28       - number-of-instances: 1
29         vdu-id: mgmtVM
30     vdu-profile:
31     - id: mgmtVM
32       min-number-of-instances: 1
33       vdu-configuration-id: mgmtVM-vdu-configuration
34   ext-cpd:
35   - id: vnf-mgmt-ext
36     int-cpd:
37       cpd: mgmtVM-eth0-int
38       vdu-id: mgmtVM
39   - id: vnf-data-ext
40     int-cpd:
41       cpd: dataVM-xe0-int
42       vdu-id: mgmtVM
43   id: native_charm-vnf
44   mgmt-cp: vnf-mgmt-ext
45   product-name: native_charm-vnf
46   provider: AFA
47   sw-image-desc:
48   - id: ubuntu18.04
49     image: ubuntu18.04
50     name: ubuntu18.04
51   vdu:
52   - cloud-init-file: cloud-config.txt
53     id: mgmtVM
54     int-cpd:
55     - id: mgmtVM-eth0-int
56       virtual-network-interface-requirement:
57       - name: mgmtVM-eth0
58         position: 1
59         virtual-interface:
60           type: PARAVIRT
61     - id: dataVM-xe0-int
62       virtual-network-interface-requirement:
63       - name: dataVM-xe0
64         position: 2
65         virtual-interface:
66           type: PARAVIRT
67     name: mgmtVM
68     sw-image-desc: ubuntu18.04
69     virtual-compute-desc: mgmtVM-compute
70     virtual-storage-desc:
71     - mgmtVM-storage
72   vdu-configuration:
73   - config-access:
74       ssh-access:
75         default-user: ubuntu
76         required: true
77     config-primitive:
78     - name: touch
79       parameter:
80       - data-type: STRING
81         default-value: /home/ubuntu/touched
82         name: filename
83     id: mgmtVM-vdu-configuration
84     initial-config-primitive:
85     - name: touch
86       parameter:
87       - data-type: STRING
88         name: filename
89         value: /home/ubuntu/first-touch
90       seq: 1
91     juju:
92       charm: simple
93       proxy: false
94   version: 1.0
95   virtual-compute-desc:
96   - id: mgmtVM-compute
97     virtual-cpu:
98       num-virtual-cpu: 1
99     virtual-memory:
100       size: 1.0
101   virtual-storage-desc:
102   - id: mgmtVM-storage
103     size-of-storage: 10