etsi-nfv-ns.yang 56.6 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 2020-06-10 {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
15
    description
16
      "Version 3.3.1.
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
17

18
       NSD according to ETSI GS NFV-IFA 014 Release 3.";
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
19
20
  }

21
22
23
24
25
26
27
  revision 2020-06-01 {
    description
      "Version 2.8.1.

       NSD according to ETSI GS NFV-IFA 014 271.";
  }

Mahesh Jethanandani's avatar
Bug#251    
Mahesh Jethanandani committed
28
29
30
31
  revision 2019-10-01 {
    description
      "Version 2.7.1.

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
32
33
       Common data structures to support NSD according to:
       ETSI GS NFV-IFA 014 Ed271v264.";
Mahesh Jethanandani's avatar
Bug#251    
Mahesh Jethanandani committed
34
  }
35

36
  revision 2019-04-25 {
37
38
    description
      "Initial revision
39
40

       NSD according to ETSI GS NFV-IFA 014 Ed261v252.";
41

42
    reference
43
      "ETSI GS NFV-IFA 014 Ed261v252";
44
45
46
47
48
49
  }

  grouping resource-handle {
    leaf vim-id {
      type string;
    }
50
    leaf resource-provider-id {
51
52
53
54
55
56
57
      type string;
    }
    leaf resource-id {
      type string;
    }
  }

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  grouping ns-local-affinity-or-anti-affinity-rule {
    list local-affinity-or-anti-affinity-rule {
      key "type scope";

      leaf type {
        type affinity-type;
        description
          "Specifies whether the rule is an affinity rule or an
           anti-affinity rule.";
        reference
          "GS NFV IFA014: Section 6.3.8.2,
           LocalAffinityOrAntiAffinityRule information element.";
      }

      leaf scope {
        type affinity-scope;
        description
          "Specifies the scope of the rule, possible values are
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
76
           'NFVI-PoP', 'NFVI-node' network-link-and-node etc.";
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
77
78
79
80
81
82
        reference
          "GS NFV IFA014: Section 6.3.8.2,
           LocalAffinityOrAntiAffinityRule information element.";
      }
    }
  }
83

84
  grouping nsd {
85
86
87
88
89
90
91
92
93
    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";
    }
94

95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
    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 {
136
        path "../../nsd/id";
137
      }
138
139
140
141
142
143
      description
        "References the NSD of a constituent nested NS.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }
144

145
146
    leaf-list vnfd-id {
      type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
147
        path "/nfv:nfv/nfv:vnfd/nfv:id";
148
      }
149
150
151
152
153
154
      description
        "References the VNFD of a constituent VNF.";
      reference
        "GS NFV IFA014: Section 6.2.2.2 Network Service Descriptor
         information element";
    }
155

156
157
    leaf-list pnfd-id {
      type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
158
        path "/nfv:nfv/nfv:pnfd/nfv:id";
159
      }
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
      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";
175

176
177
      leaf id {
        type string;
178
        description
179
          "Identifier of this Cpd information element.";
180
        reference
181
          "GS NFV IFA014: Section 6.6.3.1 Cpd information element";
182
183
      }

184
185
      leaf address-assignment {
        type boolean;
186
        description
187
188
189
190
191
192
          "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.";
193
        reference
194
195
          "GS NFV IFA014: Section 6.2.3.2 Sapd information element";
      }
196

197
198
199
200
201
      choice cpd-or-virtual-link {
        leaf virtual-link-desc {
          type leafref {
            path "../../virtual-link-desc/id";
          }
202
          description
203
204
            "References the descriptor of the NS VL instance to
             which the SAP instantiated from this SAPD connects to.";
205
206
          reference
            "GS NFV IFA014: Section 6.2.3.2 Sapd information element";
207
        }
208

209
210
211
212
213
        choice associated-cpd-id {
          container vnf {
            leaf vnfd-id {
              mandatory true;
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
214
                path "/nfv:nfv/nfv:vnfd/nfv:id";
215
              }
216
217
              must "boolean(../../../vnfd-id[.=current()])";
            }
218

219
220
221
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
222
                path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
223
224
              }
            }
225
          }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
