etsi-nfv-ns.yang 49.2 KB
Newer Older
1
submodule etsi-nfv-ns {
2
  yang-version 1.1;
3
4
5
6
  belongs-to etsi-nfv {
    prefix nfv;
  }

7
8
9
  import etsi-nfv-common {
    prefix common;
  }
10

11
12
13
  include etsi-nfv-vnf;
  include etsi-nfv-pnf;

14
15
16
17
18
19
  description
    "Models for NS according to ETSI GS NFV-IFA 014.";

  revision 2017-01-20 {
    description
      "Initial revision
20
21
       Common data structure to support NSD according to:
       ETSI GS NFV-IFA 011 Ed251v243";
22

23
    reference
24
      "ETSI GS NFV-IFA 011 Ed251v243";
25
26
27
28
29
30
  }

  grouping resource-handle {
    leaf vim-id {
      type string;
    }
31
    leaf resource-provider-id {
32
33
34
35
36
37
38
      type string;
    }
    leaf resource-id {
      type string;
    }
  }

39

40
41
42
  grouping nsd {
    list nsd {
      key "id";
43

44
45
46
      leaf id {
        type string;
        description
47
48
49
50
51
          "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";
52
53
54
55
      }
      leaf designer {
        type string;
        description
56
57
58
59
          "Identifies the designer of the NSD.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
60
61
62
63
      }
      leaf version {
        type string;
        description
64
65
66
67
          "Identifies the version of the NSD.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
68
69
70
71
      }
      leaf name {
        type string;
        description
72
73
74
75
          "Provides the human readable name of the NSD.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
76
77
78
      }
      leaf invariant-id {
        type string;
79
80
81
82
83
84
85
        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";
86
87
      }

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

100
101
102
      leaf-list vnfd-id {
        type leafref {
          path "../../vnfd/id";
103
        }
104
105
106
107
108
        description
          "References the VNFD of a constituent VNF.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
109
      }
110
111
112
113
114
115
116
117
118
119
120
121
122

      leaf-list pnfd-id {
	type leafref {
	  path "../../pnfd/id";
	}
        description
          "References the PNFD of a constituent PNF.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
      }

      list sapd {
123
124
        key "id";
        description
125
126
127
128
129
130
          "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";

131
132
        leaf id {
          type string;
133
134
135
          description
            "Identifier of this Cpd information element.";
          reference
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
136
            "GS NFV IFA014: Section 6.6.3.1 Cpd information element";
137
138
139
        }

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

152
153
        leaf virtual-link-desc {
          type leafref {
154
            path "../../virtual-link-desc/id";
155
156
          }
          description
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
            "References the descriptor of the NS VL instance to
             which the SAP instantiated from this SAPD connects to.";
          reference
            "GS NFV IFA014: Section 6.2.3.2 Sapd information element";
        }

        choice associated-cpd-id {
          container vnf {
            leaf vnfd-id {
              mandatory true;
              type leafref {
                path "../../../../nfv:vnfd/nfv:id";
              }
              must "boolean(../../../vnfd-id[.=current()])";
            }

            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
              }
            }
          }
          container pnf {
            leaf pnfd-id {
              mandatory true;
                type leafref {
                path "../../../../nfv:pnfd/nfv:id";
              }
              must "boolean(../pnfd-id[.=current()])";
            }

            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
              }
            }
          }
          container ns {
            leaf nsd-id {
            mandatory true;
              type leafref {
                path "../../../../nfv:nsd/nfv:id";
              }
              must "boolean(../nsd-id[.=current()])";
	    }

            leaf ext-cpd-id {
              mandatory true;
              type leafref {
                path "deref(../nsd-id)/../nfv:sapd/nfv:id";
              }
            }
          }
        }
213
      }
214

