1 # Copyright © Intel Corporation 2019
\r
3 # Licensed under the Apache License, Version 2.0 (the "License");
\r
4 # you may not use this file except in compliance with the License.
\r
5 # You may obtain a copy of the License at
\r
7 # http://www.apache.org/licenses/LICENSE-2.0
\r
9 # Unless required by applicable law or agreed to in writing, software
\r
10 # distributed under the License is distributed on an "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 # See the License for the specific language governing permissions and
\r
13 # limitations under the License.
\r
15 open_cli_schema_version: 1.0
\r
16 name: service-create-vcpe
\r
17 description: Create a vcpe service instance using SO
\r
20 product: onap-dublin
\r
22 author: ONAP CLI Team onap-discuss@lists.onap.org
\r
25 - name: cloud-region
\r
26 description: cloud region identifier
\r
29 long_option: cloud-region
\r
32 description: tenant id
\r
35 long_option: tenant-id
\r
37 - name: model-invariant-id
\r
38 description: model invariant id generated by ASDC.
\r
41 long_option: model-invariant-id
\r
44 description: model uuid generated by ASDC.
\r
47 long_option: model-uuid
\r
50 description: model name as provided in ASDC design time.
\r
53 long_option: model-name
\r
55 - name: model-version
\r
56 description: model-version
\r
59 long_option: model-version
\r
61 - name: model-version-id
\r
62 description: model-version-id
\r
65 long_option: model-version-id
\r
68 description: unique id for customer
\r
71 long_option: customer
\r
73 - name: requestor-id
\r
74 description: requestor ID
\r
77 long_option: requestor-id
\r
79 - name: instance-name
\r
80 description: service instance name
\r
83 long_option: instance-name
\r
85 - name: supress-rollback
\r
86 description: rollback changes if instantiation fails.
\r
89 long_option: supress-rollback
\r
91 - name: brg-wan-mac-address
\r
92 description: BRG_WAN_MAC_Address
\r
95 long_option: brg-wan-mac-address
\r
97 - name: customer-latitude
\r
98 description: customer latitude, part of customer location
\r
101 long_option: customer-latitude
\r
103 - name: customer-longitude
\r
104 description: customer longitude, part of customer location
\r
107 long_option: customer-longitude
\r
109 - name: customer-name
\r
110 description: customer name, part of customer location
\r
113 long_option: customer-name
\r
115 - name: homing-solution
\r
116 description: homing solution to use [oof|sniro]
\r
119 long_option: homing-solution
\r
121 - name: orchestrator
\r
122 description: orchestrator to use [multicloud|openstack(default)]
\r
125 long_option: orchestrator
\r
128 description: api to use [GR_API|VNF_API]
\r
133 default_value: VNF_API
\r
134 - name: subscriber-name
\r
135 description: subscriber name
\r
138 long_option: subscriber-name
\r
140 - name: project-name
\r
141 description: project name
\r
144 long_option: project-name
\r
146 - name: owning-entity-id
\r
147 description: owning entity id
\r
150 long_option: owning-entity-id
\r
152 - name: owning-entity-name
\r
153 description: owning entity name
\r
156 long_option: owning-entity-name
\r
160 direction: portrait
\r
163 description: instance id for the created service.
\r
175 uri: /onap/so/infra/serviceInstances/v6
\r
179 "cloudConfiguration":{
\r
180 "lcpCloudRegionId":"${cloud-region}",
\r
181 "tenantId":"${tenant-id}"
\r
184 "modelType":"service",
\r
185 "modelInvariantId":"${model-invariant-id}",
\r
186 "modelNameVersionId":"${model-uuid}",
\r
187 "modelName":"${model-name}",
\r
188 "modelVersion":"${model-version}",
\r
189 "modelVersionId":"${model-version-id}"
\r
192 "globalSubscriberId":"${customer}",
\r
193 "subscriberName":"${subscriber-name}"
\r
196 "requestorId":"${requestor-id}",
\r
197 "instanceName":"${instance-name}",
\r
199 "suppressRollback":"${supress-rollback}"
\r
201 "requestParameters":{
\r
202 "subscriptionServiceType":"vCPE",
\r
203 "aLaCarte":"false",
\r
204 "testApi":"${api}",
\r
207 "name":"BRG_WAN_MAC_Address",
\r
208 "value":"${brg-wan-mac-address}"
\r
211 "name":"Customer_Location",
\r
213 "customerLatitude":"${customer-latitude}",
\r
214 "customerLongitude":"${customer-longitude}",
\r
215 "customerName":"${customer-name}"
\r
219 "name":"Homing_Solution",
\r
220 "value":"${homing-solution}"
\r
223 "name":"orchestrator",
\r
224 "value":"${orchestrator}"
\r
229 "projectName":"${project-name}"
\r
232 "owningEntityId":"${owning-entity-id}",
\r
233 "owningEntityName":"${owning-entity-name}"
\r
240 service-id: $b{$.requestReferences.instanceId}
\r
243 "requestReferences":{
\r
244 "instanceId":"${instance-id}",
\r
245 "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"
\r