226

227
228
229
230
          container pnf {
            leaf pnfd-id {
              mandatory true;
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
231
                path "/nfv:nfv/nfv:pnfd/nfv:id";
232
              }
233
234
              must "boolean(../pnfd-id[.=current()])";
            }
235

236
237
238
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
239
                path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
240
241
              }
            }
242
243
244
245
246
          }
          container ns {
            leaf nsd-id {
              mandatory true;
              type leafref {
247
                path "../../../../nsd/id";
248
              }
249
250
              must "boolean(../nsd-id[.=current()])";
            }
251

252
253
254
            leaf ext-cpd-id {
              mandatory true;
              type leafref {
255
                path "deref(../nsd-id)/../sapd/id";
256
257
258
259
              }
            }
          }
        }
260
      }
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
    }

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

280
281
282
      uses connectivity-type;

      list df {
283
        key "id";
284

285
        description
286
287
288
          "The VirtualLinkDf information element specifies
           properties for instantiating a VL according to a
           specific flavour.";
289
        reference
290
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
291
           information element";
292

293
294
        leaf id {
          type string;
295
          description
296
297
            "Identifies this VirtualLinkDf information element
             within a VLD.";
298
          reference
299
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
300
             information element";
301
        }
302

303
304
        container qos {
          presence "VL QoS parameters";
305
          description
306
307
            "The QoS information element specifies quality of
             service parameters applicable to a VL.";
308
          reference
309
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
310
311
             information element";

312
313
314
315
          leaf latency {
            mandatory true;
            type uint32;
            units "ms";
316
            description
317
              "Specifies the maximum latency in ms.";
318
            reference
319
320
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
321
322
          }

323
324
325
326
          leaf packet-delay-variation {
            mandatory true;
            type uint32;
            units "ms";
327
            description
328
              "Specifies the maximum jitter in ms.";
329
            reference
330
331
332
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
          }
333

334
335
336
337
          leaf packet-loss-ratio {
            type decimal64 {
              fraction-digits "2";
              range "0..1.00";
338
            }
339
340
341
342
343
            description
              "Specifies the maximum packet loss ratio.";
            reference
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
344
          }
345

346
347
          leaf priority {
            type uint32;
348
            description
349
350
              "Specifies the priority level in case of
               congestion on the underlying physical links.";
351
            reference
352
353
              "GS NFV IFA014: Section 6.5.6.2 QoS information
               element";
354
355
356
          }
        }

357
        leaf service-availability-level {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
358
          type uint32;
359
          description
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
360
361
362
363
364
365
366
367
            "If present, specifies the service availability level
             for the VL instance created from this DF.

             THE FOLLOWING STATEMENT IS SUBJECT TO CHANGE:

             Either the serviceAvailabilityLevel attribute of NS DF
             or the serviceAvailabilityLevel attribute of the VL DF
             may be provided, but not both.";
368
          reference
369
            "GS NFV IFA014: Section 6.5.4.2 VirtualLinkDf
370
             information element";
371
        }
372
      }
373

374
375
376
377
378
      leaf test-access {
        type enumeration {
          enum none;
          enum passive-monitoring;
          enum active;
379
        }
380
381
382
383
384
        description
          "Specifies test access facilities expected on the VL.";
        reference
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
           information element";
385
      }
386

387
388
      leaf description {
        type string;
389
        description
390
391
          "Provides human-readable information on the purpose of
           the virtual link (e.g. VL for control plane traffic).";
392
        reference
393
          "GS NFV IFA014: Section 6.5.2.2 NsVirtualLinkDesc
394
           information element";
395
396
      }
    }
397

