aboutsummaryrefslogtreecommitdiffstats
path: root/src/onapsdk/so/templates/instantiate_vf_module_ala_carte.json.j2
blob: 07383791c8fb0600dbda59246961ea1073e92718 (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
{
    "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 }}"
                    }
                }
            }
        ]
    }
}