summaryrefslogtreecommitdiffstats
path: root/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst
diff options
context:
space:
mode:
authorweinstock, alan <aw2574@att.com>2018-12-04 21:06:37 +0000
committerweinstock, alan <aw2574@att.com>2018-12-04 21:06:37 +0000
commitdf06b7e40678004a1c6604052d5fd35ac8f2337d (patch)
tree6aa8fdf164b2c3b626e38e9acb9ebe362220d719 /docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst
parent81f04340b7ac89c5161253bba63ccefaae464daa (diff)
[VNFRQTS] updated requirements in Ch 5
Change-Id: I7f0ba14b813c03263590ba22fef265d23c081b7e Issue-ID: VNFRQTS-504 Signed-off-by: weinstock, alan <aw2574@att.com>
Diffstat (limited to 'docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst')
-rw-r--r--docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst36
1 files changed, 14 insertions, 22 deletions
diff --git a/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst b/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst
index 3109754..ca9585f 100644
--- a/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst
+++ b/docs/Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property.rst
@@ -25,10 +25,24 @@ some resources do not support the property.
for a non ``OS::Nova::Server`` resource, the intrinsic function
``str_replace`` **MUST** be used in conjunction with the ONAP
supplied metadata parameter ``vnf_name`` to generate a unique value.
+ Additional data **MAY** be used in the ``str_replace`` construct
+ to generate a unique value.
This approach prevents the enumeration of a unique value for the property
``name`` in a per instance environment file.
+In most cases the use of the metadata value ``vnf_name`` will create
+a unique property name. If this does not create a unique value,
+additional dynamic or constant data can be added to the ``str_replace``
+construct.
+
+For example, the Heat Orchestration Template pseudo parameter
+``OS::stack_name`` can be used in the ``str_replace`` construct.
+
+For resources created in a nested heat file invoked by an
+``OS::Heat::ResourceGroup``, the ``index`` can be used to
+construct a unique value.
+
.. req::
:id: R-99812
:target: VNF
@@ -40,29 +54,7 @@ This approach prevents the enumeration of a unique value for the property
for a non ``OS::Nova::Server`` resource **MUST NOT** be declared
in the VNF's Heat Orchestration Template's Environment File.
-In most cases the use of the metadata value ``vnf_name`` is required to create
-a unique property name. If this will not provide a unique value,
-additional options include:
-
- - Using the Heat Orchestration Template pseudo parameter
- ``OS::stack_name`` in the str_replace construct
- - Resources created in a nested heat file invoked by an
- ``OS::Heat::ResourceGroup`` can use the ``index`` to construct a unique name
-
-.. req::
- :id: R-32408
- :target: VNF
- :keyword: MUST
- :validation_mode: static
- :updated: casablanca
- If a VNF's Heat Orchestration Template property ``name``
- for a non ``OS::Nova::Server`` resource uses the intrinsic function
- ``str_replace`` in conjunction with the ONAP
- supplied metadata parameter ``vnf_name`` and does not create
- a unique value, additional data **MUST** be used in the
- ``str_replace`` to create a unique value, such as ``OS::stack_name``
- and/or the ``OS::Heat::ResourceGroup`` ``index``.
*Example: Property 'name' for resource 'OS::Neutron::SecurityGroup'*