blob: c96ee40730e28bcc2bb1ce28deee7de96c13d3d4 [file] [log] [blame]
Jeremy Mordkoff6f07e6f2016-09-07 18:56:51 -04001{
2 "vnfd": [
3 {
4 "id": "ba145e82-626b-11e5-998d-6cb3113b406f",
5 "name": "ping-vnfd",
6 "short-name": "ping-vnfd",
7 "vendor": "RIFT.io",
8 "description": "This is an example RIFT.ware VNF",
9 "version": "1.0",
10 "internal-vld": [
11 {
12 "id" : "ba1478fe-626b-11e5-998d-6cb3113b406f",
13 "name": "fabric",
14 "short-name": "fabric",
15 "description": "Virtual link for internal fabric",
16 "type": "ELAN"
17 }
18 ],
19 "connection-point": [
20 {
21 "name": "ping-vnfd/cp0",
22 "type": "VPORT"
23 },
24 {
25 "name": "ping-vnfd/cp1",
26 "type": "VPORT"
27 }
28 ],
29 "vdu": [
30 {
31 "id": "ba14a504-626b-11e5-998d-6cb3113b406f",
32 "name": "iovdu",
33 "count": 2,
34 "vm-flavor": {
35 "vcpu-count": 4,
36 "memory-mb": 1638,
37 "storage-gb": 16
38 },
39 "guest-epa": {
40 "trusted-execution": true,
41 "mempage-size": "PREFER_LARGE",
42 "cpu-pinning-policy": "DEDICATED",
43 "cpu-thread-pinning-policy": "AVOID",
44 "numa-node-policy": {
45 "node-cnt": 2,
46 "mem-policy": "PREFERRED",
47 "node": [
48 {
49 "id": 1,
50 "vcpu": [ 0, 1 ],
51 "memory-mb": 8192
52 }
53 ]
54 }
55 },
56 "hypervisor-epa": {
57 "type": "PREFER_KVM"
58 },
59 "host-epa": {
60 "cpu-model": "PREFER_SANDYBRIDGE",
61 "cpu-arch": "PREFER_X86_64",
62 "cpu-vendor": "PREFER_INTEL",
63 "cpu-socket-count": "PREFER_TWO",
64 "cpu-feature": [ "PREFER_AES", "PREFER_CAT" ]
65 },
66 "image": "rw_openstack.qcow2",
67 "internal-connection-point": [
68 {
69 "id": "ba153744-626b-11e5-998d-6cb3113b406f",
70 "type": "VPORT"
71 },
72 {
73 "id": "ba15577e-626b-11e5-998d-6cb3113b406f",
74 "type": "VPORT"
75 }
76 ],
77 "internal-interface": [
78 {
79 "name": "eth0",
80 "vdu-internal-connection-point-ref": "ba153744-626b-11e5-998d-6cb3113b406f",
81 "virtual-interface": {
82 "type": "VIRTIO"
83 }
84 },
85 {
86 "name": "eth1",
87 "vdu-internal-connection-point-ref": "ba15577e-626b-11e5-998d-6cb3113b406f",
88 "virtual-interface": {
89 "type": "VIRTIO"
90 }
91 }
92 ],
93 "external-interface": [
94 {
95 "name": "eth0",
96 "vnfd-connection-point-ref": "ping-vnfd/cp0",
97 "virtual-interface": {
98 "type": "VIRTIO"
99 }
100 },
101 {
102 "name": "eth1",
103 "vnfd-connection-point-ref": "ping-vnfd/cp1",
104 "virtual-interface": {
105 "type": "VIRTIO"
106 }
107 }
108 ]
109 }
110 ],
111 "monitoring-param": [
112 {
113 "id": "ping-tx-rate-mp",
114 "name": "Ping Transmit Rate",
115 "description": "Ping transmit rate",
116 "group-tag": "group-1",
117 "min-value": 0,
118 "max-value": 100,
119 "current-value": 10,
120 "widget-type": "GAUGE",
121 "units": "gbps"
122 },
123 {
124 "id": "ping-rc-rate-mp",
125 "name": "Ping Receive Rate",
126 "description": "Ping receive rate",
127 "group-tag": "group-1",
128 "min-value": 0,
129 "max-value": 100,
130 "current-value": 10,
131 "widget-type": "GAUGE",
132 "units": "gbps"
133 },
134 {
135 "id": "ping-packet-size-mp",
136 "name": "Ping Packet Size",
137 "description": "Ping packet size",
138 "group-tag": "group-2",
139 "min-value": 0,
140 "max-value": 100,
141 "current-value": 10,
142 "widget-type": "GAUGE",
143 "units": "gbps"
144 }
145 ],
146 "rw-vnfd:control-param": [
147 {
148 "id": "ping-transmit-rate-cp1",
149 "name": "Transmit Rate",
150 "description": "Ping transmit rate",
151 "group-tag": "group-3",
152 "min-value": 0,
153 "max-value": 100,
154 "current-value": 10,
155 "step-value": 1,
156 "units": "gbps",
157 "widget-type": "GAUGE",
158 "url": "https://%s/api/operations/set-control-param",
159 "operation": "POST",
160 "payload": "{\"set-control-param\":{\"id\":\"%s\",\"obj-code\":\"VNFR\",\"control-id\":\"ping-transmit-rate-cp1\",\"value\":10} }"
161 },
162 {
163 "id": "ping-packet-size-cp1",
164 "name": "Ping Packet Size",
165 "description": "Packet size",
166 "group-tag": "group-4",
167 "min-value": 0,
168 "max-value": 100,
169 "current-value": 10,
170 "step-value": 1,
171 "units": "gbps",
172 "widget-type": "GAUGE",
173 "url": "https://%s/api/operations/set-control-param",
174 "operation": "POST",
175 "payload": "{\"set-control-param\":{\"id\":\"%s\",\"obj-code\":\"VNFR\",\"control-id\":\"ping-packet-size-cp1\",\"value\":10 } }"
176 }
177 ],
178 "rw-vnfd:action-param" : [
179 {
180 "id": "start-vnfr",
181 "name": "Start PING",
182 "description": "Start the PUNG VNFR",
183 "group-tag": "start-vnfr",
184 "url": "https://%s/api/operations/start-vnfr",
185 "operation": "POST",
186 "payload": "{\"start-vnfr\": { \"id\": \"%s\" } }"
187 },
188 {
189 "id": "stop-vnfr",
190 "name": "Stop PING",
191 "description": "Stop the PING VNFR",
192 "group-tag": "stop-vnfr",
193 "url": "https://%s/api/operations/stop-vnfr",
194 "operation": "POST",
195 "payload": "{\"stop-vnfr\": { \"id\": \"%s\" } }"
196 }
197 ]
198 },
199 {
200 "id": "ba1947da-626b-11e5-998d-6cb3113b406f",
201 "name": "pong-vnfd",
202 "short-name": "pong-vnfd",
203 "vendor": "RIFT.io",
204 "description": "This is an example RIFT.ware VNF",
205 "version": "1.0",
206 "internal-vld": [
207 {
208 "id" : "ba1478fe-626b-11e5-998d-6cb3113b406f",
209 "name": "fabric",
210 "short-name": "fabric",
211 "description": "Virtual link for internal fabric",
212 "type": "ELAN"
213 }
214 ],
215 "connection-point": [
216 {
217 "name": "pong-vnfd/cp0",
218 "type": "VPORT"
219 },
220 {
221 "name": "pong-vnfd/cp1",
222 "type": "VPORT"
223 }
224 ],
225 "vdu": [
226 {
227 "id": "ba14a504-626b-11e5-998d-6cb3113b406f",
228 "name": "iovdu",
229 "count": 2,
230 "vm-flavor": {
231 "vcpu-count": 4,
232 "memory-mb": 1638,
233 "storage-gb": 16
234 },
235 "guest-epa": {
236 "trusted-execution": true,
237 "mempage-size": "PREFER_LARGE",
238 "cpu-pinning-policy": "DEDICATED",
239 "cpu-thread-pinning-policy": "AVOID",
240 "numa-node-policy": {
241 "node-cnt": 2,
242 "mem-policy": "PREFERRED",
243 "node": [
244 {
245 "id": 1,
246 "vcpu": [ 0, 1 ],
247 "memory-mb": 8192
248 }
249 ]
250 }
251 },
252 "hypervisor-epa": {
253 "type": "PREFER_KVM"
254 },
255 "host-epa": {
256 "cpu-model": "PREFER_SANDYBRIDGE",
257 "cpu-arch": "PREFER_X86_64",
258 "cpu-vendor": "PREFER_INTEL",
259 "cpu-socket-count": "PREFER_TWO",
260 "cpu-feature": [ "PREFER_AES", "PREFER_CAT" ]
261 },
262 "image": "rw_openstack.qcow2",
263 "internal-connection-point": [
264 {
265 "id": "ba153744-626b-11e5-998d-6cb3113b406f",
266 "type": "VPORT"
267 },
268 {
269 "id": "ba15577e-626b-11e5-998d-6cb3113b406f",
270 "type": "VPORT"
271 }
272 ],
273 "internal-interface": [
274 {
275 "name": "eth0",
276 "vdu-internal-connection-point-ref": "ba153744-626b-11e5-998d-6cb3113b406f",
277 "virtual-interface": {
278 "type": "VIRTIO"
279 }
280 },
281 {
282 "name": "eth1",
283 "vdu-internal-connection-point-ref": "ba15577e-626b-11e5-998d-6cb3113b406f",
284 "virtual-interface": {
285 "type": "VIRTIO"
286 }
287 }
288 ],
289 "external-interface": [
290 {
291 "name": "eth0",
292 "vnfd-connection-point-ref": "pong-vnfd/cp0",
293 "virtual-interface": {
294 "type": "VIRTIO"
295 }
296 },
297 {
298 "name": "eth1",
299 "vnfd-connection-point-ref": "pong-vnfd/cp1",
300 "virtual-interface": {
301 "type": "VIRTIO"
302 }
303 }
304 ]
305 }
306 ],
307 "monitoring-param": [
308 {
309 "id": "pong-tx-rate-mp",
310 "name": "Pong Transmit Rate",
311 "description": "Pong transmit rate",
312 "group-tag": "group-1",
313 "min-value": 0,
314 "max-value": 100,
315 "current-value": 10,
316 "widget-type": "GAUGE",
317 "units": "gbps"
318 },
319 {
320 "id": "pong-rx-rate-mp",
321 "name": "Pong Receive Rate",
322 "description": "Pong receive rate",
323 "group-tag": "group-1",
324 "min-value": 0,
325 "max-value": 100,
326 "current-value": 10,
327 "widget-type": "GAUGE",
328 "units": "gbps"
329 },
330 {
331 "id": "pong-packet-size-mp",
332 "name": "Pong Packet Size",
333 "description": "Pong packet size",
334 "group-tag": "group-2",
335 "min-value": 0,
336 "max-value": 100,
337 "current-value": 10,
338 "widget-type": "TEXTBOX",
339 "units": "mb"
340 }
341 ],
342 "rw-vnfd:control-param" : [
343 {
344 "id": "pong-receive-rate-cp1",
345 "name": "Pong Receive Rate",
346 "description": "Pong receive rate",
347 "group-tag": "group-3",
348 "min-value": 0,
349 "max-value": 100,
350 "current-value": 0,
351 "step-value": 1,
352 "units": "gbps",
353 "widget-type": "GAUGE",
354 "url": "https://{host}/api/operations/vnfr-control-param/",
355 "operation": "POST",
356 "payload": "{\"set-control-param\":{\"id\":\"%s\",\"obj-code\":\"VNFR\",\"control-id\":\"pong-receive-rate-cp1\",\"value\":10} }"
357 },
358 {
359 "id": "pong-packet-size-cp1",
360 "name": "Pong Packaet Size",
361 "description": "Packet size",
362 "group-tag": "group-4",
363 "min-value": 0,
364 "max-value": 100,
365 "current-value": 0,
366 "step-value": 1,
367 "units": "gbps",
368 "widget-type": "GAUGE",
369 "url": "https://%s/api/operations/set-control-param",
370 "operation": "POST",
371 "payload": "{\"set-control-param\":{\"id\":\"%s\",\"obj-code\":\"VNFR\",\"control-id\":\"pong-packet-size-cp1\",\"value\":10 } }"
372 }
373 ],
374 "rw-vnfd:action-param" : [
375 {
376 "id": "start-vnfr",
377 "name": "Start PONG",
378 "description": "Start the PONG VNFR",
379 "group-tag": "start-vnfr",
380 "url": "https://%s/api/operations/start-vnfr",
381 "operation": "POST",
382 "payload": "{\"start-vnfr\": { \"id\": \"%s\" } }"
383 },
384 {
385 "id": "stop-vnfr",
386 "name": "Stop PONG",
387 "description": "Stop the PONG VNFR",
388 "group-tag": "stop-vnfr",
389 "url": "https://%s/api/operations/stop-vnfr",
390 "operation": "POST",
391 "payload": "{\"stop-vnfr\": { \"id\": \"%s\" } }"
392 }
393 ]
394 }
395 ]
396}