summaryrefslogtreecommitdiffstats
path: root/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs.rst
blob: 69fa19d50df8334a9a7e225125f4c7d408b38ebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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
90
91
92
93
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
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
685
686
687
688
689
690
691
692
693
694
695
696
697
698
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
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
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
785
786
787
788
789
790
791
792
793
794
795
796
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
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
855
856
857
858
859
860
861
862
863
864
865
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
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
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
945
946
947
948
949
950
951
952
953
954
.. Licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2017 AT&T Intellectual Property.  All rights reserved.

Resource IDs
------------

Requirement R-75141 states a VNF’s Heat Orchestration Template’s resource
name (i.e., <resource ID>) MUST only contain alphanumeric characters and
underscores (‘_’).*

Requirement R-16447 states a VNF’s <resource ID> MUST be unique across
all Heat Orchestration Templates and all HEAT Orchestration Template Nested
YAML files that are used to create the VNF.

As stated previously, OpenStack requires the <resource ID> to be unique
to the Heat Orchestration Template and not unique across all Heat
Orchestration Templates the compose the VNF.

Heat Orchestration Template resources are described in :ref:`resources`.

.. req::
    :id: R-54517
    :target: VNF
    :keyword: MUST
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated with
    a single ``{vm-type}``, the Resource ID **MUST** contain the
    ``{vm-type}``.

.. req::
    :id: R-96482
    :target: VNF
    :keyword: MUST
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated
    with a single external network, the Resource ID **MUST** contain the text
    ``{network-role}``.

.. req::
    :id: R-98138
    :target: VNF
    :keyword: MUST
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated with a
    single internal network, the Resource ID **MUST** contain the text
    ``int_{network-role}``.

.. req::
    :id: R-82115
    :target: VNF
    :keyword: MUST
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated with a
    single ``{vm-type}``
    and a single external network, the Resource ID text **MUST** contain both
    the ``{vm-type}``
    and the ``{network-role}``

    - the ``{vm-type}`` **MUST** appear before the ``{network-role}`` and
      **MUST** be separated by an underscore '_'


      - e.g., ``{vm-type}_{network-role}``, ``{vm-type}_{index}_{network-role}``


    - note that an ``{index}`` value **MAY** separate the ``{vm-type}`` and the
      ``{network-role}`` and when this occurs underscores **MUST** separate the
      three values.  (e.g., ``{vm-type}_{index}_{network-role}``).

.. req::
    :id: R-82551
    :target: VNF
    :keyword: MUST
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated with a
    single ``{vm-type}`` and a single internal network, the Resource ID **MUST**
    contain both the ``{vm-type}`` and the ``int_{network-role}`` and

    - the ``{vm-type}`` **MUST** appear before the ``int_{network-role}`` and
      **MUST** be separated by an underscore '_'

      - (e.g., ``{vm-type}_int_{network-role}``,
        ``{vm-type}_{index}_int_{network-role}``)

    - note that an ``{index}`` value **MAY** separate the
      ``{vm-type}`` and the ``int_{network-role}`` and when this occurs
      underscores **MUST** separate the three values.
      (e.g., ``{vm-type}_{index}_int_{network-role}``).

.. req::
    :id: R-67793
    :target: VNF
    :keyword: MUST NOT
    :validation_mode: none
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated
    with more than one ``{vm-type}`` and/or more than one internal and/or
    external network, the Resource ID **MUST** not contain the ``{vm-type}``
    and/or ``{network-role}``/``int_{network-role}``. It also should contain the
    term ``shared`` and/or contain text that identifies the VNF.

.. req::
    :id: R-27970
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    When a VNF's Heat Orchestration Template's resource is associated with
    more than one ``{vm-type}`` and/or more than one internal and/or external
    network, the Resource ID **MAY** contain the term ``shared`` and/or **MAY**
    contain text that identifies the VNF.

.. req::
    :id: R-11690
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    When a VNF's Heat Orchestration Template's Resource ID contains an
    ``{index}``, the ``{index}`` is a numeric value that **MUST** start at
    zero and **MUST** increment by one.  

    As stated in R-16447,
    *a VNF's <resource ID> MUST be unique across all Heat
    Orchestration Templates and all HEAT Orchestration Template
    Nested YAML files that are used to create the VNF*.  While the ``{index}``
    will start at zero in the VNF, the ``{index}`` may not start at zero
    in a given Heat Orchestration Template or HEAT Orchestration Template
    Nested YAML file. 

