2 # Copyright 2016 RIFT.io Inc
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
20 - vnfd:id: rift_ping_vnf
22 vnfd:short-name: ping_vnf
23 vnfd:logo: rift_logo.png
26 vnfd:description: This is an example RIFT.ware VNF
27 vnfd:config-parameter:
28 vnfd:config-parameter-request:
29 - vnfd:description: IP on which Pong service is listening
32 - vnfd:config-primitive-name-ref: set-server
33 vnfd:config-primitive-parameter-ref: server-ip
34 - vnfd:description: Port on which Pong service is listening
37 - vnfd:config-primitive-name-ref: set-server
38 vnfd:config-primitive-parameter-ref: server-port
39 vnfd:config-parameter-source:
40 - vnfd:attribute: ../../../mgmt-interface, ip-address
41 vnfd:description: Management IP address
44 - vnfd:config-primitive-name-ref: config
45 vnfd:config-primitive-parameter-ref: ssh-hostname
46 - vnfd:description: SSH username
49 - vnfd:config-primitive-name-ref: config
50 vnfd:config-primitive-parameter-ref: ssh-username
52 - vnfd:attribute: ../../../mgmt-interface/ssh-key, private-key-file
53 vnfd:description: SSH private key file
56 - vnfd:config-primitive-name-ref: config
57 vnfd:config-primitive-parameter-ref: ssh-private-key
58 - vnfd:description: Rate of packet generation
61 - vnfd:config-primitive-name-ref: set-rate
62 vnfd:config-primitive-parameter-ref: rate
64 vnfd:connection-point:
65 - vnfd:name: ping_vnfd/cp0
67 - vnfd:name: ping_vnfd/cp1
70 - vnfd:path: api/v1/ping/stats
71 vnfd:polling_interval_secs: '2'
74 vnfd:dashboard-params:
75 vnfd:path: api/v1/ping/stats
80 vnfd:monitoring-param:
81 - vnfd:description: no of ping requests
82 vnfd:group-tag: Group1
83 vnfd:http-endpoint-ref: api/v1/ping/stats
85 vnfd:json-query-method: NAMEKEY
86 vnfd:name: ping-request-tx-count
89 vnfd:widget-type: COUNTER
90 - vnfd:description: no of ping responses
91 vnfd:group-tag: Group1
92 vnfd:http-endpoint-ref: api/v1/ping/stats
94 vnfd:json-query-method: NAMEKEY
95 vnfd:name: ping-response-rx-count
98 vnfd:widget-type: COUNTER
99 vnfd:placement-groups:
101 - vnfd:member-vdu-ref: iovdu_0
103 vnfd:requirement: Place this VM on the Kuiper belt object Eris
104 vnfd:strategy: COLOCATION
107 vnfd:external-interface:
109 vnfd:virtual-interface:
111 vnfd:vnfd-connection-point-ref: ping_vnfd/cp0
113 vnfd:virtual-interface:
115 vnfd:vnfd-connection-point-ref: ping_vnfd/cp1
117 vnfd:image: Fedora-x86_64-20-20131211.1-sda-ping.qcow2
118 vnfd:image-checksum: a6ffaa77f949a9e4ebb082c6147187cf
121 vnfd:memory-mb: '512'
124 vnfd:vnf-configuration:
125 vnfd:config-primitive:
131 - vnfd:data-type: STRING
132 vnfd:name: ssh-hostname
133 - vnfd:data-type: STRING
134 vnfd:name: ssh-username
135 - vnfd:data-type: STRING
136 vnfd:name: ssh-private-key
137 - vnfd:data-type: STRING
138 vnfd:default-value: ping
140 vnfd:read-only: 'true'
141 - vnfd:name: set-server
143 - vnfd:data-type: STRING
145 - vnfd:data-type: INTEGER
146 vnfd:name: server-port
147 - vnfd:name: set-rate
149 - vnfd:data-type: INTEGER
150 vnfd:default-value: '5'
152 - vnfd:name: start-traffic
153 - vnfd:name: stop-traffic
154 vnfd:initial-config-primitive:
155 - vnfd:config-primitive-ref: config
157 - vnfd:config-primitive-ref: start
159 - vnfd:config-primitive-ref: set-server
161 - vnfd:config-primitive-ref: set-rate