50f537f52382d312167753e98229bed85b2a4026
[osm/devops.git] / src / vnfd / pong_vnf / pong_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:
20      -  id: rift_pong_vnf
21         name: pong_vnf
22         short-name: pong_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: pong_vnfd/cp0
29             type: VPORT
30         -   name: pong_vnfd/cp1
31             type: VPORT
32         http-endpoint:
33         -   path: api/v1/pong/stats
34             polling_interval_secs: '2'
35             port: '18889'
36         mgmt-interface:
37             dashboard-params:
38                 path: api/v1/pong/stats
39                 port: '18889'
40             port: '18889'
41             vdu-id: iovdu_0
42         placement-groups:
43         -   member-vdus:
44             -   member-vdu-ref: iovdu_0
45             name: Weywot
46             requirement: Place this VM on the Kuiper belt object Weywot
47             strategy: COLOCATION
48         vdu:
49         -   cloud-init-file: pong_cloud_init.cfg
50             count: '1'
51             external-interface:
52             -   name: eth0
53                 virtual-interface:
54                     type: VIRTIO
55                 vnfd-connection-point-ref: pong_vnfd/cp0
56             -   name: eth1
57                 virtual-interface:
58                     type: VIRTIO
59                 vnfd-connection-point-ref: pong_vnfd/cp1
60             id: iovdu_0
61             image: Fedora-x86_64-20-20131211.1-sda-pong.qcow2
62             image-checksum: 977484d95575f80ef8399c9cf1d45ebd
63             name: iovdu_0
64             vm-flavor:
65                 memory-mb: '512'
66                 storage-gb: '4'
67                 vcpu-count: '1'
68         vnf-configuration:
69             config-attributes:
70                 config-delay: 10
71             service-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: pong
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: start-traffic
99             -   name: stop-traffic
100             initial-config-primitive:
101             -   name: config
102                 parameter:
103                 -   name: ssh-hostname
104                     value: <rw_mgmt_ip>
105                 -   name: ssh-username
106                     value: fedora
107                 -   name: ssh-password
108                     value: fedora
109                 -   name: mode
110                     value: pong
111                 seq: '1'
112             -   name: start
113                 seq: '2'
114             juju:
115                 charm: pingpong