aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-beijing/features/sdc
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-beijing/features/sdc')
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-moco.json104
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-sample.yaml42
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema-beijing.yaml93
3 files changed, 239 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-moco.json
new file mode 100644
index 00000000..8caab9a1
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-moco.json
@@ -0,0 +1,104 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products/a8cd007fa101470e98516cd4549c568f/versions/1.0",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-4aa5939e-26d4-438a-81f4-4f7f3c68d138",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "name" : "847cb26a-59a6-475a-94dd",
+ "description" : "vendor software product",
+ "category" : "resourceNewCategory.generic",
+ "subCategory" : "resourceNewCategory.generic.abstract",
+ "vendorName" : "01eb54a1-f1ff-41a2-aafc",
+ "vendorId" : "1a49df7b78654777a71f64f2c6c2468f",
+ "licensingVersion" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "licensingData" : {
+ "licenseAgreement" : "99e3783033de443db69d05996341e28d",
+ "featureGroups" : [ "3050264504f04ce7afc54861c8ba69ed" ]
+ },
+ "onboardingMethod" : "NetworkPackage",
+ "onboardingOrigin" : "zip",
+ "networkPackageName" : "base_vlb",
+ "id" : "a8cd007fa101470e98516cd4549c568f",
+ "version" : {
+ "id" : "1.0",
+ "label" : "1.0"
+ },
+ "viewableVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "finalVersions" : [ {
+ "id" : "1.0",
+ "label" : "1.0"
+ } ],
+ "status" : "Final",
+ "validationData" : {
+ "importStructure" : {
+ "heat" : [ {
+ "fileName" : "dnsscaling.yaml",
+ "env" : {
+ "fileName" : "dnsscaling.env"
+ },
+ "errors" : [ {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [vlb_private_net_id], Resource ID [vdns_2_private_0_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vdns_2_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vdns_2]"
+ } ],
+ "base" : false
+ }, {
+ "fileName" : "base_vlb.yaml",
+ "env" : {
+ "fileName" : "base_vlb.env"
+ },
+ "errors" : [ {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vlb_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vdns_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vpg_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: A resource is connected twice to the same network role, Network Role [vdns_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vdns_0]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Missing Nova Server Metadata property, Resource ID [vpg_0]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: A resource is connected twice to the same network role, Network Role [vpg_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vpg_0]"
+ } ],
+ "base" : true
+ } ]
+ }
+ },
+ "isOldVersion" : "False"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-sample.yaml
new file mode 100644
index 00000000..7dccd06a
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-show-schema-beijing-sample.yaml
@@ -0,0 +1,42 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: vsp-show
+version: onap-beijing
+samples:
+ sample1:
+ name: vsp-show
+ input: --vsp-id a8cd007fa101470e98516cd4549c568f --vsp-version 1.0 --long
+ moco: vsp-show-schema-1.1-moco.json
+ output: |
+ +--------------+----------------------------------+
+ |property |value |
+ +--------------+----------------------------------+
+ |name |847cb26a-59a6-475a-94dd |
+ +--------------+----------------------------------+
+ |ID |a8cd007fa101470e98516cd4549c568f |
+ +--------------+----------------------------------+
+ |description |vendor software product |
+ +--------------+----------------------------------+
+ |vendor-name |01eb54a1-f1ff-41a2-aafc |
+ +--------------+----------------------------------+
+ |vendor-id |1a49df7b78654777a71f64f2c6c2468f |
+ +--------------+----------------------------------+
+ |version |1.0 |
+ +--------------+----------------------------------+
+ |status |Final |
+ +--------------+----------------------------------+
+ |license-id |99e3783033de443db69d05996341e28d |
+ +--------------+----------------------------------+
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema-beijing.yaml
new file mode 100644
index 00000000..8d6a470d
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema-beijing.yaml
@@ -0,0 +1,93 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vsp-show
+description: Details of the Vendor Software Product
+
+info:
+ product: onap-beijing
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: Onap VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: VSP Name
+ scope: short
+ type: string
+ - name: ID
+ description: VSP ID
+ scope: short
+ type: string
+ - name: description
+ description: Description for the VSP
+ scope: short
+ type: string
+ - name: vendor-name
+ description: Vendor name
+ scope: long
+ type: string
+ - name: vendor-id
+ description: Vendor id
+ scope: long
+ type: string
+ - name: version
+ description: Version
+ scope: short
+ type: string
+ - name: status
+ description: status
+ scope: short
+ type: string
+ - name: license-id
+ description: license aggreement
+ scope: long
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{$.id}
+ name: $b{$.name}
+ description: $b{$.description}
+ vendor-name: $b{$.vendorName}
+ vendor-id: $b{$.vendorId}
+ version: $b{$.version.id}
+ status: $b{$.status}
+ license-id: $b{$.licensingData.licenseAgreement}
+ sample_response:
+ body: '{"name":"test-vsp1","description":"vendor software product","category":"resourceNewCategory.generic","subCategory":"resourceNewCategory.generic.abstract","vendorName":"5aa8a88c","vendorId":"DBB202617952486691C1E35C9621CD4E","licensingVersion":"1.0","licensingData":{"licenseAgreement":"E19DBDDB137B494385F9535325BFD585","featureGroups":["94835F096DAF4ED78781A394A4F22AD1"]},"id":"354BF3E32E494EAFBB15037CFAB262FF","version":"0.1","viewableVersions":["0.1"],"status":"Locked","lockingUser":"cs0008"}'