Added a script example for a performance evaluation of charm deployment
[osm/vim-emu.git] / examples / vnfs / simple_charmed_vnfd / simple_charmed_vnfd.yaml
1 # Copyright (c) 2019 Erik Schilling
2 # ALL RIGHTS RESERVED.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #    http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 vnfd:vnfd-catalog:
17   vnfd:
18   - id: charmed-vnf
19     short-name: charmed-vnf
20     name: charmed-vnf
21     vdu:
22     - id: charmed-vnf-vdu
23       vm-flavor:
24         vcpu-count: 1
25         memory-mb: 256
26         storage-gb: 6
27       image: sshcontainer
28       interface:
29       - name: eth0
30         type: EXTERNAL
31         position: 0
32         external-connection-point-ref: eth0
33     mgmt-interface:
34       vdu-id: charmed-vnf-vdu
35     connection-point:
36     - name: eth0
37       type: VPORT
38     vnf-configuration:
39       juju:
40         charm: simple
41       initial-config-primitive:
42       - seq: '1'
43         name: config
44         parameter:
45         - name: ssh-hostname
46           value: <rw_mgmt_ip>
47         - name: ssh-username
48           value: root
49         - name: ssh-password
50           value: test
51       - seq: '2'
52         name: touch
53         parameter:
54         - name: filename
55           value: /test
56       config-primitive:
57       - name: touch
58         parameter:
59         - name: filename
60           data-type: STRING
61           default-value: '/testmanual'