+++ /dev/null
-# Copyright © Intel Corporation 2019\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-\r
-open_cli_schema_version: 1.0\r
-name: service-create-vcpe\r
-description: Create a vcpe service instance using SO\r
-\r
-info:\r
- product: onap-dublin\r
- service: so\r
- author: ONAP CLI Team onap-discuss@lists.onap.org\r
-\r
-parameters:\r
-- name: cloud-region\r
- description: cloud region identifier\r
- type: string\r
- short_option: l\r
- long_option: cloud-region\r
- is_optional: true\r
-- name: tenant-id\r
- description: tenant id\r
- type: string\r
- short_option: t\r
- long_option: tenant-id\r
- is_optional: true\r
-- name: model-invariant-id\r
- description: model invariant id generated by ASDC.\r
- type: string\r
- short_option: e\r
- long_option: model-invariant-id\r
- is_optional: false\r
-- name: model-uuid\r
- description: model uuid generated by ASDC.\r
- type: string\r
- short_option: g\r
- long_option: model-uuid\r
- is_optional: false\r
-- name: model-name\r
- description: model name as provided in ASDC design time.\r
- type: string\r
- short_option: i\r
- long_option: model-name\r
- is_optional: false\r
-- name: model-version\r
- description: model-version\r
- type: string\r
- short_option: j\r
- long_option: model-version\r
- is_optional: false\r
-- name: model-version-id\r
- description: model-version-id\r
- type: string\r
- short_option: n\r
- long_option: model-version-id\r
- is_optional: false\r
-- name: customer\r
- description: unique id for customer\r
- type: string\r
- short_option: c\r
- long_option: customer\r
- is_optional: false\r
-- name: requestor-id\r
- description: requestor ID\r
- type: string\r
- short_option: q\r
- long_option: requestor-id\r
- is_optional: false\r
-- name: instance-name\r
- description: service instance name\r
- type: string\r
- short_option: k\r
- long_option: instance-name\r
- is_optional: false\r
-- name: supress-rollback\r
- description: rollback changes if instantiation fails.\r
- type: bool\r
- short_option: r\r
- long_option: supress-rollback\r
- is_optional: true\r
-- name: brg-wan-mac-address\r
- description: BRG_WAN_MAC_Address\r
- type: string\r
- short_option: b\r
- long_option: brg-wan-mac-address\r
- is_optional: false\r
-- name: customer-latitude\r
- description: customer latitude, part of customer location\r
- type: string\r
- short_option: f\r
- long_option: customer-latitude\r
- is_optional: true\r
-- name: customer-longitude\r
- description: customer longitude, part of customer location\r
- type: string\r
- short_option: d\r
- long_option: customer-longitude\r
- is_optional: true\r
-- name: customer-name\r
- description: customer name, part of customer location\r
- type: string\r
- short_option: y\r
- long_option: customer-name\r
- is_optional: true\r
-- name: homing-solution\r
- description: homing solution to use [oof|sniro]\r
- type: string\r
- short_option: h\r
- long_option: homing-solution\r
- is_optional: true\r
-- name: orchestrator\r
- description: orchestrator to use [multicloud|openstack(default)]\r
- type: string\r
- short_option: o\r
- long_option: orchestrator\r
- is_optional: true\r
-- name: api\r
- description: api to use [GR_API|VNF_API]\r
- type: string\r
- short_option: p\r
- long_option: api\r
- is_optional: true\r
- default_value: VNF_API\r
-- name: subscriber-name\r
- description: subscriber name\r
- type: string\r
- short_option: s\r
- long_option: subscriber-name\r
- is_optional: true\r
-- name: project-name\r
- description: project name\r
- type: string\r
- short_option: x\r
- long_option: project-name\r
- is_optional: true\r
-- name: owning-entity-id\r
- description: owning entity id\r
- type: string\r
- short_option: z\r
- long_option: owning-entity-id\r
- is_optional: true\r
-- name: owning-entity-name\r
- description: owning entity name\r
- type: string\r
- short_option: m\r
- long_option: owning-entity-name\r
- is_optional: true\r
-\r
-results:\r
- direction: portrait\r
- attributes:\r
- - name: service-id\r
- description: instance id for the created service.\r
- type: string\r
- scope: short\r
-\r
-\r
-http:\r
- service:\r
- name: so\r
- version: v6\r
- auth: basic\r
- mode: direct\r
- request:\r
- uri: /onap/so/infra/serviceInstances/v6\r
- method: POST\r
- body: '{\r
- "requestDetails":{\r
- "cloudConfiguration":{\r
- "lcpCloudRegionId":"${cloud-region}",\r
- "tenantId":"${tenant-id}"\r
- },\r
- "modelInfo":{\r
- "modelType":"service",\r
- "modelInvariantId":"${model-invariant-id}",\r
- "modelNameVersionId":"${model-uuid}",\r
- "modelName":"${model-name}",\r
- "modelVersion":"${model-version}",\r
- "modelVersionId":"${model-version-id}"\r
- },\r
- "subscriberInfo":{\r
- "globalSubscriberId":"${customer}",\r
- "subscriberName":"${subscriber-name}"\r
- },\r
- "requestInfo":{\r
- "requestorId":"${requestor-id}",\r
- "instanceName":"${instance-name}",\r
- "source":"CLI",\r
- "suppressRollback":"${supress-rollback}"\r
- },\r
- "requestParameters":{\r
- "subscriptionServiceType":"vCPE",\r
- "aLaCarte":"false",\r
- "testApi":"${api}",\r
- "userParams":[\r
- {\r
- "name":"BRG_WAN_MAC_Address",\r
- "value":"${brg-wan-mac-address}"\r
- },\r
- {\r
- "name":"Customer_Location",\r
- "value":{\r
- "customerLatitude":"${customer-latitude}",\r
- "customerLongitude":"${customer-longitude}",\r
- "customerName":"${customer-name}"\r
- }\r
- },\r
- {\r
- "name":"Homing_Solution",\r
- "value":"${homing-solution}"\r
- },\r
- {\r
- "name":"orchestrator",\r
- "value":"${orchestrator}"\r
- }\r
- ]\r
- },\r
- "project":{\r
- "projectName":"${project-name}"\r
- },\r
- "owningEntity":{\r
- "owningEntityId":"${owning-entity-id}",\r
- "owningEntityName":"${owning-entity-name}"\r
- }\r
- }\r
- }'\r
- success_codes:\r
- - 202\r
- result_map:\r
- service-id: $b{$.requestReferences.instanceId}\r
- sample_response:\r
- body: '{\r
- "requestReferences":{\r
- "instanceId":"${instance-id}",\r
- "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
- }\r
- }'\r
+++ /dev/null
-# Copyright © Intel Corporation 2019\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-\r
-open_cli_schema_version: 1.0\r
-name: service-show\r
-description: Show a service instances from SO\r
-\r
-info:\r
- product: onap-dublin\r
- service: so\r
- author: ONAP CLI Team onap-discuss@lists.onap.org\r
-\r
-parameters:\r
-- name: service-id\r
- description: unique id for service instance\r
- type: string\r
- short_option: s\r
- long_option: service-instace-id\r
- is_optional: false\r
-\r
-results:\r
- direction: landscape\r
- attributes:\r
- - name: name\r
- description: Onap service name\r
- scope: short\r
- type: string\r
- - name: version\r
- description: Onap service version\r
- scope: short\r
- type: string\r
- - name: url\r
- description: Onap service base url\r
- scope: short\r
- type: url\r
- - name: status\r
- description: Onap service status\r
- scope: short\r
- type: digit\r
- - name: nodes\r
- description: Onap service running nodes\r
- scope: long\r
- type: json\r
- - name: enable-ssl\r
- description: Onap service is enabled with https or not\r
- scope: long\r
- type: string\r
- - name: path\r
- description: Onap service path\r
- scope: long\r
- type: string\r
-\r
-\r
-http:\r
- service:\r
- name: so\r
- version: v6\r
- auth: basic\r
- mode: direct\r
- request:\r
- uri: /onap/so/infra/serviceInstances/v6/${service-id}\r
- method: GET\r
- success_codes:\r
- - 201\r
- - 200\r
- result_map:\r
- name: $b{$.[*].serviceName}\r
- version: $b{$.[*].version}\r
- url: $b{$.[*].url}\r
- status: $b{$.[*].status}\r
- enable-ssl: $b{$.[*].enable_ssl}\r
- path: $b{$.[*].path}\r
- nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}\r
- sample_response:\r
- body: '{\r
- "requestReferences":{\r
- "instanceId":"${instance-id}",\r
- "requestId":"375ba428-65e7-4f2b-afb9-74735ac6bfd0"\r
- }\r
- }'\r