OpenStack Heat Resources Resource ID Naming Convention
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some OpenStack Heat Resources Resource IDs
have mandatory or suggested naming conventions.  They are provided
in the following sections.

OS::Cinder::Volume
~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-87004
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::Cinder::Volume``
    Resource ID
    **SHOULD**
    use the naming convention

    * ``{vm-type}_volume_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{index}`` starts at zero and increments by one

OS::Cinder::VolumeAttachment
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-86497
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::Cinder::VolumeAttachment``
    Resource ID
    **SHOULD**
    use the naming convention

    * ``{vm-type}_volume_attachment_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{index}`` starts at zero and increments by one

OS::Heat::CloudConfig
~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-04747
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``
    Resource ID **MUST** contain the ``{vm-type}``.

.. req::
    :id: R-20319
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``
    Resource ID **MAY** use the naming convention

    * ``{vm-type}_RCC``

    where

    * ``{vm-type}`` is the vm-type
    * ``RCC`` signifies that it is the Resource Cloud Config

OS::Heat::MultipartMime
~~~~~~~~~~~~~~~~~~~~~~~


.. req::
    :id: R-30804
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::Heat::MultipartMime``
    Resource ID
    **MUST**
    contain the ``{vm-type}``.

.. req::
    :id: R-18202
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::Heat::MultipartMime``
    Resource ID
    **MAY**
    use the naming convention

    * ``{vm-type}_RMM``

    where

    * ``{vm-type}`` is the vm-type
    * ``RMM`` signifies that it is the Resource Multipart Mime

OS::Heat::ResourceGroup
~~~~~~~~~~~~~~~~~~~~~~~~

There is no mandatory naming convention for
the resource 'OS::Heat::ResourceGroup'.


OS::Heat::SoftwareConfig
~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-08975
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``
    Resource ID **MUST** contain the ``{vm-type}``.

.. req::
    :id: R-03656
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``
    Resource ID **MAY** use the naming convention

    * ``{vm-type}_RSC``

    where

    * ``{vm-type}`` is the vm-type
    * ``RSC`` signifies that it is the Resource Software Config

OS::Neutron::Net
~~~~~~~~~~~~~~~~

.. req::
    :id: R-25720
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Net``
    Resource ID **MUST** use the naming convention

    * ``int_{network-role}_network``

    VNF Heat Orchestration Templates can only create internal networks.
    There is no ``{index}`` after ``{network-role}`` because ``{network-role}``
    **MUST** be unique in the scope of the VNF's
    Heat Orchestration Template.

OS::Neutron::Port
~~~~~~~~~~~~~~~~~~


