blob: f5e577c8805769ee4333aad56693703217a3a892 [file] [log] [blame]
Suresh Balakrishnanbb492462016-10-06 05:37:50 -04001#
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
18vnfd:vnfd-catalog:
Philip Joseph54b892b2017-01-10 18:01:10 +053019 vnfd:vnfd:
Philip Joseph98842182017-01-13 19:05:56 +053020 - id: rift_ping_vnf
21 name: ping_vnf
22 short-name: ping_vnf
23 logo: rift_logo.png
24 vendor: RIFT.io
Philip Josephc5a79f02017-01-20 02:11:09 +053025 version: '1.1'
Philip Joseph98842182017-01-13 19:05:56 +053026 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 image-checksum: a6ffaa77f949a9e4ebb082c6147187cf
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: 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