398
399
    list vnffgd {
      key "id";
400

401
402
403
404
405
406
407
408
409
410
411
412
413
414
      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
415
             element";
416
417
418
419
420
      }

      leaf-list vnf-profile-id {
        type leafref {
          path "../../df/vnf-profile/id";
421
        }
422
423
424
425
426
427
        description
          "References the VnfProfile of a constituent VNF.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
428

429
430
431
      leaf-list pnf-profile-id {
        type leafref {
          path "../../df/pnf-profile/id";
432
        }
433
434
435
436
437
438
        description
          "References the PnfProfile of a constituent PNF.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
439

440
441
442
      leaf-list nested-ns-profile-id {
        type leafref {
          path "../../df/ns-profile/id";
443
        }
444
445
446
447
448
449
        description
          "References the NsProfile of a nestedNS.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
450

451
452
453
      leaf virtual-link-profile-id {
        type leafref {
          path "../../df/virtual-link-profile/id";
454
        }
455
456
457
458
459
460
461
        description
          "References the Virtual Link Profile of a constituent
             VL.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
      }
462

463
      list nfp-position-element {
464
        key "id";
465

Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
466
        min-elements 1;
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
467

468
469
        leaf id {
          type string;
470
471
472
473
474
475
476
          description
            "Identifier of this NfpPositionElemen information
             element. It uniquely identifies an
             NfpPositionElemen.";
          reference
            "GS NFV IFA014: Section 6.4.6.2 NfpPositionElement
                 information element";
477
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
478

479
480
481
482
483
484
485
486
487
488
        container desc {
          choice constituent-base-element-id {
            mandatory "true";
            container vnf-profile {
              leaf vnf-profile-id {
                must ". = deref(../../vnfd-profile-id)" {
                }
                type leafref {
                  path "../../../../../../nsd/df/vnf-profile/id";
                }
489
490
              }
            }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
491

492
493
494
495
496
497
498
            container pnf-profile {
              leaf pnf-profile-id {
                must ". = deref(../../pnfd-profile-id)" {
                }
                type leafref {
                  path "../../../../../../nsd/df/pnf-profile/id";
                }
499
500
              }
            }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
501

502
503
504
505
506
507
508
            container ns-profile {
              leaf ns-profile-id {
                must ". = deref(../../ns-profile-id)" {
                }
                type leafref {
                  path "../../../../../../nsd/df/ns-profile/id";
                }
509
510
              }
            }
511
512
513
514
515
            description
              "Reference to the profile of an NS constituent.";
            reference
              "GS NFV IFA014: Section 6.4.8
               CpdInConstituentElement information element";
516
517
          }

Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
518
519
520
521
522
523
524
525
          choice constituent-cpd-id {
            container vnf {
              leaf vnfd-id {
                must ". = deref(../../vnfd-profile-id)/../vnfd-id" {
                }
                type leafref {
                  path "/nfv:nfv/nfv:vnfd/nfv:id";
                }
526
              }
Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
527
528
529
530
              leaf cpd-id {
                type leafref {
                  path "deref(../vnfd-id)/../nfv:ext-cpd/nfv:id";
                }
531
532
              }
            }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
533

534
535
536
537
538
            container pnf {
              leaf pnfd-id {
                must ". = deref(../../pnfd-profile-id)/../pnfd-id" {
                }
                type leafref {
Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
539
                  path "/nfv:nfv/nfv:pnfd/nfv:id";
540
                }
541
              }
Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
542
543
544
545
              leaf pnf-cpd-id {
                type leafref {
                  path "deref(../pnfd-id)/../nfv:ext-cpd/nfv:id";
                }
546
547
              }
            }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
548

549
550
551
            container ns {
              leaf nsd-id {
                must ". = deref(../../nested-ns-profile-id)/" +
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
552
                     "../nsd-id" {
553
554
555
556
557
                }

                type leafref {
                  path "../../../../../../nsd/id";
                }
558
              }
559
560
561
562
              leaf sap-cpd-id {
                type leafref {
                  path "deref(../nsd-id)/../sapd/id";
                }
563
564
              }
            }
565
566
567
568
569
570
571
572
            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 given NsProfile
               identified by the constituentBaseElementId.";
            reference
              "GS NFV IFA014: Section 6.4.8.2
               CpdInConstituentElement information element";
573
574
          }
          description
Mahesh Jethanandani's avatar
Bug#253    
Mahesh Jethanandani committed
575
            "Specifies a CPD or SAPD in the context of a profile
576
             of an NS constituent element.";
577
          reference
578
579
            "GS NFV IFA014: Section 6.4.6.2 NfpPositionElement
             information element";
580
581
        }
        description
582
583
584
          "One or a pair of CPDs or SAPDs. These descriptors
           shall be members of the CpdPool associated to the
           parent VNFFG.";
585
        reference
586
587
          "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
           information element";
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
      }

      list nfpd {
        key "id";

        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.
607
608
609
             The rule may be expressed as a criteria constructed out
             of atomic assertions linked by Boolean operators AND,
             OR and NOT.";
610
611
612
613
614
          reference
            "GS NFV IFA014: Section 6.4.3.2 Nfpd information
             element";
        }

615
        list position-desc {
616
617
          key "id";

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
618
          min-elements 1;
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
619

620
621
622
          leaf id {
            type string;
            description
623
              "Identifier of this NfpPositionDesc element.";
624
            reference
625
626
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
627
628
          }

629
630
631
          leaf-list nfp-position-element-id {
            type leafref {
              path "../../../nfp-position-element/id";
632
            }
633
            description
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
634
              "Reference to one or a pair of CPDs or SAPDs.";
635
            reference
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
636
637
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
638
          }
639

640
641
642
643
          leaf forwarding-behaviour {
            type identityref {
              base forwarding-behaviour;
            }
644
            description
645
646
647
648
649
650
651
652
653
654
              "Identifies a rule to apply to forward traffic to CP or
               SAP instances corresponding to the referenced CPD(s)
               and SAPD(s). The minimum list of rules to be supported
               shall include:
               • ALL = Traffic flows shall be forwarded simultaneously
                 to all CP or SAP instances created from the
                 referenced CP profile(s).
               • LB = Traffic flows shall be forwarded to one CP or SAP
                 instance created from the referenced CP profile(s)
                 selected based on a load-balancing algorithm.";
655
            reference
656
657
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
658
          }
659

660
661
662
663
664
665
666
667
668
          leaf forwarding-behavior-input-parameters {
            type string;
            description
              "Provides input parameters to configure the forwarding
               behaviour (e.g. identifies a load balancing
               algorithm).";
            reference
              "GS NFV IFA014: Section 6.4.5.2 NfpPositionDesc
               information element";
669
          }
670
671
672
673
674
675
676
677
678

          description
            "Describes a position in the NFP in terms of one or more
             CPDs and SAPDs and rules for distributing the traffic
             among CP and SAP instances created from these CPDs
             and SAPDs.";
          reference
            "GS NFV IFA014: Section 6.4.3.2 Nfpd information
             element";
679
        }
680
681
682
683
684
        description
          "The network forwarding path associated to the VNFFG.";
        reference
          "GS NFV IFA014: Section 6.4.2.2 Vnffgd information
           element";
685
      }
686
    }
687

688
689
690
    leaf-list autoscale-rule {
      type string;
    }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
691

692
693
694
    list lifecycle-management-script {
      key "event";
      leaf event {
695
696
        type string;
      }
697
698
      leaf script {
        type string;
699
      }
700
    }
701

702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
    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";
732
        }
733
734
735
        description
          "Assurance parameter against which this flavour is being
           described.
736

737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
           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.";
        }
