From 0531bd6bf390d8c23505326c4524496983419654 Mon Sep 17 00:00:00 2001 From: "weinstock, alan" Date: Thu, 23 May 2019 19:42:37 +0000 Subject: [VNFRQTS] updated requirement R-10834 Issue-ID: VNFRQTS-646 Signed-off-by: weinstock, alan Change-Id: Ida2e15c8beb34fdc9a9a20fb746295eb4603d4e1 --- .../ONAP Heat Orchestration Template Format.rst | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) (limited to 'docs/Chapter5') diff --git a/docs/Chapter5/Heat/ONAP Heat Orchestration Template Format.rst b/docs/Chapter5/Heat/ONAP Heat Orchestration Template Format.rst index a0c1edc..6e9ae53 100644 --- a/docs/Chapter5/Heat/ONAP Heat Orchestration Template Format.rst +++ b/docs/Chapter5/Heat/ONAP Heat Orchestration Template Format.rst @@ -563,21 +563,26 @@ be provided in place, or via a function .. req:: :id: R-10834 :target: VNF - :keyword: MUST + :keyword: MUST NOT :validation_mode: static - :updated: dublin + :updated: El Alto + + A VNF's Heat Orchestration Template resource attribute ``property:`` + **MUST NOT** use more than two levels of nested ``get_param`` intrinsic + functions when deriving a property value. SDC does not support nested + ``get_param`` with recursive lists (i.e., a list inside list). + The second ``get_param`` in a nested lookup must directly derive its value + without further calls to ``get_param`` functions. + + * Example of valid nesting: - If a VNF's Heat Orchestration Template resource attribute - ``property:`` uses a nested ``get_param``, the nested - ``get_param`` **MUST** reference an index. + * ``name: {get_param: [ {vm-type}_names, {get_param : index } ] }`` - That is, to obtain a property value, two ``get_param`` intrinsic - functions are used. The second ``get_param`` must be used - to obtain an index value used to reference a parameter value in - a parameter defined as ``type: comma_delimited_list``. For - example: + * Examples of invalid nesting. SDC will not support these examples since + there is an array inside array. - * ``name: {get_param: [ name, get_param: index ] }`` + * ``name: {get_param: [ {vm-type}_names, { get_param: [ indexlist, 0 ] } ] }`` + * ``name: {get_param: [ {vm-type}_names, { get_param: [ indexlist1, { get_param: indexlist2 } ] } ] }`` metadata -- cgit 1.2.3-korg