etsi-nfv-ns.yang 46.7 KB
Newer Older
1
submodule etsi-nfv-ns {
2
  yang-version 1.1;
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
3
  belongs-to etsi-nfv-descriptors {
4
5
6
    prefix nfv;
  }

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
7
  include etsi-nfv-common;
8
9
10
  include etsi-nfv-vnf;
  include etsi-nfv-pnf;

11
12
13
  description
    "Models for NS according to ETSI GS NFV-IFA 014.";

14
  revision 2019-03-18 {
15
16
    description
      "Initial revision
17
       Common data structure to support NSD according to:
18
       ETSI GS NFV-IFA 014 Ed261v252";
19

20
    reference
21
      "ETSI GS NFV-IFA 014 Ed261v252";
22
23
24
25
26
27
  }

  grouping resource-handle {
    leaf vim-id {
      type string;
    }
28
    leaf resource-provider-id {
29
30
31
32
33
34
35
      type string;
    }
    leaf resource-id {
      type string;
    }
  }

36

37
  grouping nsd {
38
39
40
41
42
43
44
45
46
    leaf id {
      type string;
      description
        "Identifier of this NSD information element. It Globally
         uniquely identifies an instance of the NSD.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }
47

48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
    leaf designer {
      type string;
      description
        "Identifies the designer of the NSD.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }

    leaf version {
      type string;
      description
        "Identifies the version of the NSD.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }

    leaf name {
      type string;
      description
        "Provides the human readable name of the NSD.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }

    leaf invariant-id {
      type string;
      description
        "Identifies an NSD in a version independent manner. This
         attribute is invariant across versions of the network
         service descriptor.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }

    leaf-list nested-nsd-id {
      must ". != ../id";
      type leafref {
        path "../../nsds/id";
90
      }
91
92
93
94
95
96
      description
        "References the NSD of a constituent nested NS.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }
97

98
99
100
    leaf-list vnfd-id {
      type leafref {
        path "../../vnfds/id";
101
      }
102
103
104
105
106
107
      description
        "References the VNFD of a constituent VNF.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }
108

109
110
111
    leaf-list pnfd-id {
      type leafref {
        path "../../pnfds/id";
112
      }
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
      description
        "References the PNFD of a constituent PNF.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }

    list sapd {
      key "id";
      description
        "Provides the descriptor of a service access point of the
         network service.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
128

129
130
      leaf id {
        type string;
131
        description
132
          "Identifier of this Cpd information element.";
133
        reference
134
          "GS NFV IFA014: Section 6.6.3.1 Cpd information element";
135
136
      }

137
138
      leaf address-assignment {
        type boolean;
139
        description
140
141
142
143
144
145
          "Specify whether the SAP address assignment is under the
           responsibility of management and orchestration functions
           or not. If it is set to True, management and
           orchestration functions are responsible for assigning
           addresses to the access points instantiated from this
           SAPD.";
146
        reference
147
148
          "GS NFV IFA014: Section 6.2.3.2 Sapd information element";
      }
149

150
151
152
153
154
      choice cpd-or-virtual-link {
        leaf virtual-link-desc {
          type leafref {
            path "../../virtual-link-desc/id";
          }
155
          description
156
157
            "References the descriptor of the NS VL instance to
             which the SAP instantiated from this SAPD connects to.";
158
159
          reference
            "GS NFV IFA014: Section 6.2.3.2 Sapd information element";
160
        }
161

162
163
164
165
166
167
        choice associated-cpd-id {
          container vnf {
            leaf vnfd-id {
              mandatory true;
              type leafref {
                path "../../../../nfv:vnfds/nfv:id";
168
              }
169
170
              must "boolean(../../../vnfd-id[.=current()])";
            }
171

172
173
174
175
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
176
177
              }
            }
178
          }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
179

180
181
182
183
184
          container pnf {
            leaf pnfd-id {
              mandatory true;
              type leafref {
                path "../../../../nfv:pnfds/nfv:id";
185
              }
186
187
              must "boolean(../pnfd-id[.=current()])";
            }
188

189
190
191
192
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
193
194
              }
            }
195
196
197
198
199
200
          }
          container ns {
            leaf nsd-id {
              mandatory true;
              type leafref {
                path "../../../../nfv:nsds/nfv:id";
201
              }
202
203
              must "boolean(../nsd-id[.=current()])";
            }
204

205
206
207
208
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../nsd-id)/../nfv:sapd/nfv:id";
209
210
211
212
              }
            }
          }
        }
213
      }
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
    }

    list virtual-link-desc {
      key "id";
      description
        "Provides the constituent VLDs.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
      leaf id {
        type string;
        description
          "Identifier of the NsVirtualLinkDesc information element.
           It uniquely identifies a VLD.";
        reference
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
           information element";
      }
232

233
234
235
      uses connectivity-type;

      list df {
236
        key "id";
237

238
        description
239
240
241
          "The VirtualLinkDf information element specifies
           properties for instantiating a VL according to a
           specific flavour.";
242
        reference
243
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
244
           information element";
245

246
247
        leaf id {
          type string;
248
          description
249
250
            "Identifies this VirtualLinkDf information element
             within a VLD.";
251
          reference
252
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
253
             information element";
254
        }
255

256
257
        container qos {
          presence "VL QoS parameters";
258
          description
259
260
            "The QoS information element specifies quality of
             service parameters applicable to a VL.";
261
          reference
262
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
263
264
             information element";

265
266
267
268
          leaf latency {
            mandatory true;
            type uint32;
            units "ms";
269
            description
270
              "Specifies the maximum latency in ms.";
271
            reference
272
273
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
274
275
          }

276
277
278
279
          leaf packet-delay-variation {
            mandatory true;
            type uint32;
            units "ms";
280
            description
281
              "Specifies the maximum jitter in ms.";
282
            reference
283
284
285
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
          }
286

287
288
289
290
          leaf packet-loss-ratio {
            type decimal64 {
              fraction-digits "2";
              range "0..1.00";
291
            }
292
293
294
295
296
            description
              "Specifies the maximum packet loss ratio.";
            reference
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
297
          }
298

299
300
          leaf priority {
            type uint32;
301
            description
302
303
              "Specifies the priority level in case of
               congestion on the underlying physical links.";
304
            reference
305
306
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
307
308
309
          }
        }

310
        leaf service-availability-level {
311
          type enumeration {
312
313
314
            enum "level-1";
            enum "level-2";
            enum "level-3";
315
          }
316
          description
317
318
319
320
321
            "Specifies one of the three levels defined in ETSI
             ETSI GS NFV-REL 001 [i.5]
               * Level 1.
               * Level 2.
               * Level 3.";
322
          reference
323
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
324
             information element";
325
        }
326
      }
327

328
329
330
331
332
      leaf test-access {
        type enumeration {
          enum none;
          enum passive-monitoring;
          enum active;
333
        }
334
335
336
337
338
        description
          "Specifies test access facilities expected on the VL.";
        reference
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
           information element";
339
      }
340

341
342
      leaf description {
        type string;
343
        description
344
345
          "Provides human-readable information on the purpose of
           the virtual link (e.g. VL for control plane traffic).";
346
        reference
347
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
348
           information element";
349
350
351
      }
      uses security-parameters;
    }
352

353
354
    list vnffgd {
      key "id";
355

356
357
358
359
360
361
362
363
364
365
366
367
368
369
      description
        "Provides the descriptors of the applicable forwarding
         graphs.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";

      leaf id {
        type string;
        description
          "Identifier of this Vnffgd information element. It
           uniquely identifies a VNFFGD.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
370
             element";
371
372
373
374
375
      }

      leaf-list vnf-profile-id {
        type leafref {
          path "../../df/vnf-profile/id";
376
        }
377
378
379
380
381
382
        description
          "References the VnfProfile of a constituent VNF.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
383

384
385
386
      leaf-list pnf-profile-id {
        type leafref {
          path "../../df/pnf-profile/id";
387
        }
388
389
390
391
392
393
        description
          "References the PnfProfile of a constituent PNF.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
394

395
396
397
      leaf-list nested-ns-profile-id {
        type leafref {
          path "../../df/ns-profile/id";
398
        }
399
400
401
402
403
404
        description
          "References the NsProfile of a nestedNS.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
405

406
407
408
      leaf virtual-link-profile-id {
        type leafref {
          path "../../df/virtual-link-profile/id";
409
        }
410
411
412
413
414
415
416
        description
          "References the Virtual Link Profile of a constituent
             VL.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
417

418
419
      list cpd-pool {
        key "id";
420

421
422
423
424
425
426
427
        description
          "Describes a pool of descriptors of connection points
           attached to one of the constituent VNFs and PNFs and/or
           one of the SAPs of the parent NS or of a nested NS.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
428

429
430
431
        leaf id {
          type string;
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
432

433
434
435
436
437
438
439
440
        choice constituent-base-element-id {
          mandatory "true";
          container vnf-profile {
            leaf vnf-profile-id {
              must ". = deref(../../vnfd-profile-id)" {
              }
              type leafref {
                path "/nfv/nsds/df/vnf-profile/id";
441
442
              }
            }
443
444
445
446
447
448
449
          }
          container pnf-profile {
            leaf pnf-profile-id {
              must ". = deref(../../pnfd-profile-id)" {
              }
              type leafref {
                path "/nfv/nsds/df/pnf-profile/id";
450
451
              }
            }
452
453
454
455
456
457
458
          }
          container ns-profile {
            leaf ns-profile-id {
              must ". = deref(../../ns-profile-id)" {
              }
              type leafref {
                path "/nfv/nsds/df/ns-profile/id";
459
460
              }
            }
461
          }
462
463
464
465
466
467
          description
            "Reference to the profile of an NS constituent.";
          reference
            "GS NFV IFA014: Section 6.4.8 CpdInConstituentElement
             information element";
        }
468

469
470
471
472
        choice constituent-cpd-id {
          container vnf {
            leaf vnfd-id {
              must ". = deref(../../vnfd-profile-id)/../vnfd-id" {
473
              }
474
475
              type leafref {
                path "/nfv/vnfds/id";
476
477
              }
            }
478
479
480
            leaf cpd-id {
              type leafref {
                path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
481
482
              }
            }
483
484
485
486
487
488
489
          }
          container pnf {
            leaf pnfd-id {
              must ". = deref(../../pnfd-profile-id)/../pnfd-id" {
              }
              type leafref {
                path "/nfv/pnfds/id";
490
              }
491
492
493
494
            }
            leaf pnf-cpd-id {
              type leafref {
                path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
495
496
497
              }
            }
          }
498
499
500
501
502
          container ns {
            leaf nsd-id {
              must ". = deref(../../nested-ns-profile-id)/" +
                   "../nsd-id" {
              }
503

504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
              type leafref {
                path "/nfv/nsds/id";
              }
            }
            leaf sap-cpd-id {
              type leafref {
                path "deref(../nsd-id)/../nfv:sapd/nfv:id";
              }
            }
          }
          description
            "A reference to the descriptor of a connection point
             attached to one of the constituent VNFs and PNFs or to
             the descriptor of a NS SAP.";
          reference
            "GS NFV IFA014: Section 6.4.4.2 CpdPool information
             element";
        }
      }

      list nfpd {
        key "id";

        description
          "The network forwarding path associated to the VNFFG.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";

        leaf id {
          type string;
          description
            "Identifies this nfpd information element within a
             VNFFGD.";
          reference
            "GS NFV IFA014: Section 6.4.3.2 Nfpd information
             element";
        }

        leaf rule {
          type string;
          description
            "Provides an NFP classification and selection rule.
             The rule may be expressed as a criteria constructed
             out of atomic assertions linked by Boolean operators
             AND, OR and NOT.";
          reference
            "GS NFV IFA014: Section 6.4.3.2 Nfpd information
             element";
        }

        list position-desc-id {
556
557
558
          key "id";

          description
559
560
561
562
563
564
565
566
567
568
569
            "Describes a position in the NFP in terms of one or
             more CP profiles and rules for distributing the
             traffic among CP and SAP instances created from the
             CPD or SAPD associated to these profiles. This shall
             be connection point profile, which is either a CPD
             associated with the VnfProfile of a constituent VNF,
             or a CPD associated with the PnfProfile of a
             constituent PNF, or a SAPD associated with the
             NsProfile of a nested NS. The related VnfProfile,
             PnfProfile and NsProfile shall be included in the
             parent VNFFGD.";
570
          reference
571
            "GS NFV IFA014: Section 6.4.3.2 Nfpd information
572
573
574
575
576
             element";

          leaf id {
            type string;
            description
577
              "Identifier of this NfpPositionDesc element.";
578
            reference
579
580
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
581
582
          }

583
          list cp-profile-id {
584
585
586
            key "id";

            description
587
588
589
590
591
592
              "References the profile of a connection point to be
               traversed by the traffic flows matching the criteria.
               This shall be a connection point attached to one of
               the constituent VNFs and PNFs of the parent VNFFG,
               or a SAP of one of the constituent nested NSs of the
               parent VNFFG.";
593
            reference
594
595
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
596
597
598
599

            leaf id {
              type string;
              description
600
601
                "Identifier of this CpProfile information element.
                 It uniquely identifies a CpProfile.";
602
              reference
603
                "GS NFV IFA014: Section 6.4.6.2 CpProfile
604
605
606
                 information element";
            }

607
            list constituent-profile-elements {
608
609
610
              key "id";

              description
611
                "Specifies the constituents of the CpProfile.";
612
              reference
613
                "GS NFV IFA014: Section 6.4.6.2 CpProfile
614
615
616
617
618
                 information element";

              leaf id {
                type string;
                description
619
                  "Specifies the constituents of the CpProfile.";
620
                reference
621
622
                  "GS NFV IFA014: Section 6.4.7.2
                   ConstituentProfileElements information element";
623
624
              }

625
626
              leaf cpd-id {
                type string;
627
                description
628
629
630
631
                  "References the VNF external CPD for a given
                   VnfProfile, or the PNF external CPD for a given
                   PnfProfile, or a NS SAPD for a give NsProfile
                   identified by the constituentBasedElementId.";
632
                reference
633
634
                  "GS NFV IFA014: Section 6.4.7.2
                   ConstituentProfileElements information element";
635
636
637
638
639
              }
            }
          }
        }
      }
640
    }
641

642
643
644
645
646
647
    leaf-list autoscale-rule {
      type string;
    }
    list lifecycle-management-script {
      key "event";
      leaf event {
648
649
        type string;
      }
650
651
      leaf script {
        type string;
652
      }
653
    }
654

655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
    list df {
      min-elements 1;
      must "default-instantiation-level or " +
           "count(ns-instantiation-level) = 1" {
        error-message
          "default-instantiation-level must be present if there " +
          "multiple instantion-level";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
      }

      key "id";
      description
        "Identifies a DF within the scope of an NSD.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";

      leaf id {
        type string;
        description
          "Identifies this NsDf information element. It identifies
           a NS DF within the NSD.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
      }

      leaf flavour-key {
        type leafref {
          path "../monitored-info/id";
685
        }
686
687
688
        description
          "Assurance parameter against which this flavour is being
           described.
689

690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
           The key can be a combination of multiple assurance
           parameters with a logical relationship between them.
           The parameters should be present as a monitoredInfo
           attribute in the NSD.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
      }

      list vnf-profile {
        must "min-number-of-instances <= max-number-of-instances";
        must "boolean(../../vnfd-id[.=current()/vnfd-id])" {
          error-message "VNFDs in the profile has to be listed as a " +
                        "dependency of the network service " +
                        "descriptor.";
        }
705
706
        key "id";
        description
707
          "VNF profile to be used for the NS flavour.";
708
        reference
709
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
710
711
712

        leaf id {
          type string;
713
          description
714
715
            "Identifier of this vnfProfile information element. It
             uniquely identifies a VnfProfile.";
716
          reference
717
718
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
719
720
        }

721
722
        leaf vnfd-id {
          mandatory true;
723
          type leafref {
724
            path "/nfv/vnfds/id";
725
          }
726
          description
727
728
729
730
731
            "References a VNFD.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }
732

733
734
735
736
737
738
739
        leaf flavour-id {
          mandatory true;
          type leafref {
            path "deref(../vnfd-id)/../df/id";
          }
          description
            "Identifies a flavour within the VNFD.";
740
          reference
741
742
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
743
744
        }

745
746
747
748
        leaf instantiation-level {
          mandatory true;
          type leafref {
            path "deref(../flavour-id)/../instantiation-level/id";
749
          }
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
          description
            "Identifier of the instantiation level of the VNF DF
             to be used for instantiation. If not present, the
             default instantiation level as declared in the VNFD
             shall be used.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }

        leaf min-number-of-instances {
          default 1;
          type uint16;
          description
            "Minimum number of instances of the VNF based on this
             VNFD that is permitted to exist for this VnfProfile.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }

        leaf max-number-of-instances {
          default 1;
          type uint16;
          description
            "Maximum number of instances of the VNF based on this
             VNFD that is permitted to exist for this VnfProfile.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }

        uses local-affinity-or-anti-affinity-rule;

        list affinity-or-anti-affinity-group {
785
          key "id";
786

787
          description
788
789
            "Identifier(s) of the affinity or anti-affinity
             group(s) the VnfProfile belongs to.";
790
          reference
791
792
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
793
794
795

          leaf id {
            type leafref {
796
              path "../../../affinity-or-anti-affinity-group/id";
797
798
            }
          }
799
        }
800

801
802
803
804
805
806
807
808
809
        list virtual-link-connectivity {
          key "virtual-link-profile-id";

          description
            "Defines the connection information of the VNF, it
             contains connection relationship between a VNF
             connection point and a NS Virtual Link.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
810
               element";
811

812
          leaf virtual-link-profile-id {
813
            type leafref {
814
              path "../../../virtual-link-profile/id";
815
            }
816
            description
817
              "Reference an NS VL profile.";
818
            reference
819
820
              "GS NFV IFA014: Section 6.3.7.2, NsVirutalLinkConnectivity
               information element.";
821
822
          }

823
824
          list constituent-cpd-id {
            key "constituent-base-element-id";
825

826
            description
827
828
829
830
              "Describes a connection point on a VNF/PNF or a SAP
               which connects to virtual links instantiated from
               the profile identified in the virtualLinkProfileId
               attribute.";
831
            reference
832
833
              "GS NFV IFA014: Section 6.3.7
               NsVirtualLinkConnectivity information element";
834

835
            leaf constituent-base-element-id {
836
              type leafref {
837
                path "../../../id";
838
              }
839
840
841
842
843
              description
                "Reference to the profile of an NS constituent.";
              reference
                "GS NFV IFA014: Section 6.4.8
                 CpdInConstituentElement information element";
844
845
            }

846
            leaf constituent-cpd-id {
847
              type leafref {
848
                path "deref(../../../vnfd-id)/../nfv:ext-cpd/nfv:id";
849
              }
850
              description
851
852
853
                "A reference to the descriptor of a connection point
                 attached to one of the constituent VNFs and PNFs or to
                 the descriptor of a NS SAP.";
854
              reference
855
856
                "GS NFV IFA014: Section 6.4.4.2 CpdPool information
                 element";
857
            }
858
859
860
          }
        }
      }
861

862
863
864
865
866
867
868
      list pnf-profile {
        key "id";
        must "boolean(../../pnfd-id[.=current()/pnfd-id])" {
          error-message "PNFDs in the profile has to be listed as a " +
                        "dependency of the network service " +
                        "descriptor.";
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
869

870
871
872
873
874
875
876
877
878
        leaf id {
          type string;
          description
            "Identifier of this PnfProfile information element.
             It uniquely identifies a PnfProfile.";
          reference
            "GS NFV IFA014: Section 6.3.6.2 PnfProfile information
             element";
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
879

880
881
882
        leaf pnfd-id {
          type leafref {
            path "/nfv/pnfds/id";
883
          }
884
885
886
887
888
          description
            "References a PNFD.";
          reference
            "GS NFV IFA014: Section 6.3.6.2 PnfProfile information
             element";
889
        }
890

891
892
        list virtual-link-connectivity {
          key "virtual-link-profile-id";
893

894
895
896
897
898
899
900
          description
            "Defines the connection information of the PNF, it
             contains connection relationship between a PNF
             connection point and a NS Virtual Link.";
          reference
            "GS NFV IFA014: Section 6.3.6.2 PnfProfile information
             element";
901

902
          leaf virtual-link-profile-id {
903
            type leafref {
904
              path "../../../virtual-link-profile/id";
905
906
            }
            description
907
              "Reference an NS VL profile.";
908
            reference
909
910
              "GS NFV IFA014: Section 6.3.7.2, NsVirutalLinkConnectivity
               information element.";
911
912
          }

913
914
          list constituent-cpd-id {
            key "constituent-base-element-id";
915
916

            description
917
918
919
920
              "Describes a connection point on a VNF/PNF or a SAP
               which connects to virtual links instantiated from
               the profile identified in the virtualLinkProfileId
               attribute.";
921
            reference
922
923
              "GS NFV IFA014: Section 6.3.7
               NsVirtualLinkConnectivity information element";
924

925
            leaf constituent-base-element-id {
926
              type leafref {
927
                path "../../../id";
928
              }
929
              description
930
                "Reference to the profile of an NS constituent.";
931
              reference
932
933
                "GS NFV IFA014: Section 6.4.8
                 CpdInConstituentElement information element";
934
935
            }

936
937
938
939
            leaf constituent-cpd-id {
              type leafref {
                path "deref(../../../pnfd-id)/../nfv:ext-cpd/nfv:id";
              }
940
              description
941
942
943
                "A reference to the descriptor of a connection point
                 attached to one of the constituent VNFs and PNFs or to
                 the descriptor of a NS SAP.";
944
              reference
945
946
                "GS NFV IFA014: Section 6.4.4.2 CpdPool information
                 element";
947
948
949
            }
          }
        }
950
      }
951

952
953
      list virtual-link-profile {
        key "id";
954

955
956
957
958
959
960
961
        description
          "VL profile to be used for the NS flavour.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";

        leaf id {
          type string;
962
          description
963
964
            "Uniquely identifies this VirtualLinkProfile
             information element.";
965
          reference
966
967
968
            "GS NFV IFA014: Section 6.3.2.2 VirtualLinkProfile
             information element";
        }
969

970
971
972
973
        leaf virtual-link-desc-id {
          mandatory true;
          type leafref {
            path "../../../virtual-link-desc/id";
974
          }
975
976
977
978
979
980
          description
            "Uniquely references a VLD.";
          reference
            "GS NFV IFA014: Section 6.3.2.2 VirtualLinkProfile
             information element";
        }
981

982
983
984
985
        leaf flavour-id {
          mandatory true;
          type leafref {
            path "deref(../virtual-link-desc-id)/../df/id";
986
          }
987
988
989
990
991
992
          description
            "Identifies a flavour within the VLD.";
          reference
            "GS NFV IFA014: Section 6.3.2.2 VirtualLinkProfile
             information element";
        }
993

994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
        uses local-affinity-or-anti-affinity-rule;

        list affinity-or-anti-affinity-group {
          key "id";

          description
            "Identifies an affinity or anti-affinity group the
             VLs instantiated according to the VlProfile belong
             to.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";

          leaf id {
1008
            type leafref {
1009
              path "../../../affinity-or-anti-affinity-group/id";
1010
1011
            }
          }
1012
        }
1013

1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
        container max-bitrate-requirements {
          description
            "Specifies the maximum bitrate requirements for a VL
             instantiated according to this profile.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";
          uses link-bitrate-requirements;
        }
        container min-bitrate-requirements {
          description
            "Specifies the minimum bitrate requirements for a VL
             instantiated according to this profile.";
          reference
            "GS NFV IFA014: Section 6.3.4.2 VirtualLinkProfile
             information element";
          uses link-bitrate-requirements;
        }
      }
1033

1034
1035
      list scaling-aspect {
        key "id";
1036

1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
        description
          "The scaling aspects supported by this DF of the NS.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";

        leaf id {
          type string;
          description
            "Identifier of this NsScalingAspect information element.
             It uniquely identifies the NS scaling aspect in an
             NSD.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
1051
1052
        }

1053
1054
1055
1056
1057
1058
1059
1060
1061
        leaf name {
          type string;
          description
            "Provides a human readable name of the NS scaling
             aspect.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
1062

1063
1064
        leaf description {
          type string;
1065
          description
1066
1067
            "Provides a human readable description of the NS
             scaling aspect.";
1068
          reference
1069
1070
1071
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
1072

1073
1074
1075
        leaf scaling-level {
          type leafref {
            path "../../ns-instantiation-level/id";
1076
          }
1077
1078
1079
1080
1081
1082
1083
          description
            "Describes the details of an NS level.";
          reference
            "GS NFV IFA014: Section 6.7.2.2 NsScalingAspect
             information element";
        }
      }
1084

1085
1086
      list affinity-or-anti-affinity-group {
        key "id";
1087

1088
1089
1090
1091
1092
1093
1094
1095
1096
        description
          "Specifies affinity or anti-affinity relationship
           applicable between the VNF instances created using
           different VNFDs, the Virtual Link instances created
           using different NsVirtualLinkDescs or the nested NS
           instances created using different NSDs in the same
           affinity or anti-affinity group.";
        reference
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
1097

1098
1099
1100
1101
1102
1103
1104
1105
        leaf id {
          type string;
          description
            "Identifier of Identifier of this
             AffinityOrAntiAffinityGroup information element.";
          reference
            "GS NFV IFA014: Section 6.3.5.2 AffinityOrAntiAffinity
             information element";
1106
1107
        }