Add init loop in prometheus sidecar container
[osm/devops.git] / descriptor-packages / vnfd / pong_vnf / src / 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-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
30         -   name: pong_vnfd/cp1
31
32         http-endpoint:
33         -   path: api/v1/pong/stats
34             port: '18889'
35         mgmt-interface:
36             dashboard-params:
37                 path: api/v1/pong/stats
38                 port: '18889'
39             port: '18889'
40             cp: pong_vnfd/cp0
41         placement-groups:
42         -   member-vdus:
43             -   member-vdu-ref: iovdu_0
44             name: Weywot
45             requirement: Place this VM on the Kuiper belt object Weywot
46             strategy: COLOCATION
47         vdu:
48         -   cloud-init-file: pong_cloud_init.cfg
49             count: '1'
50             interface:
51             -   name: eth0
52                 position: 0
53                 type: EXTERNAL
54                 virtual-interface:
55                     type: PARAVIRT
56                 external-connection-point-ref: pong_vnfd/cp0
57             -   name: eth1
58                 position: 1
59                 type: EXTERNAL
60                 virtual-interface:
61                     type: PARAVIRT
62                 external-connection-point-ref: pong_vnfd/cp1
63             id: iovdu_0
64             image: Fedora-x86_64-20-20131211.1-sda-pong.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: 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