752
753
        key "id";
        description
754
          "VNF profile to be used for the NS flavour.";
755
        reference
756
          "GS NFV IFA014: Section 6.3.2.2 NsDf information element";
757
758
759

        leaf id {
          type string;
760
          description
761
762
            "Identifier of this vnfProfile information element. It
             uniquely identifies a VnfProfile.";
763
          reference
764
765
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
766
767
        }

768
769
        leaf vnfd-id {
          mandatory true;
770
          type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
771
            path "/nfv:nfv/nfv:vnfd/nfv:id";
772
          }
773
          description
774
775
776
777
778
            "References a VNFD.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }
779

780
781
782
        leaf flavour-id {
          mandatory true;
          type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
783
            path "deref(../vnfd-id)/../nfv:df/nfv:id";
784
785
786
          }
          description
            "Identifies a flavour within the VNFD.";
787
          reference
788
789
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
790
791
        }

792
793
794
        leaf instantiation-level {
          mandatory true;
          type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
795
            path "deref(../flavour-id)/../nfv:instantiation-level/" +
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
796
                 "nfv:id";
797
          }
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
          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";
        }

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
830
        uses ns-local-affinity-or-anti-affinity-rule;
831

Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
832
833
834
835
        leaf-list affinity-or-anti-affinity-group-id {
          type leafref {
            path "../../affinity-or-anti-affinity-group/id";
          }
836
          description
837
838
            "Identifier(s) of the affinity or anti-affinity
             group(s) the VnfProfile belongs to.";
839
          reference
840
841
842
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
             element";
        }