215
216
217
      list virtual-link-desc {
        key "id";
        description
218
219
220
221
          "Provides the constituent VLDs.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
222
223
        leaf id {
          type string;
224
225
226
227
228
229
          description
            "Identifier of the NsVirtualLinkDesc information element.
             It uniquely identifies a VLD.";
          reference
            "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
             information element";
230
        }
231

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
232
        uses connectivity-type;
233

234
        list df {
235
          key "id";
236
237
238
239
240
241
242
243
244

          description
            "The VirtualLinkDf information element specifies
             properties for instantiating a VL according to a
             specific flavour.";
          reference
            "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
             information element";

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

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

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

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

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

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

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

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

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

      list vnffgd {
352
        key "id";
353
354
355
356
357
358
359
360

        description
          "Provides the descriptors of the applicable forwarding
           graphs.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";

361
362
        leaf id {
          type string;
363
364
365
366
367
368
          description
            "Identifier of this Vnffgd information element. It
             uniquely identifies a VNFFGD.";
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";
369
370
        }

371
372
373
        leaf-list vnf-profile-id {
          type leafref {
            path "../../df/vnf-profile/id";
374
          }
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
          description
            "References the VnfProfile of a constituent VNF.";
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";
        }

        leaf-list pnf-profile-id {
          type leafref {
            path "../../df/pnf-profile/id";
          }
          description
            "References the PnfProfile of a constituent PNF.";
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";
        }

        leaf-list nested-ns-profile-id {
          type leafref {
            path "../../df/ns-profile/id";
          }
          description
            "References the NsProfile of a nestedNS.";
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";
        }

        leaf virtual-link-profile-id {
          type leafref {
            path "../../df/virtual-link-profile/id";
          }
          description
            "References the Virtual Link Profile of a constituent
             VL.";
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";
        }

        list cpd-pool {
          key "id";

          description
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
420
421
422
            "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.";
423
424
425
426
427
428
          reference
            "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
             element";

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

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

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
467
          choice constituent-cpd-id {
468
469
470
471
472
473
474
475
476
477
478
479
            container vnf {
              leaf vnfd-id {
                must ". = deref(../../vnfd-profile-id)/../vnfd-id" {
                }
                type leafref {
                  path "/nfv/vnfd/id";
                }
              }
              leaf cpd-id {
                type leafref {
                  path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
                }
480
481
              }
            }
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
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
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
            container pnf {
              leaf pnfd-id {
                must ". = deref(../../pnfd-profile-id)/../pnfd-id" {
                }
                type leafref {
                  path "/nfv/pnfd/id";
                }
              }
              leaf pnf-cpd-id {
                type leafref {
                  path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
                }
              }
            }
            container ns {
              leaf nsd-id {
                must ". = deref(../../ns-profile-id)/../nsd-id" {
                }

                type leafref {
                  path "/nfv/nsd/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 {
            key "id";

            description
              "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.";
            reference
              "GS NFV IFA014: Section 6.4.3.2 Nfpd information
               element";

            leaf id {
              type string;
              description
                "Identifier of this NfpPositionDesc element.";
              reference
                "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
                 information element";
            }

            list cp-profile-id {
              key "id";

              description
                "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.";
              reference
                "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
                 information element";

              leaf id {
                type string;
                description
                  "Identifier of this CpProfile information element.
                   It uniquely identifies a CpProfile.";
                reference
                  "GS NFV IFA014: Section 6.4.6.2 CpProfile
                   information element";
              }

              list constituent-profile-elements {
                key "id";

                description
                  "Specifies the constituents of the CpProfile.";
                reference
                  "GS NFV IFA014: Section 6.4.6.2 CpProfile
                   information element";

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

                leaf cpd-id {
                  type string;
                  description
                    "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.";
                  reference
                    "GS NFV IFA014: Section 6.4.7.2
                     ConstituentProfileElements information element";
                }
633
634
635
636
637
              }
            }
          }
        }
      }
638

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

      list df {
653
        min-elements 1;
654
655
656
657
658
659
660
661
662
        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";
        }

663
664
        key "id";
        description
665
666
667
668
          "Identifies a DF within the scope of an NSD.";
        reference
          "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
           information element";
669
670
671

        leaf id {
          type string;
672
673
674
675
676
          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";
677
678
        }

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
679
        leaf flavour-key {
680
          type leafref {
681
            path "../monitored-info/id";
682
          }
683
684
685
686
687
688
689
690
691
692
          description
            "Assurance parameter against which this flavour is being
             described.

             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";
693
694
695
        }

        list vnf-profile {
696
697
698
699
700
          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.";
701
702
          }
          key "id";
703
704
705
706
          description
            "VNF profile to be used for the NS flavour.";
          reference
            "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
707
708
709

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

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

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

          leaf instantiation-level {
            mandatory true;
            type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
745
              path "deref(../flavour-id)/../instantiation-level/id";
746
            }
747
748
749
750
751
752
753
754
            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";
755
756
757
758
          }

          leaf min-number-of-instances {
            mandatory true;
759
760
761
762
763
764
765
            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";
766
          }
767

768
769
          leaf max-number-of-instances {
            mandatory true;
770
771
772
773
774
775
776
            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";
777
778
          }

779
          uses common:local-affinity-or-anti-affinity-rule;
780

781
782
783
          list affinity-or-anti-affinity-group {
            key "id";

784
785
786
787
788
789
790
            description
              "Identifier(s) of the affinity or anti-affinity
               group(s) the VnfProfile belongs to.";
            reference
              "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
               element";

791
792
            leaf id {
              type leafref {
793
                path "../../../affinity-or-anti-affinity-group/id";
794
795
796
797
798
              }
            }
          }

          list virtual-link-connectivity {
799
800
801
802
803
804
805
806
807
            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
               element";
808

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

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
820
821
822
            list constituent-cpd-id {
              key "constituent-base-element-id";

823
              description
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
824
825
826
827
                "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.";
828
              reference
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
                "GS NFV IFA014: Section 6.3.7
                 NsVirtualLinkConnectivity information element";

              leaf constituent-base-element-id {
                type leafref {
                  path "../../../id";
                }
                description
                  "Reference to the profile of an NS constituent.";
                reference
                  "GS NFV IFA014: Section 6.4.8
                   CpdInConstituentElement information element";
              }

              leaf constituent-cpd-id {
                type leafref {
                  path "deref(../../../vnfd-id)/../nfv:ext-cpd/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";
              }
855
856
            }
          }
857
        }
858

859
860
861
862
863
864
865
        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.";
          }
866

867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
          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";
          }

          leaf pnfd-id {
            type leafref {
              path "/nfv/pnfd/id";
            }
            description
              "References a PNFD.";
            reference
              "GS NFV IFA014: Section 6.3.6.2 PnfProfile information
               element";
          }

          list virtual-link-connectivity {
            key "virtual-link-profile-id";

            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";

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

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
910
911
912
            list constituent-cpd-id {
              key "constituent-base-element-id";

913
              description
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
914
915
916
917
                "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.";
918
              reference
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
                "GS NFV IFA014: Section 6.3.7
                 NsVirtualLinkConnectivity information element";

              leaf constituent-base-element-id {
                type leafref {
                  path "../../../id";
                }
                description
                  "Reference to the profile of an NS constituent.";
                reference
                  "GS NFV IFA014: Section 6.4.8
                   CpdInConstituentElement information element";
              }

              leaf constituent-cpd-id {
                type leafref {
                  path "deref(../../../pnfd-id)/../nfv:ext-cpd/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";
              }
945
946
947
948
            }
          }
        }

949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
        list virtual-link-profile {
          key "id";

          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;
            description
              "Uniquely identifies this VirtualLinkProfile
               information element.";
            reference
              "GS NFV IFA014: Section 6.3.2.2 VirtualLinkProfile
               information element";
965
966
          }

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

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
979
          leaf flavour-id {
980
981
            mandatory true;
            type leafref {
982
              path "deref(../virtual-link-desc-id)/../df/id";
983
            }
984
985
986
987
988
            description
              "Identifies a flavour within the VLD.";
            reference
              "GS NFV IFA014: Section 6.3.2.2 VirtualLinkProfile
               information element";
989
990
          }

991
          uses common:local-affinity-or-anti-affinity-rule;
992

993
994
995
          list affinity-or-anti-affinity-group {
            key "id";

996
997
998
999
1000
            description
              "Identifies an affinity or anti-affinity group the
               VLs instantiated according to the VlProfile belong
               to.";
            reference
For faster browsing, not all history is shown. View entire blame