cirros test code changes for VCD
[osm/devops.git] / descriptor-packages / vnfd / ping_vnf / src / ping_vnfd.yaml
1 #
2 #   Copyright 2016 RIFT.io Inc
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 #
17
18 vnfd-catalog:
19     vnfd:
20      -  id: rift_ping_vnf
21         name: ping_vnf
22         short-name: ping_vnf
23         logo: rift_logo.png
24         vendor: RIFT.io
25         version: '1.1'
26         description: This is an example RIFT.ware VNF
27         connection-point:
28         -   name: ping_vnfd/cp0
29             type: VPORT
30         -   name: ping_vnfd/cp1
31             type: VPORT
32         http-endpoint:
33         -   path: api/v1/ping/stats
34             port: '18888'
35         mgmt-interface:
36             dashboard-params:
37                 path: api/v1/ping/stats
38                 port: '18888'
39             port: '18888'
40             cp: ping_vnfd/cp0
41         placement-groups:
42         -   member-vdus:
43             -   member-vdu-ref: iovdu_0
44             name: Eris
45             requirement: Place this VM on the Kuiper belt object Eris
46             strategy: COLOCATION
47         vdu:
48         -   cloud-init-file: ping_cloud_init.cfg
49             count: '1'
50             interface:
51             -   name: eth0
52                 position: 0
53                 type: EXTERNAL
54                 virtual-interface:
55                     type: VIRTIO
56                 external-connection-point-ref: ping_vnfd/cp0
57             -   name: eth1
58                 position: 1
59                 type: EXTERNAL
60                 virtual-interface:
61                     type: VIRTIO
62                 external-connection-point-ref: ping_vnfd/cp1
63             id: iovdu_0
64             image: Fedora-x86_64-20-20131211.1-sda-ping.qcow2
65             name: iovdu_0
66             vm-flavor:
67                 memory-mb: '512'
68                 storage-gb: '4'
69                 vcpu-count: '1'
70         vnf-configuration:
71             config-primitive:
72             -   name: start
73             -   name: stop
74             -   name: restart
75             -   name: config
76                 parameter:
77                 -   data-type: STRING
78                     default-value: <rw_mgmt_ip>
79                     name: ssh-hostname
80                 -   data-type: STRING
81                     default-value: fedora
82                     name: ssh-username
83                 -   data-type: STRING
84                     default-value: fedora
85                     name: ssh-password
86                 -   data-type: STRING
87                     name: ssh-private-key
88                 -   data-type: STRING
89                     default-value: ping
90                     name: mode
91                     read-only: 'true'
92             -   name: set-server
93                 parameter:
94                 -   data-type: STRING
95                     name: server-ip
96                 -   data-type: INTEGER
97                     name: server-port
98             -   name: set-rate
99                 parameter:
100                 -   data-type: INTEGER
101                     default-value: '5'
102                     name: rate
103             -   name: start-traffic
104             -   name: stop-traffic
105             initial-config-primitive:
106             -   name: config
107                 parameter:
108                 -   name: ssh-hostname
109                     value: <rw_mgmt_ip>
110                 -   name: ssh-username
111                     value: fedora
112                 -   name: ssh-password
113                     value: fedora
114                 -   name: mode
115                     value: ping
116                 seq: '1'
117             -   name: start
118                 seq: '2'
119             juju:
120                 charm: pingpong