aboutsummaryrefslogtreecommitdiffstats
path: root/src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2022-10-17 12:46:49 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2022-10-17 14:05:09 +0000
commitf2adf542e878c96895210f97ebf1ebb763b2f465 (patch)
tree91fc0faeb3436e723d07aed1f38ce59a6e7cc7c5 /src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2
parent49071a0d0425ef67fa552dbf14c81e5a11cc49e7 (diff)
Release ONAP SDKv10.2
Issue-ID: INT-2150 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I650047c599a5aae6de7c6b42d38e34aea88578e2
Diffstat (limited to 'src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2')
-rw-r--r--src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j266
1 files changed, 66 insertions, 0 deletions
diff --git a/src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2 b/src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2
new file mode 100644
index 0000000..0738379
--- /dev/null
+++ b/src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2
@@ -0,0 +1,66 @@
+{
+ "requestDetails": {
+ "requestInfo":
+ {
+ "instanceName": "{{ vf_module_instance_name }}",
+ "source": "VID",
+ "suppressRollback": false,
+ "requestorId": "test"
+ },
+ "modelInfo": {
+ "modelType": "vfModule",
+ "modelInvariantId": "{{ vf_module.model_invariant_uuid }}",
+ "modelVersionId": "{{ vf_module.model_version_id }}",
+ "modelName": "{{ vf_module.model_name }}",
+ "modelVersion": "{{ vf_module.model_version }}",
+ "modelCustomizationId": "{{ vf_module.model_customization_id }}",
+ "modelCustomizationName": "{{ vf_module.model_name }}"
+ },
+ "requestParameters": {
+ "userParams": [
+ {% for parameter in vf_module_parameters %}
+ {
+ "name": "{{ parameter.name }}",
+ "value": "{{ parameter.value }}"
+ }{% if not loop.last %},{% endif %}
+ {% endfor %}
+ ],
+ "testApi": "GR_API",
+ "usePreload": true,
+ "aLaCarte": true
+ },
+ "cloudConfiguration": {
+ "tenantId": "{{ tenant.tenant_id }}",
+ "cloudOwner": "{{ cloud_region.cloud_owner }}",
+ "lcpCloudRegionId": "{{ cloud_region.cloud_region_id }}"
+ },
+ "relatedInstanceList": [
+ {
+ "relatedInstance": {
+ "instanceId": "{{ vnf_instance.service_instance.instance_id }}",
+ "modelInfo": {
+ "modelType": "service",
+ "modelName": "{{ service.name }}",
+ "modelInvariantId": "{{ service.unique_uuid }}",
+ "modelVersion": "1.0",
+ "modelVersionId": "{{ service.identifier }}"
+ }
+ }
+ },
+ {
+ "relatedInstance": {
+ "instanceId": "{{ vnf_instance.vnf_id }}",
+ "modelInfo": {
+ "modelType": "vnf",
+ "modelName": "{{ vnf_instance.vnf.model_name }}",
+ "modelInvariantId": "{{ vnf_instance.vnf.model_invariant_id }}",
+ "modelVersion": "{{ vnf_instance.vnf.model_version }}",
+ "modelVersionId": "{{ vnf_instance.vnf.model_version_id }}",
+ "modelCustomizationId": "{{ vnf_instance.vnf.model_customization_id }}",
+ "modelCustomizationName": "{{ vnf_instance.vnf.name }}"
+ }
+ }
+ }
+ ]
+ }
+}