summaryrefslogtreecommitdiffstats
path: root/robot/assets/templates/so/cds_service_template.jinja
blob: 9b6e1cc28c75156826d1b1d8656f5029d0d610e5 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{  
   "requestDetails":{  
      "subscriberInfo":{  
         "globalSubscriberId":"{{subscriber_id}}"
      },
      "requestInfo":{  
         "suppressRollback":false,
         "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
         "requestorId":"robot-ete",
         "instanceName":"{{service_instance_name}}",
         "source":"VID"
      },
      "cloudConfiguration":{  
         "lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}",
         "tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}",
         "cloudOwner":"{{cloud_owner}}"
      },
      "requestParameters":{  
         "subscriptionServiceType":"{{subscription_service_type}}",
         "userParams":[  
            {  
               "Homing_Solution":"{{homing_solution}}"
            },
            {  
               "service":{  
                  "instanceParams" : [],
                  "instanceName":"{{service_instance_name}}",
                  "resources":{  
                     "vnfs":[  
                        {  
                           "modelInfo":{  
                              "modelName":"{{resp['serviceVnfs'][0]['modelInfo']['modelName']}}",
                              "modelVersionId":"{{resp['serviceVnfs'][0]['modelInfo']['modelUuid']}}",
                              "modelInvariantUuid":"{{resp['serviceVnfs'][0]['modelInfo']['modelInvariantUuid']}}",
                              "modelVersion":"1.0",
                              "modelCustomizationId":"{{resp['serviceVnfs'][0]['modelInfo']['modelCustomizationUuid']}}",
                              "modelInstanceName":"{{resp['serviceVnfs'][0]['modelInfo']['modelInstanceName']}}"
                           },
                           "cloudConfiguration":{  
                              "lcpCloudRegionId":"{{GLOBAL_INJECTED_REGION}}",
                              "tenantId":"{{GLOBAL_INJECTED_OPENSTACK_TENANT_ID}}"
                           },
                           "platform":{  
                              "platformName":"test"
                           },
                           "lineOfBusiness":{  
                              "lineOfBusinessName":"LOB-Demonstration"
                           },
                           "productFamilyId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
                           "instanceName":"{{resp['serviceVnfs'][0]['modelInfo']['modelInstanceName']}}",
                           "instanceParams":[  
                              {  
                                 "onap_private_net_id":"{{GLOBAL_INJECTED_NETWORK}}",
                                 "onap_private_subnet_id":"{{GLOBAL_INJECTED_OPENSTACK_PRIVATE_SUBNET_ID}}",
                                 "pub_key":"{{GLOBAL_INJECTED_PUBLIC_KEY}}",
                                 "image_name":"{{GLOBAL_INJECTED_UBUNTU_1604_IMAGE}}",
                                 "flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}",
                                 "vpg_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}",
                                 "vlb_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}",
                                 "vdns_flavor_name":"{{GLOBAL_INJECTED_VM_FLAVOR}}",
                                 "sec_group":"{{GLOBAL_INJECTED_OPENSTACK_SECURITY_GROUP}}",
                                 "install_script_version":"{{GLOBAL_INJECTED_SCRIPT_VERSION}}",
                                 "demo_artifacts_version":"{{GLOBAL_INJECTED_SCRIPT_VERSION}}",
                                 "cloud_env":"{{GLOBAL_INJECTED_CLOUD_ENV}}",
                                 "public_net_id":"{{GLOBAL_INJECTED_PUBLIC_NET_ID}}",
                                 "aic-cloud-region":"{{GLOBAL_INJECTED_REGION}}"
                              }
                           ],
                           "vfModules":[  
                              {  
                                 "modelInfo":{  
                                    "modelName":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelName']}}",
                                    "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelUuid']}}",
                                    "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelInvariantUuid']}}",
                                    "modelVersion":"1",
                                    "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelCustomizationUuid']}}"
                                 },
                                 "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][0]['modelInfo']['modelName']}}",
                                 "instanceParams":[  
                                    {  

                                    }
                                 ]
                              },
                              {  
                                 "modelInfo":{  
                                    "modelName":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelName']}}",
                                    "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelUuid']}}",
                                    "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelInvariantUuid']}}",
                                    "modelVersion":"1",
                                    "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelCustomizationUuid']}}"
                                 },
                                 "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][1]['modelInfo']['modelName']}}",
                                 "instanceParams":[  
                                    {  

                                    }
                                 ]
                              },
                              {  
                                 "modelInfo":{  
                                    "modelName":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelName']}}",
                                    "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelUuid']}}",
                                    "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelInvariantUuid']}}",
                                    "modelVersion":"1",
                                    "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelCustomizationUuid']}}"
                                 },
                                 "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][2]['modelInfo']['modelName']}}",
                                 "instanceParams":[  
                                    {  

                                    }
                                 ]
                              },
                              {  
                                 "modelInfo":{  
                                    "modelName":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelName']}}",
                                    "modelVersionId":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelUuid']}}",
                                    "modelInvariantUuid":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelInvariantUuid']}}",
                                    "modelVersion":"1",
                                    "modelCustomizationId":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelCustomizationUuid']}}"
                                 },
                                 "instanceName":"{{resp['serviceVnfs'][0]['vfModules'][3]['modelInfo']['modelName']}}",
                                 "instanceParams":[  
                                    {  

                                    }
                                 ]
                              }
                           ]
                        }
                     ]
                  },
                  "modelInfo":{  
         		     "modelVersion":"1.0",
         			 "modelVersionId":"{{service_model_uuid}}",
         			 "modelInvariantId":"{{service_model_invariantuuid}}",
         			 "modelName":"{{service_model_name}}",
         			 "modelType":"service"
                  }
               }
            }
         ],
         "aLaCarte":false
      },
      "project":{  
         "projectName":"Project-Demonstration"
      },
      "owningEntity":{  
         "owningEntityId":"{{owning_entity_id}}",
         "owningEntityName":"{{owning_entity}}"
      },
      "modelInfo":{  
         "modelVersion":"1.0",
         "modelVersionId":"{{service_model_uuid}}",
         "modelInvariantId":"{{service_model_invariantuuid}}",
         "modelName":"{{service_model_name}}",
         "modelType":"service"
      }
   }
}