diff options
author | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2022-10-04 14:13:25 +0200 |
---|---|---|
committer | Lukasz Rajewski <lukasz.rajewski@t-mobile.pl> | 2022-10-04 20:57:15 +0000 |
commit | adc8f4c193a138f9cb06c145e16d56103acd5ecc (patch) | |
tree | 6c90da4c36bbc9e7a9bba216139844c34cdcf733 /components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json | |
parent | 4805631816cbb73192603bb5a1d0ffe5d71c8e30 (diff) |
Fix the transform-templating for referenced complex types
After fix the transform-templating will be closer to the
velocity artifact templating mechanism, what was not
a case before, when templating with complex variables like
json was not working.
Issue-ID: CCSDK-3774
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@t-mobile.pl>
Change-Id: Icd5001cb2ea2de0220fe65a7c9c0510d1fba0911
Diffstat (limited to 'components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json')
-rw-r--r-- | components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json new file mode 100644 index 000000000..14dec0942 --- /dev/null +++ b/components/model-catalog/blueprint-model/test-blueprint/baseconfiguration/Definitions/transform-mapping.json @@ -0,0 +1,51 @@ +[ + { + "name": "service-instance-id", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "service-instance-id", + "dictionary-source": "input", + "dependencies": [ + ] + }, + { + "name": "vnf-id", + "input-param": true, + "property": { + "type": "string" + }, + "dictionary-name": "vnf-id", + "dictionary-source": "input", + "dependencies": [] + }, + { + "name": "vnf_name", + "input-param": false, + "property": { + "type": "string" + }, + "dictionary-name": "vnf_name", + "dictionary-source": "sdnc", + "dependencies": [ + "service-instance-id", + "vnf-id" + ] + }, + { + "name": "private_net_id", + "input-param": true, + "property": { + "type": "string", + "metadata": { + "transform-template": "${vnf_name}_private2" + } + }, + "dictionary-name": "int_pktgen_private_net_id", + "dictionary-source": "default", + "dependencies": [ + "vnf_name" + ] + } +]
\ No newline at end of file |