c2f3561e99b4e0877791c039ba8965df5b53c10f
[osm/devops.git] / descriptor-packages / vnfd / simple_multi-charm_multi-vdu_vnf / src / simple_multi-charm_multi-vdu_vnfd.yaml
1 vnfd:vnfd-catalog:
2     vnfd:
3     -   id: multicharmvdu-vnf
4         name: multicharmvdu-vnf
5         short-name: multicharmvdu-vnf
6         version: '1.0'
7         description: A VNF consisting of 2 VDUs w/charms connected to an internal VL, and one VDU with cloud-init
8         logo: osm.png
9         connection-point:
10         -   id: vnf-mgmt
11             name: vnf-mgmt
12             short-name: vnf-mgmt
13
14         -   id: vnf-data
15             name: vnf-data
16             short-name: vnf-data
17
18         mgmt-interface:
19             cp: vnf-mgmt
20         internal-vld:
21         -   id: internal
22             name: internal
23             short-name: internal
24             type: ELAN
25             internal-connection-point:
26             -   id-ref: mgmtVM-internal
27             -   id-ref: dataVM-internal
28         vdu:
29         -   id: mgmtVM
30             name: mgmtVM
31             image: xenial
32             count: '1'
33             vm-flavor:
34                 vcpu-count: '1'
35                 memory-mb: '1024'
36                 storage-gb: '10'
37             interface:
38             -   name: mgmtVM-eth0
39                 position: '1'
40                 type: EXTERNAL
41                 virtual-interface:
42                     type: VIRTIO
43                 external-connection-point-ref: vnf-mgmt
44             -   name: mgmtVM-eth1
45                 position: '2'
46                 type: INTERNAL
47                 virtual-interface:
48                     type: VIRTIO
49                 internal-connection-point-ref: mgmtVM-internal
50             internal-connection-point:
51             -   id: mgmtVM-internal
52                 name: mgmtVM-internal
53                 short-name: mgmtVM-internal
54
55             cloud-init-file: cloud-config.txt
56             vdu-configuration:
57                 juju:
58                     charm: simple
59                 initial-config-primitive:
60                 -   seq: '1'
61                     name: config
62                     parameter:
63                     -   name: ssh-hostname
64                         value: <rw_mgmt_ip>
65                     -   name: ssh-username
66                         value: ubuntu
67                     -   name: ssh-password
68                         value: osm4u
69                 -   seq: '2'
70                     name: touch
71                     parameter:
72                     -   name: filename
73                         value: '/home/ubuntu/first-touch-mgmtVM'
74                 config-primitive:
75                 -   name: touch
76                     parameter:
77                     -   name: filename
78                         data-type: STRING
79                         default-value: '/home/ubuntu/touched'
80
81         -   id: dataVM
82             name: dataVM
83             image: xenial
84             count: '1'
85             vm-flavor:
86                 vcpu-count: '1'
87                 memory-mb: '1024'
88                 storage-gb: '10'
89             interface:
90             -   name: dataVM-eth0
91                 position: '1'
92                 type: INTERNAL
93                 virtual-interface:
94                     type: VIRTIO
95                 internal-connection-point-ref: dataVM-internal
96             -   name: dataVM-xe0
97                 position: '2'
98                 type: EXTERNAL
99                 virtual-interface:
100                     type: VIRTIO
101                 external-connection-point-ref: vnf-data
102             internal-connection-point:
103             -   id: dataVM-internal
104                 name: dataVM-internal
105                 short-name: dataVM-internal
106
107             vdu-configuration:
108                 juju:
109                     charm: simple
110                 initial-config-primitive:
111                 -   seq: '1'
112                     name: config
113                     parameter:
114                     -   name: ssh-hostname
115                         value: <rw_mgmt_ip>
116                     -   name: ssh-username
117                         value: ubuntu
118                     -   name: ssh-password
119                         value: osm4u
120                 -   seq: '2'
121                     name: touch
122                     parameter:
123                     -   name: filename
124                         value: '/home/ubuntu/first-touch-dataVM'
125                 config-primitive:
126                 -   name: touch
127                     parameter:
128                     -   name: filename
129                         data-type: STRING
130                         default-value: '/home/ubuntu/touched'