.. req::
    :id: R-20453
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``
    that is attaching to an external network Resource ID
    **MUST** use the naming convention

    * ``{vm-type}_{vm-type_index}_{network-role}_port_{port-index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{port-index}`` is the instance of the port on the vm-type
      attached to the network of ``{network-role}``

.. req::
    :id: R-26351
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``
    that is attaching to an internal network Resource ID **MUST**
    use the naming convention

    * ``{vm-type}_{vm-type_index}_int_{network-role}_port_{port-index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{port-index}`` is the instance of the port on the vm-type
      attached to the network of ``{network-role}``

.. req::
    :id: R-27469
    :target: VNF
    :keyword: SHOULD
    :validation_mode: none
    :updated: dublin

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``
    that is creating a *Reserve Port* with an IPv4 address Resource ID
    **SHOULD** use the naming convention

    * ``reserve_port_{vm-type}_{network-role}_floating_ip_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{index}`` is the instance of the IPv4 *Reserve Port*
      for the vm-type attached to the network of ``{network-role}``

.. req::
    :id: R-68520
    :target: VNF
    :keyword: SHOULD
    :validation_mode: none
    :updated: dublin

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``
    that is creating a *Reserve Port* with an IPv6 address Resource ID
    **SHOULD** use the naming convention

    * ``reserve_port_{vm-type}_{network-role}_floating_v6_ip_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{index}`` is the instance of the IPv6 *Reserve Port*
      for the vm-type attached to the network of ``{network-role}``

OS::Neutron::SecurityGroup
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-08775
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``
    that is applicable to one ``{vm-type}`` and more than one network (internal
    and/or external) Resource ID **SHOULD** use the naming convention

    * ``{vm-type}_security_group``

    where

    * ``{vm-type}`` is the vm-type

.. req::
    :id: R-03595
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that
    is applicable to more than one ``{vm-type}`` and one external network Resource ID
    **SHOULD** use the naming convention

    * ``{network-role}_security_group``

    where

    * ``{network-role}`` is the network-role

.. req::
    :id: R-73213
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that
    is applicable to more than one ``{vm-type}`` and one internal network Resource ID
    **SHOULD** use the naming convention

    * ``int_{network-role}_security_group``

    where

    * ``{network-role}`` is the network-role

.. req::
    :id: R-17334
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``
    that is applicable to one ``{vm-type}`` and one external network Resource ID
    **SHOULD** use the naming convention

    * ``{vm-type}_{network-role}_security_group``

    where

    * ``{vm-type}`` is the vm-type
    * ``{network-role}`` is the network-role

.. req::
    :id: R-14198
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that
    is applicable to one {vm-type} and one internal network Resource ID **SHOULD**
    use the naming convention

    * ``{vm-type}_int_{network-role}_security_group``

    where

    * ``{vm-type}`` is the vm-type
    * ``{network-role}`` is the network-role

.. req::
    :id: R-30005
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that
    is applicable to more than one ``{vm-type}`` and more than one network
    (internal and/or external) Resource ID **MAY**
    use the naming convention

    * ``shared_security_group``

    or

    * ``{vnf-type}_security_group``

    where

    * ``{vnf-type}`` describes the VNF

OS::Neutron::Subnet
~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-59434
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Subnet``
    Resource ID **SHOULD** use the naming convention

    * ``int_{network-role}_subnet_{index}``

    where

    * ``{network-role}`` is the network-role
    * ``{index}`` is the ``{index}`` of the subnet of the network

OS::Nova::Keypair
~~~~~~~~~~~~~~~~~

.. req::
    :id: R-24997
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to
    one ``{vm-type}`` Resource ID **SHOULD** use the naming convention

    * ``{vm-type}_keypair_{index}``

    where

    * ``{network-role}`` is the network-role
    * ``{index}`` is the ``{index}`` of the keypair

.. req::
    :id: R-65516
    :target: VNF
    :keyword: SHOULD
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to
    all Virtual Machines in the VNF, the Resource ID **SHOULD** use the naming
    convention

    * ``{vnf-type}_keypair``

    where

    * ``{vnf-type}`` describes the VNF

OS::Nova::Server
~~~~~~~~~~~~~~~~

.. req::
    :id: R-29751
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Nova::Server`` Resource ID
    **MUST** use the naming convention

    * ``{vm-type}_server_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{index}`` is the index

OS::Nova::ServerGroup
~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-15189
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::Nova::ServerGroup`` Resource ID
    **MAY** use the naming convention

    * ``{vm-type}_RSG``

    or

    * ``{vm-type}_Server_Grp``

    or

    * ``{vm-type}_ServerGroup``

    or

    * ``{vm-type}_servergroup``

Contrail Heat Resources Resource ID Naming Convention
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some Contrail Heat Resources Resource IDs
have mandatory or suggested naming conventions. They are provided
in the following sections.


OS::ContrailV2::InstanceIp
~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-53310
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``
    that is configuring an IPv4 Address on a port attached to an external network
    Resource ID **MUST** use the naming convention

    *  ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_IP_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the {vm-type}
    * ``{network-role}`` is the network-role of the network that the port is attached to
    * ``{vmi_index}`` is the instance of the virtual machine interface
      (e.g., port)  on the vm-type attached to the network of {network-role}
    * ``IP`` signifies that an IPv4 address is being configured
    * ``{index}`` is the index of the IPv4 address

.. req::
    :id: R-46128
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``
    that is configuring an IPv6 Address on a port attached to an external network
    Resource ID **MUST** use the naming convention

    *  ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_v6_IP_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{vmi_index}`` is the instance of the virtual machine interface
      (e.g., port)  on the vm-type
      attached to the network of {network-role}
    * ``v6_IP`` signifies that an IPv6 address is being configured
    * ``{index}`` is the index of the IPv6 address

.. req::
    :id: R-62187
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``
    that is configuring an IPv4 Address on a port attached to an internal network
    Resource ID **MUST** use the naming convention

    *  ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_IP_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{vmi_index}`` is the instance of the virtual machine interface
      (e.g., port)  on the vm-type
      attached to the network of ``{network-role}``
    * ``IP`` signifies that an IPv4 address is being configured
    * ``{index}`` is the index of the IPv4 address

.. req::
    :id: R-87563
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``
    that is configuring an IPv6 Address on a port attached to an internal network
    Resource ID **MUST** use the naming convention

    *  ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_v6_IP_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port is attached to
    * ``{vmi_index}`` is the instance of the virtual machine interface
      (e.g., port)  on the vm-type
      attached to the network of ``{network-role}``
    * ``v6_IP`` signifies that an IPv6 address is being configured
    * ``{index}`` is the index of the IPv6 address


OS::ContrailV2::InterfaceRouteTable
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-81214
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::InterfaceRouteTable``
    Resource ID
    **MUST**
    contain the ``{network-role}``.

.. req::
    :id: R-28189
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::InterfaceRouteTable``
    Resource ID **MAY** use the naming convention

    * ``{network-role}_RIRT``

    where

    * ``{network-role}`` is the network-role
    * ``RIRT`` signifies that it is the Resource Interface Route Table

OS::ContrailV2::NetworkIpam
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-30753
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::NetworkIpam``
    Resource ID
    **MUST**
    contain the ``{network-role}``.

.. req::
    :id: R-81979
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::NetworkIpam``
    Resource ID **MAY** use the naming convention

    * ``{network-role}_RNI``

    where

    * ``{network-role}`` is the network-role
    * ``RNI`` signifies that it is the Resource Network IPAM

OS::ContrailV2::PortTuple
~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-20065
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::PortTuple``
    Resource ID **MUST** contain the ``{vm-type}``.

.. req::
    :id: R-84457
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::PortTuple``
    Resource ID **MAY** use the naming convention

    * ``{vm-type}_RPT``

    where

    * ``{vm-type}`` is the vm-type
    * ``RPT`` signifies that it is the Resource Port Tuple

OS::ContrailV2::ServiceHealthCheck
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-76014
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::ServiceHealthCheck``
    Resource ID
    **MUST**
    contain the ``{vm-type}``.

.. req::
    :id: R-65618
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::ServiceHealthCheck`` Resource ID **MAY** use the naming convention

    * ``{vm-type}_RSHC_{LEFT|RIGHT}``

    where

    * ``{vm-type}`` is the vm-type
    * ``RSHC`` signifies that it is the Resource Service Health Check
    * ``LEFT`` is used if the Service Health Check is on the left interface
    * ``RIGHT`` is used if the Service Health Check is on the right interface

OS::ContrailV2::ServiceTemplate
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-16437
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``
    Resource ID **MUST** contain the ``{vm-type}``.

.. req::
    :id: R-14447
    :target: VNF
    :keyword: MAY
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``
    Resource ID **MAY** use the naming convention

    * ``{vm-type}_RST_{index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``RST`` signifies that it is the Resource Service Template
    * ``{index}`` is the index

OS::ContrailV2::VirtualMachineInterface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-96253
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an external network
    Resource ID **MUST** use the naming convention

    * ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port (i.e. virtual machine interface) is attached to
    * ``{vmi_index}`` is the instance of the vmi on the vm-type
      attached to the network of ``{network-role}``

.. req::
    :id: R-50468
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an internal network
    Resource ID **MUST** use the naming convention

    * ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}``

    where

    * ``{vm-type}`` is the vm-type
    * ``{vm-type_index}`` is the instance of the ``{vm-type}``
    * ``{network-role}`` is the network-role of the network
      that the port (i.e. virtual machine interface) is attached to
    * ``{vmi_index}`` is the instance of the vmi on the vm-type
      attached to the network of ``{network-role}``


OS::ContrailV2::VirtualNetwork
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. req::
    :id: R-99110
    :target: VNF
    :keyword: MUST
    :validation_mode: static
    :updated: casablanca

    A VNF's Heat Orchestration Template's Resource
    ``OS::ContrailV2::VirtualNetwork`` Resource ID **MUST** use the naming convention

    1) ``int_{network-role}_network``

    or

    2) ``int_{network-role}_RVN`` where RVN represents Resource Virtual
       Network

    VNF Heat Orchestration Templates can only create internal networks.
    There is no ``{index}`` after ``{network-role}`` because ``{network-role}``
    **MUST** be unique in the scope of the VNF's
    Heat Orchestration Template.

    Note that option 1 is preferred.