add IM for building system
[osm/devops.git] / descriptor-packages / src / vnfd / ping_vnf / 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:vnfd-catalog:
19     vnfd: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             polling_interval_secs: '2'
35             port: '18888'
36         mgmt-interface:
37             dashboard-params:
38                 path: api/v1/ping/stats
39                 port: '18888'
40             port: '18888'
41             vdu-id: iovdu_0
42         placement-groups:
43         -   member-vdus:
44             -   member-vdu-ref: iovdu_0
45             name: Eris
46             requirement: Place this VM on the Kuiper belt object Eris
47             strategy: COLOCATION
48         vdu:
49         -   cloud-init-file: ping_cloud_init.cfg
50             count: '1'
51             external-interface:
52             -   name: eth0
53                 virtual-interface:
54                     type: VIRTIO
55                 vnfd-connection-point-ref: ping_vnfd/cp0
56             -   name: eth1
57                 virtual-interface:
58                     type: VIRTIO
59                 vnfd-connection-point-ref: ping_vnfd/cp1
60             id: iovdu_0
61             image: Fedora-x86_64-20-20131211.1-sda-ping.qcow2
62             name: iovdu_0
63             vm-flavor:
64                 memory-mb: '512'
65                 storage-gb: '4'
66                 vcpu-count: '1'
67         vnf-configuration:
68             config-attributes:
69                 config-delay: 10
70             service-primitive:
71             -   name: start
72             -   name: stop
73             -   name: restart
74             -   name: config
75                 parameter:
76                 -   data-type: STRING
77                     default-value: <rw_mgmt_ip>
78                     name: ssh-hostname
79                 -   data-type: STRING
80                     default-value: fedora
81                     name: ssh-username
82                 -   data-type: STRING
83                     default-value: fedora
84                     name: ssh-password
85                 -   data-type: STRING
86                     name: ssh-private-key
87                 -   data-type: STRING
88                     default-value: ping
89                     name: mode
90                     read-only: 'true'
91             -   name: set-server
92                 parameter:
93                 -   data-type: STRING
94                     name: server-ip
95                 -   data-type: INTEGER
96                     name: server-port
97             -   name: set-rate
98                 parameter:
99                 -   data-type: INTEGER
100                     default-value: '5'
101                     name: rate
102             -   name: start-traffic
103             -   name: stop-traffic
104             initial-config-primitive:
105             -   name: config
106                 parameter:
107                 -   name: ssh-hostname
108                     value: <rw_mgmt_ip>
109                 -   name: ssh-username
110                     value: fedora
111                 -   name: ssh-password
112                     value: fedora
113                 -   name: mode
114                     value: ping
115                 seq: '1'
116             -   name: start
117                 seq: '2'
118             juju:
119                 charm: pingpong