843

844
845
846
847
848
849
850
851
852
        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
853
               element";
854

855
          leaf virtual-link-profile-id {
856
            type leafref {
857
              path "../../../virtual-link-profile/id";
858
            }
859
            description
860
              "Reference an NS VL profile.";
861
            reference
862
863
              "GS NFV IFA014: Section 6.3.7.2, NsVirutalLinkConnectivity
               information element.";
864
865
          }

866
867
          list constituent-cpd-id {
            key "constituent-base-element-id";
868

869
            description
870
871
872
873
              "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.";
874
            reference
875
876
              "GS NFV IFA014: Section 6.3.7
               NsVirtualLinkConnectivity information element";
877

878
            leaf constituent-base-element-id {
879
              type leafref {
880
                path "../../../id";
881
              }
882
883
884
885
886
              description
                "Reference to the profile of an NS constituent.";
              reference
                "GS NFV IFA014: Section 6.4.8
                 CpdInConstituentElement information element";
887
888
            }

889
            leaf constituent-cpd-id {
890
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
891
                path "deref(../../../vnfd-id)/../nfv:ext-cpd/nfv:id";
892
              }
893
              description
894
895
896
                "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.";
897
              reference
898
899
                "GS NFV IFA014: Section 6.4.4.2 CpdPool information
                 element";
900
            }
901
902
          }
        }
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917

        leaf service-availability-level {
          must "not(../../service-availability-level)";
          type uint32;
          description
            "If present, specifies the service availability level for
             the VNF instance created from this profile.

             Either the serviceAvailabilityLevel attribute of NS DF
             or the serviceAvailabilityLevel attribute of the
             VnfProfile may be provided, but not both.";
          reference
            "GS NFV IFA014: Section 6.3.3.2 VnfProfile information
               element";
        }
918
      }
919

920
921
922
923
924
925
926
      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
927

928
929
930
931
932
933
934
935
936
        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
937

938
939
        leaf pnfd-id {
          type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
940
            path "/nfv:nfv/nfv:pnfd/nfv:id";
941
          }
942
943
944
945
946
          description
            "References a PNFD.";
          reference
            "GS NFV IFA014: Section 6.3.6.2 PnfProfile information
             element";
947
        }
948

949
950
        list virtual-link-connectivity {
          key "virtual-link-profile-id";
951

952
953
954
955
956
957
958
          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";
959

960
          leaf virtual-link-profile-id {
961
            type leafref {
962
              path "../../../virtual-link-profile/id";
963
964
            }
            description
965
              "Reference an NS VL profile.";
966
            reference
967
968
              "GS NFV IFA014: Section 6.3.7.2, NsVirutalLinkConnectivity
               information element.";
969
970
          }

971
972
          list constituent-cpd-id {
            key "constituent-base-element-id";
973
974

            description
975
976
977
978
              "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.";
979
            reference
980
981
              "GS NFV IFA014: Section 6.3.7
               NsVirtualLinkConnectivity information element";
982

983
            leaf constituent-base-element-id {
984
              type leafref {
985
                path "../../../id";
986
              }
987
              description
988
                "Reference to the profile of an NS constituent.";
989
              reference
990
991
                "GS NFV IFA014: Section 6.4.8
                 CpdInConstituentElement information element";
992
993
            }

994
995
            leaf constituent-cpd-id {
              type leafref {
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
996
                path "deref(../../../pnfd-id)/../nfv:ext-cpd/nfv:id";
997
              }
998
              description
999
1000
                "A reference to the descriptor of a connection point
                 attached to one of the constituent VNFs and PNFs or to
For faster browsing, not all history is shown. View entire blame