Support run cyclictest on BareMetal
[yardstick.git] / samples / yang.yaml
1  module clearwater {
2
3        namespace "http://localhost/ietf-inet-types.yang";
4
5        prefix "yang";
6
7        organization "HP";
8
9        contact "TBD";
10
11        description "This module defines a VNF Deployment Unit.";
12      revision "2014-05-18" {
13
14          description
15
16            "Initial version";
17
18          reference
19
20            "RFC XXXX";
21
22        }
23       container clearwater {
24
25          description
26
27            "Vdus used in a vnfd";
28
29        list ellis {
30       key id;
31       leaf id{
32       type string;
33       description "key ID for vdu1";
34       }
35          description
36
37          "Vdu key";
38
39
40
41          leaf instance-num {
42
43          type uint16{
44          range 1..6;}
45                                  default 1;
46
47
48          description
49
50            "Number of instances of the said VDU which shall be
51      instantiated";
52
53          }
54
55          leaf vm-image {
56
57          type string;
58          reference  "uri";
59
60
61          description
62
63            "Reference to a VM image";
64
65          }
66          container resource {
67          description
68
69                "The required resource";
70
71              container cpu {
72
73                description
74
75                  "The required computation resource";
76
77
78
79                leaf vCPU_num {
80
81                  type uint32{
82          range 4;
83          }
84
85                  description
86
87                    "The number of virtual CPU units";
88
89                }
90
91
92
93                list vCPU-spec {
94
95                  key "name";
96
97
98
99                  description
100
101                    "Processor characteristics for the VDU";
102
103
104
105                  leaf name {
106
107                    type string;
108
109                    description
110
111                      "Name of vCPU-spec";
112
113                  }
114          leaf description {
115
116                    type string;
117
118                    description
119
120                      "Description of vCPU-spec";
121
122                  }
123
124                  leaf value {
125
126                    type uint32;
127
128                    description
129
130                      "Value of vCPU-spec";
131
132                  }
133
134                }
135
136              }
137
138              container memory {
139
140                description
141
142                  "The required memory resource";
143
144                leaf memory_size {
145
146                  type uint32{
147          range 4096;
148          }
149
150                  description
151
152                    "Memory size, unit:MBytes";
153
154                }
155
156                list memory-spec {
157
158                  key name;
159
160
161
162                  description
163
164                    "Memory characteristics for the VDU";
165
166
167
168                  leaf name {
169
170                    type string;
171
172                    description
173
174                      "Name of memory-spec";
175
176                  }
177
178
179
180                  leaf description {
181
182                    type string;
183
184                    description
185
186                      "Description of memory-spec";
187
188                  }
189
190
191
192                  leaf value {
193
194                    type uint32;
195
196                    description
197
198                      "Value of memory-spec";
199
200                  }
201
202           }
203
204              }
205
206
207
208              container disk {
209
210                description
211
212                  "The required storage resource";
213
214
215
216                leaf disk-size {
217
218                  type uint32{
219      range 2048;
220     }
221                  description
222
223                    "Virtual storage size, unit:MBytes";
224                }
225
226
227
228                list disk-KQI {
229
230                  key name;
231
232
233
234                  description
235
236                    "Storage characteristics in the VDU";
237
238
239
240                  leaf name {
241
242                    type string;
243
244                    description
245
246                      "Name of disk-KQI";
247
248                  }
249          leaf description {
250
251                    type string;
252
253                    description
254
255                      "Description of disk-KQI";
256
257                  }
258
259
260
261                  leaf value {
262
263                    type uint32;
264
265                    description
266
267                      "Value of disk-KQI";
268
269                  }
270
271                }
272
273              }
274
275
276
277              container vnic {
278
279                description
280
281                  "Virtual network interface card (vnic) resource";
282
283
284
285                leaf vnic-num {
286
287                  type uint32{
288          range 2;
289          }
290
291                  description
292
293                    "The total number of virtual vnic";
294
295                }
296           }
297
298            }
299
300
301
302            container workflow-script {
303
304              description
305
306                "VDU workflow script";
307
308
309
310              leaf init {
311
312                type string;
313          default "start.sh";
314
315
316                description
317
318                  "VDU initialization script";
319              }
320
321
322
323              leaf terminate {
324
325                type string;
326          default "stop.sh";
327
328
329                description
330
331                  "VDU termination script";
332         }
333
334              leaf graceful-shutdown {
335
336                type string;
337          default "shutdown.sh";
338
339
340                description
341
342                  "VDU graceful shutdown script";
343
344              }
345
346            }
347
348          }
349      list bono {
350       key id;
351       leaf id{
352       type string;
353       description "key ID for vdu2";
354       }
355          description
356
357          "Vdu key";
358
359
360
361          leaf instance-num {
362
363          type uint16;
364          default 3;
365
366
367          description
368
369            "Number of instances of the said VDU which shall be
370      instantiated";
371
372          }
373
374
375
376          leaf vm-image {
377
378          type string;
379          reference "URI";
380
381
382          description
383
384            "Reference to a VM image";
385
386          }
387
388
389
390          container resource {
391          description
392
393                "The required resource";
394
395
396
397              container cpu {
398
399                description
400
401                  "The required computation resource";
402
403
404
405                leaf vCPU_num {
406
407                  type uint32{
408          range 3;
409          }
410
411                  description
412
413                    "The number of virtual CPU units";
414
415                }
416
417
418
419                list vCPU-spec {
420
421                  key "name";
422
423
424
425                  description
426
427                    "Processor characteristics for the VDU";
428
429
430
431                  leaf name {
432
433                    type string;
434
435                    description
436
437                      "Name of vCPU-spec";
438
439                  }
440          leaf description {
441
442                    type string;
443
444                    description
445
446                      "Description of vCPU-spec";
447
448                  }
449
450
451
452                  leaf value {
453
454                    type uint32;
455
456                    description
457
458                      "Value of vCPU-spec";
459
460                  }
461
462                }
463
464              }
465
466
467
468              container memory {
469
470                description
471
472                  "The required memory resource";
473
474
475
476                leaf memory_size {
477
478                  type uint32{
479          range 2048;
480          }
481
482                  description
483
484                    "Memory size, unit:MBytes";
485
486                }
487
488                list memory-spec {
489
490                  key name;
491
492                  description
493
494                    "Memory characteristics for the VDU";
495
496
497
498                  leaf name {
499
500                    type string;
501
502                    description
503
504                      "Name of memory-spec";
505
506                  }
507
508
509
510                  leaf description {
511
512                    type string;
513
514                    description
515
516                      "Description of memory-spec";
517
518                  }
519
520
521
522                  leaf value {
523
524                    type uint32;
525
526                    description
527
528                      "Value of memory-spec";
529
530                  }
531
532           }
533
534              }
535
536
537
538              container disk {
539
540                description
541
542                  "The required storage resource";
543
544
545
546                leaf disk-size {
547
548                  type uint32{
549          range 3000;
550          }
551
552                  description
553
554                    "Virtual storage size, unit:MBytes";
555
556                }
557
558
559
560                list disk-KQI {
561
562                  key name;
563
564
565
566                  description
567
568                    "Storage characteristics in the VDU";
569
570
571
572                  leaf name {
573
574                    type string;
575
576                    description
577
578                      "Name of disk-KQI";
579
580                  }
581          leaf description {
582
583                    type string;
584
585                    description
586
587                      "Description of disk-KQI";
588
589                  }
590
591
592
593                  leaf value {
594
595                    type uint32;
596
597                    description
598
599                      "Value of disk-KQI";
600
601                  }
602
603                }
604
605              }
606
607
608
609              container vnic {
610
611                description
612
613                  "Virtual network interface card (vnic) resource";
614
615
616
617                leaf vnic-num {
618
619                  type uint32{
620          range 2;
621          }
622
623                  description
624
625                    "The total number of virtual vnic";
626
627                }
628           }
629
630            }
631
632
633
634            container workflow-script {
635
636              description
637
638                "VDU workflow script";
639
640
641
642              leaf init {
643
644                type string;
645          default "start.sh";
646
647
648                description
649
650                  "VDU initialization script";
651
652              }
653
654
655
656              leaf terminate {
657
658                type string;
659          default "stop.sh";
660
661
662                description
663
664                  "VDU termination script";
665
666              }
667
668              leaf graceful-shutdown {
669
670                type string;
671          default "shutdown.sh";
672
673
674                description
675
676                  "VDU graceful shutdown script";
677
678              }
679
680            }
681
682          }
683
684        }
685
686    }
687