aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-dublin')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-moco.json378
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-sample.yaml32
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-flavor-list-schema-dublin.yaml81
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-moco.json40
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-sample.yaml25
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-dublin.yaml88
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-dublin.yaml51
-rw-r--r--products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-dublin.yaml57
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json41
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-sample.yaml29
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json274
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml81
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json31
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json21
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-sample.yaml22
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json49
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml61
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml54
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml38
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml51
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml49
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml65
23 files changed, 1623 insertions, 17 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-moco.json
new file mode 100644
index 00000000..15ac5393
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-moco.json
@@ -0,0 +1,378 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-05/flavors",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-7bfa57a0-e098-4865-992b-5c0edfac75d1",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "flavor" : [ {
+ "flavor-id" : "30",
+ "flavor-name" : "m1.large",
+ "flavor-vcpus" : 4,
+ "flavor-ram" : 4096,
+ "flavor-disk" : 30,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/30",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857642890"
+ }, {
+ "flavor-id" : "221",
+ "flavor-name" : "onap.hpa.flavor21",
+ "flavor-vcpus" : 2,
+ "flavor-ram" : 512,
+ "flavor-disk" : 20,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/221",
+ "flavor-disabled" : false,
+ "hpa-capabilities" : {
+ "hpa-capability" : [ {
+ "hpa-capability-id" : "3201b939-6fd3-4185-b36c-b9e2b89e699c",
+ "hpa-feature" : "hugePages",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857634013",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "memoryPageSize",
+ "hpa-attribute-value" : "{\"value\":\"2048\",\"unit\":\"KB\"}",
+ "resource-version" : "1547857634077"
+ } ]
+ }, {
+ "hpa-capability-id" : "d6d28707-88af-48e0-9f72-2669dd47879e",
+ "hpa-feature" : "localStorage",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857634122",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "swapMemSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857634266"
+ }, {
+ "hpa-attribute-key" : "diskSize",
+ "hpa-attribute-value" : "{\"value\":\"20\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857634208"
+ }, {
+ "hpa-attribute-key" : "ephemeralDiskSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857634287"
+ } ]
+ }, {
+ "hpa-capability-id" : "d4911790-fe3d-468c-9f14-3243720ceecf",
+ "hpa-feature" : "cpuPinning",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857633656",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "logicalCpuPinningPolicy",
+ "hpa-attribute-value" : "{\"value\":\"dedicated\"}",
+ "resource-version" : "1547857633850"
+ }, {
+ "hpa-attribute-key" : "logicalCpuThreadPinningPolicy",
+ "hpa-attribute-value" : "{\"value\":\"isolate\"}",
+ "resource-version" : "1547857633702"
+ } ]
+ }, {
+ "hpa-capability-id" : "debc454e-ea09-4a80-ba26-2097d2edd398",
+ "hpa-feature" : "ovsDpdk",
+ "hpa-version" : "v1",
+ "architecture" : "Intel64",
+ "resource-version" : "1547857634393",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "dataProcessingAccelerationLibrary",
+ "hpa-attribute-value" : "{\"value\":\"v17.02\"}",
+ "resource-version" : "1547857634418"
+ } ]
+ }, {
+ "hpa-capability-id" : "62c138b5-290b-40fa-99cb-d58d8a76a93c",
+ "hpa-feature" : "basicCapabilities",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857633289",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "virtualMemSize",
+ "hpa-attribute-value" : "{\"value\":\"512\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857633571"
+ }, {
+ "hpa-attribute-key" : "numVirtualCpu",
+ "hpa-attribute-value" : "{\"value\":\"2\"}",
+ "resource-version" : "1547857633401"
+ } ]
+ } ]
+ },
+ "resource-version" : "1547857633230"
+ }, {
+ "flavor-id" : "10",
+ "flavor-name" : "m1.small",
+ "flavor-vcpus" : 1,
+ "flavor-ram" : 1024,
+ "flavor-disk" : 10,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/10",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857628647"
+ }, {
+ "flavor-id" : "222",
+ "flavor-name" : "onap.hpa.flavor22",
+ "flavor-vcpus" : 2,
+ "flavor-ram" : 2048,
+ "flavor-disk" : 20,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/222",
+ "flavor-disabled" : false,
+ "hpa-capabilities" : {
+ "hpa-capability" : [ {
+ "hpa-capability-id" : "737e7791-af11-4b82-8b0c-2834f3315134",
+ "hpa-feature" : "hugePages",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857636101",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "memoryPageSize",
+ "hpa-attribute-value" : "{\"value\":\"2048\",\"unit\":\"KB\"}",
+ "resource-version" : "1547857636231"
+ } ]
+ }, {
+ "hpa-capability-id" : "0e96b6f2-2080-4537-8af7-07ca2e51c740",
+ "hpa-feature" : "ovsDpdk",
+ "hpa-version" : "v1",
+ "architecture" : "Intel64",
+ "resource-version" : "1547857636818",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "dataProcessingAccelerationLibrary",
+ "hpa-attribute-value" : "{\"value\":\"v17.02\"}",
+ "resource-version" : "1547857636856"
+ } ]
+ }, {
+ "hpa-capability-id" : "8a7e4141-e192-487b-b31a-da886899c5cb",
+ "hpa-feature" : "localStorage",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857636258",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "swapMemSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857636439"
+ }, {
+ "hpa-attribute-key" : "diskSize",
+ "hpa-attribute-value" : "{\"value\":\"20\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857636336"
+ }, {
+ "hpa-attribute-key" : "ephemeralDiskSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857636542"
+ } ]
+ }, {
+ "hpa-capability-id" : "20811e74-fc45-42a5-a1eb-f1a45bfa0833",
+ "hpa-feature" : "basicCapabilities",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857635842",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "numVirtualCpu",
+ "hpa-attribute-value" : "{\"value\":\"2\"}",
+ "resource-version" : "1547857635908"
+ }, {
+ "hpa-attribute-key" : "virtualMemSize",
+ "hpa-attribute-value" : "{\"value\":\"2048\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857635970"
+ } ]
+ }, {
+ "hpa-capability-id" : "8a52f119-0143-4e00-b726-c28ba370d0d1",
+ "hpa-feature" : "sriovNICNetwork",
+ "hpa-version" : "v1",
+ "architecture" : "intel",
+ "resource-version" : "1547857636622",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "pciCount",
+ "hpa-attribute-value" : "{\"value\":\"2\"}",
+ "resource-version" : "1547857636655"
+ }, {
+ "hpa-attribute-key" : "physicalNetwork",
+ "hpa-attribute-value" : "{\"value\":\"private-1\"}",
+ "resource-version" : "1547857636803"
+ }, {
+ "hpa-attribute-key" : "pciVendorId",
+ "hpa-attribute-value" : "{\"value\":\"8086\"}",
+ "resource-version" : "1547857636690"
+ }, {
+ "hpa-attribute-key" : "pciDeviceId",
+ "hpa-attribute-value" : "{\"value\":\"154C\"}",
+ "resource-version" : "1547857636789"
+ } ]
+ } ]
+ },
+ "resource-version" : "1547857635807"
+ }, {
+ "flavor-id" : "0",
+ "flavor-name" : "m1.tiny",
+ "flavor-vcpus" : 1,
+ "flavor-ram" : 512,
+ "flavor-disk" : 1,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/0",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857626877"
+ }, {
+ "flavor-id" : "50",
+ "flavor-name" : "m1.xxlarge",
+ "flavor-vcpus" : 12,
+ "flavor-ram" : 24567,
+ "flavor-disk" : 50,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/50",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857647065"
+ }, {
+ "flavor-id" : "40",
+ "flavor-name" : "m1.xlarge",
+ "flavor-vcpus" : 8,
+ "flavor-ram" : 8192,
+ "flavor-disk" : 40,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/40",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857645715"
+ }, {
+ "flavor-id" : "20",
+ "flavor-name" : "m1.medium",
+ "flavor-vcpus" : 2,
+ "flavor-ram" : 2048,
+ "flavor-disk" : 20,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/20",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857630702"
+ }, {
+ "flavor-id" : "223",
+ "flavor-name" : "onap.hpa.flavor23",
+ "flavor-vcpus" : 2,
+ "flavor-ram" : 2048,
+ "flavor-disk" : 20,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/223",
+ "flavor-disabled" : false,
+ "hpa-capabilities" : {
+ "hpa-capability" : [ {
+ "hpa-capability-id" : "d7c40459-b36d-4910-a07f-ff67b8ef2b0c",
+ "hpa-feature" : "sriovNICNetwork",
+ "hpa-version" : "v1",
+ "architecture" : "intel",
+ "resource-version" : "1547857640758",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "pciCount",
+ "hpa-attribute-value" : "{\"value\":\"2\"}",
+ "resource-version" : "1547857640835"
+ }, {
+ "hpa-attribute-key" : "pciDeviceId",
+ "hpa-attribute-value" : "{\"value\":\"154C\"}",
+ "resource-version" : "1547857640944"
+ }, {
+ "hpa-attribute-key" : "pciVendorId",
+ "hpa-attribute-value" : "{\"value\":\"8086\"}",
+ "resource-version" : "1547857640890"
+ }, {
+ "hpa-attribute-key" : "physicalNetwork",
+ "hpa-attribute-value" : "{\"value\":\"shared-1\"}",
+ "resource-version" : "1547857641061"
+ } ]
+ }, {
+ "hpa-capability-id" : "f46537e2-48c1-4b19-8cd2-568bde2673a7",
+ "hpa-feature" : "ovsDpdk",
+ "hpa-version" : "v1",
+ "architecture" : "Intel64",
+ "resource-version" : "1547857641290",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "dataProcessingAccelerationLibrary",
+ "hpa-attribute-value" : "{\"value\":\"v17.02\"}",
+ "resource-version" : "1547857641373"
+ } ]
+ }, {
+ "hpa-capability-id" : "3dccccdc-7d0a-45e0-b474-3c942abb10dd",
+ "hpa-feature" : "basicCapabilities",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857639564",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "numVirtualCpu",
+ "hpa-attribute-value" : "{\"value\":\"2\"}",
+ "resource-version" : "1547857639774"
+ }, {
+ "hpa-attribute-key" : "virtualMemSize",
+ "hpa-attribute-value" : "{\"value\":\"2048\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857639913"
+ } ]
+ }, {
+ "hpa-capability-id" : "61470e69-c1c1-41be-9877-f82737ec5acd",
+ "hpa-feature" : "hugePages",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857640048",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "memoryPageSize",
+ "hpa-attribute-value" : "{\"value\":\"2048\",\"unit\":\"KB\"}",
+ "resource-version" : "1547857640117"
+ } ]
+ }, {
+ "hpa-capability-id" : "7b009f9c-7e99-4420-b756-b7d448d53633",
+ "hpa-feature" : "localStorage",
+ "hpa-version" : "v1",
+ "architecture" : "generic",
+ "resource-version" : "1547857640407",
+ "hpa-feature-attributes" : [ {
+ "hpa-attribute-key" : "ephemeralDiskSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857640694"
+ }, {
+ "hpa-attribute-key" : "diskSize",
+ "hpa-attribute-value" : "{\"value\":\"20\",\"unit\":\"GB\"}",
+ "resource-version" : "1547857640550"
+ }, {
+ "hpa-attribute-key" : "swapMemSize",
+ "hpa-attribute-value" : "{\"value\":\"0\",\"unit\":\"MB\"}",
+ "resource-version" : "1547857640652"
+ } ]
+ } ]
+ },
+ "resource-version" : "1547857639343"
+ }, {
+ "flavor-id" : "309",
+ "flavor-name" : "rt",
+ "flavor-vcpus" : 4,
+ "flavor-ram" : 1024,
+ "flavor-disk" : 2,
+ "flavor-ephemeral" : 0,
+ "flavor-swap" : "",
+ "flavor-is-public" : true,
+ "flavor-selflink" : "http://10.12.11.5:8774/v2.1/709ba629fe194f8699b12f9d6ffd86a0/flavors/309",
+ "flavor-disabled" : false,
+ "resource-version" : "1547857644692"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..6cd31243
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-flavor-list-schema-dublin-sample.yaml
@@ -0,0 +1,32 @@
+open_cli_sample_version: 1.0
+name: -y
+version: onap-dublin
+samples:
+ sample1:
+ name: -y
+ input: CloudOwner -x ONAP-POD-01-Rail-05 -s
+ moco: cloud-flavor-list-schema-dublin-moco.json
+ output: |
+ +--------------------+------------------+--------+----------+------------+------+
+ |flavor |resource-version |vcpus |ram-size |disk-size |ID |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.large |1547857642890 |4 |4096 |30 |30 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |onap.hpa.flavor21 |1547857633230 |2 |512 |20 |221 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.small |1547857628647 |1 |1024 |10 |10 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |onap.hpa.flavor22 |1547857635807 |2 |2048 |20 |222 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.tiny |1547857626877 |1 |512 |1 |0 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.xxlarge |1547857647065 |12 |24567 |50 |50 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.xlarge |1547857645715 |8 |8192 |40 |40 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |m1.medium |1547857630702 |2 |2048 |20 |20 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |onap.hpa.flavor23 |1547857639343 |2 |2048 |20 |223 |
+ +--------------------+------------------+--------+----------+------------+------+
+ |rt |1547857644692 |4 |1024 |2 |309 |
+ +--------------------+------------------+--------+----------+------------+------+
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-flavor-list-schema-dublin.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-flavor-list-schema-dublin.yaml
new file mode 100644
index 00000000..1c394526
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-schema/infra/cloud/cloud-flavor-list-schema-dublin.yaml
@@ -0,0 +1,81 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: cloud-flavor-list
+description: List the flavors in a cloud region and its capabilities including HPA with -s option
+
+info:
+ product: onap-dublin
+ service: aai
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: cloud-region
+ description: Name of cloud region
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: cloud-owner
+ description: Name of cloud owner
+ type: string
+ short_option: y
+ long_option: cloud-owner
+ is_optional: false
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: flavor
+ description: Name of Flavor
+ scope: short
+ type: string
+ - name: resource-version
+ description: Resource version of the Flavor
+ scope: short
+ type: string
+ - name: vcpus
+ description: Number of VCPUs
+ scope: short
+ type: string
+ - name: ram-size
+ description: RAM Size for flavor
+ scope: short
+ type: string
+ - name: disk-size
+ description: Disk size for flavor
+ scope: short
+ type: string
+ - name: ID
+ description: flavor ID in cloud
+ scope: long
+ type: string
+http:
+ service:
+ auth: basic
+ mode: direct
+ request:
+ uri: /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/${cloud-owner}/${cloud-region}/flavors?depth=all
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ flavor: $b{flavor.[*].flavor-name}
+ vcpus: $b{flavor.[*].flavor-vcpus}
+ ram-size: $b{flavor.[*].flavor-ram}
+ disk-size: $b{flavor.[*].flavor-disk}
+ resource-version: $b{flavor.[*].resource-version}
+ ID: $b{flavor.[*].flavor-id}
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-moco.json b/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-moco.json
new file mode 100644
index 00000000..f9b2aaa0
--- /dev/null
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-moco.json
@@ -0,0 +1,40 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/pdp/api/getConfig",
+ "headers" : {
+ "Authorization" : "Basic dGVzdHBkcDphbHBoYTEyMw==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "Environment" : "TEST",
+ "X-TransactionId" : "req-6daad440-515a-4134-94bb-4fdf99cdc92e",
+ "ClientAuth" : "cHl0aG9uOnRlc3Q=",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "configAttributes" : { },
+ "policyName" : ".*"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : [ {
+ "policyConfigMessage" : "Config Retrieved! ",
+ "policyConfigStatus" : "CONFIG_RETRIEVED",
+ "type" : "JSON",
+ "config" : "{\"service\":\"distancePolicy\",\"guard\":\"False\",\"content\":{\"policyType\":\"distance_to_location\",\"applicableResources\":\"any\",\"identity\":\"distance-vLB\",\"policyScope\":[\"vlb\",\"us\",\"international\",\"ip\"],\"distanceProperties\":{\"distance\":{\"value\":\"100\",\"unit\":\"km\",\"operator\":\"<\"},\"locationInfo\":\"customer_loc\"},\"resources\":[\"vLB\",\"VlbhpaSriov\"]},\"priority\":\"3\",\"templateVersion\":\"OpenSource.version.1\",\"riskLevel\":\"2\",\"description\":\"Distance Policy for vLB\",\"policyName\":\"OSDF_CASABLANCA.Distance_vLBHPA_SRIOV_1\",\"version\":\"test1\",\"riskType\":\"test\"}",
+ "policyName" : "OSDF_CASABLANCA.Config_MS_Distance_vLBHPA_SRIOV_1.1.xml",
+ "policyType" : "MicroService",
+ "policyVersion" : "1",
+ "matchingConditions" : {
+ "ECOMPName" : "SampleDemo",
+ "ONAPName" : "SampleDemo",
+ "service" : "distancePolicy",
+ "policyScope" : "vlb,us,international,ip",
+ "policyType" : "distance_to_location"
+ },
+ "responseAttributes" : { },
+ "property" : null
+ } ]
+ }
+} ]
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-sample.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-sample.yaml
new file mode 100644
index 00000000..176f822e
--- /dev/null
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-sample/policy/policy-list-outdated-schema-dublin-sample.yaml
@@ -0,0 +1,25 @@
+open_cli_sample_version: 1.0
+name: policy-list-outdated
+version: onap-dublin
+samples:
+ sample1:
+ name: policy-list-outdated
+ input: -m https://10.12.6.129:30694 -u testpdp -p alpha123
+ moco: policy-list-outdated-schema-dublin-moco.json
+ output: |
+ +----------------------------------------------------+--------------+----------------------------------------------------+
+ |name |type |config |
+ +----------------------------------------------------+--------------+----------------------------------------------------+
+ |OSDF_CASABLANCA.Config_MS_Distance_vLBHPA_SRIOV_1. |MicroService |{"service":"distancePolicy","guard":"False","conte |
+ |1.xml | |nt":{"policyType":"distance_to_location","applicab |
+ | | |leResources":"any","identity":"distance-vLB","poli |
+ | | |cyScope":["vlb","us","international","ip"],"distan |
+ | | |ceProperties":{"distance":{"value":"100","unit":"k |
+ | | |m","operator":"<"},"locationInfo":"customer_loc"}, |
+ | | |"resources":["vLB","VlbhpaSriov"]},"priority":"3", |
+ | | |"templateVersion":"OpenSource.version.1","riskLeve |
+ | | |l":"2","description":"Distance Policy for vLB","po |
+ | | |licyName":"OSDF_CASABLANCA.Distance_vLBHPA_SRIOV_1 |
+ | | |","version":"test1","riskType":"test"} |
+ +----------------------------------------------------+--------------+----------------------------------------------------+
+
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-dublin.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-dublin.yaml
new file mode 100644
index 00000000..17769848
--- /dev/null
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-list-outdated-schema-dublin.yaml
@@ -0,0 +1,88 @@
+# Copyright 2019 Intel Corporation.
+#
+# 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: policy-list-outdated
+description: List policies
+
+info:
+ product: onap-dublin
+ service: policy
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-name
+ description: ONAP policy name
+ type: string
+ long_option: policy-name
+ short_option: x
+ is_optional: false
+ default_value: .*
+ - name: config-attributes
+ description: Configuration Attributes
+ type: json
+ long_option: config-attributes
+ short_option: A
+ is_optional: true
+ default_value: {}
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Policy Name
+ scope: short
+ type: string
+ - name: type
+ description: Policy type
+ scope: short
+ type: string
+ - name: config
+ description: Policy configuration
+ scope: short
+ type: json
+ - name: version
+ description: Policy version
+ scope: long
+ type: string
+ - name: rules
+ description: Policy rules
+ scope: long
+ type: json
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /pdp/api/getConfig
+ method: POST
+ body: '{"configAttributes": "${config-attributes}", "policyName": "${policy-name}"}'
+ headers:
+ Accept: application/json
+ ClientAuth: cHl0aG9uOnRlc3Q=
+ Environment: TEST
+
+
+ success_codes:
+ - 200
+
+ result_map:
+ name: $b{$.[*].policyName}
+ type: $b{$.[*].policyType}
+ version: $b{$.[*].policyVersion}
+ config: $b{$.[*].config}
+ rules: $b{$.[*].matchingConditions}
+
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-dublin.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-dublin.yaml
new file mode 100644
index 00000000..50d8d53f
--- /dev/null
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-schema-dublin.yaml
@@ -0,0 +1,51 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: policy-delete-type
+description: Delete all versions of a policy type
+
+info:
+ product: onap-dublin
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ short_option: x
+ long_option: policy-type-id
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 404
+ - 204
+
diff --git a/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-dublin.yaml b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-dublin.yaml
new file mode 100644
index 00000000..717e2f91
--- /dev/null
+++ b/products/onap-dublin/features/policy/src/main/resources/open-cli-schema/policy/policy-type-delete-with-version-schema-dublin.yaml
@@ -0,0 +1,57 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: policy-delete-type-with-version
+description: Delete one version of a policy type
+
+info:
+ product: onap-dublin
+ service: policy
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: policy-type-id
+ description: Policy type ID
+ type: string
+ short_option: x
+ long_option: policy-type-id
+ is_optional: false
+ - name: version-id
+ description: Policy type version ID
+ type: string
+ short_option: y
+ long_option: version-id
+ is_optional: false
+
+http:
+ service:
+ name: policy
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /policy/api/v1/policytypes/${policy-type-id}/versions/${version-id}
+ method: DELETE
+ context:
+ remove_empty_node: true
+ headers:
+ Content-Type: application/json
+ Accept: application/json
+ Environment: TEST
+
+ success_codes:
+ - 404
+ - 204
+
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json
new file mode 100644
index 00000000..bbd21740
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-moco.json
@@ -0,0 +1,41 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-a5095ef3-5afc-4305-945b-26fbdaf0b6b0",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "category" : "resourceNewCategory.generic",
+ "vendorId" : "74b43ab85f3d49948c1513a27adfaba7",
+ "subCategory" : "resourceNewCategory.generic.abstract",
+ "description" : "cli-test-vsp",
+ "licensingVersion" : "eb65c2fbbaee4a8dbd0b60e697e98fb7",
+ "licensingData" : {
+ "featureGroups" : [ "292d56e87f274ef385b0dfd41f41a066" ],
+ "licenseAgreement" : "92bcbe53b6724ae78c7c13e4269cb90f"
+ },
+ "icon" : "icon",
+ "onboardingMethod" : "NetworkPackage",
+ "vendorName" : "Itohan-vendor",
+ "name" : "cli-vsp-v2"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "itemId" : "a9928e0e8b124f4d87a9e0654c4b1d60",
+ "version" : {
+ "id" : "b087302e50374ab28e5a8d4b32aa3abe",
+ "name" : "1.0",
+ "description" : "Initial version",
+ "status" : "Draft"
+ }
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-sample.yaml
new file mode 100644
index 00000000..0f8fee52
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-create-schema-dublin-sample.yaml
@@ -0,0 +1,29 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: -j
+version: onap-dublin
+samples:
+ sample1:
+ name: -j
+ input: 292d56e87f274ef385b0dfd41f41a066 -o NetworkPackage -e Itohan-vendor -x cli-vsp-v2 -y cli-test-vsp -i 92bcbe53b6724ae78c7c13e4269cb90f -c eb65c2fbbaee4a8dbd0b60e697e98fb7 -g 74b43ab85f3d49948c1513a27adfaba7 -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ moco: vsp-create-schema-dublin-moco.json
+ output: |
+ +----------+----------------------------------+
+ |property |value |
+ +----------+----------------------------------+
+ |ID |a9928e0e8b124f4d87a9e0654c4b1d60 |
+ +----------+----------------------------------+
+ |version |b087302e50374ab28e5a8d4b32aa3abe |
+ +----------+----------------------------------+
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json
new file mode 100644
index 00000000..cd155a92
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-moco.json
@@ -0,0 +1,274 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-d7e12432-7aec-4002-a95f-f95ec1a6427f",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "listCount" : 28,
+ "results" : [ {
+ "name" : "vsp-cli-v1",
+ "description" : "aaaa",
+ "vendorName" : "itohan-vendor",
+ "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "0afed170432e471e9dafb662f78a8277",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test2",
+ "description" : "aasdfasda",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "4065fc6500f74926b0f9e052a071da6f",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test-vsp",
+ "description" : "cccc",
+ "vendorName" : "itohan-vendor",
+ "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "2d126593c4c84741a441aa0ae5bbb6be",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "cli-test-3",
+ "description" : "cli test 3",
+ "vendorName" : "itohan-vendor",
+ "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "b45a4ac88b274c179744e4a2d2d93767",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "cli-vsp-abs",
+ "description" : "test cli",
+ "vendorName" : "itohan-vendor",
+ "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "54c4c2f26b974f169b362cc20ca434ff",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test-cli",
+ "description" : "description",
+ "vendorName" : "itohan-vendor",
+ "vendorId" : "126f7efb8d294aceac7fb0e2735ff2a4",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "ab365698f8f948cbb358ca4fd72923c3",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "new-cli-vsp",
+ "description" : "cli-test-vsp",
+ "vendorName" : "Itohan-vendor",
+ "vendorId" : "74b43ab85f3d49948c1513a27adfaba7",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "8d5974a45c014ed6ad1b8bcace4a3609",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test3",
+ "description" : "test dummy package",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "984cdff3ec9e48539d36371c4d9367db",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test4",
+ "description" : "test4",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "0063e08cd03a4012b381b376e537ebb1",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test6",
+ "description" : "test6",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "18460421f5ee4eda893dd661c41ff5bd",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "test5",
+ "description" : "test5",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "5db09293ff384c738ad5754350630973",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "vlbhpa_sriov",
+ "description" : "vlbhpa sriov",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "9b3ae4aa686c4aa2be524ce6f6c95842",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "vlbhpa_1",
+ "description" : "vlbhpa test1",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "62e221a2489d480fa291aeaa2bea9c52",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "vfwhpa_sriov",
+ "description" : "vfwhpa sriov",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "d10cac28981c4396b7b3636b0a69786f",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "06357cff-760a-4c48-aa35",
+ "description" : "vendor software product",
+ "vendorName" : "3ec04b77-2696-4b6e-92da",
+ "vendorId" : "9ed3aebe891246dc80d5f184bcc029c5",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "978a677077cd4632b6b85820a30a0e91",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "vfwhpa_test1_v2",
+ "description" : "vfwhpa test1",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "ab143b9d132c45e980c6237cb79b6a2c",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "vfwhpa_test1",
+ "description" : "vfwhpa test1",
+ "vendorName" : "onap_hpa",
+ "vendorId" : "67fd025b398e45c3b11e2e7c55e79c34",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "38a21a8bb73e4107b3b727f08153bce7",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "c60aed4e-dce4-44fd-a89c",
+ "description" : "vendor software product",
+ "vendorName" : "6d5a6c71-3222-4cf4-a4f2",
+ "vendorId" : "c883fc163b834996908f9547ba6fd6ce",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "729a07cd8a3c4142836555a315305a22",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "ef858a2c-2397-481f-b82a",
+ "description" : "vendor software product",
+ "vendorName" : "6519e766-b68f-4861-b0b5",
+ "vendorId" : "ffccf84ea0ab44558912697ed0e90ea3",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "37959c2841e244fc805a14fc57220a0c",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "ad55252e-b8bf-44c7-84f7",
+ "description" : "vendor software product",
+ "vendorName" : "ad7af32c-e5f6-4c7b-8e20",
+ "vendorId" : "e8c711a8b0b948a0835ccc7f4e35d6a6",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "3f9aa74f65574a299cbd6f81448846ac",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "38a68c2a-aa6a-4088-bb2b",
+ "description" : "vendor software product",
+ "vendorName" : "14bb164a-194d-43c7-8316",
+ "vendorId" : "e6f808c8ee9040d098d652084c5eda57",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "47cb2a42991548a09b377a3aa9703397",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "46f8da66-75c2-4786-87dc",
+ "description" : "vendor software product",
+ "vendorName" : "793af38e-3448-46fc-afa5",
+ "vendorId" : "395c397dd9974bc29a0605f346f9d76b",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "21116b5c438b4949b24fda554d2ff555",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "53cfef18-7743-4b35-bd89",
+ "description" : "vendor software product",
+ "vendorName" : "354c419d-b63b-4ff9-bc03",
+ "vendorId" : "9eee1fe60434468bbe63dc718bcdd2d2",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "b3b170ffa1e54f6880b61817aebdbdca",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "c46e4d8b-6451-4428-a0cf",
+ "description" : "vendor software product",
+ "vendorName" : "5a58e574-e97f-4874-a7bd",
+ "vendorId" : "4d01ca9dd43549a9964664b2270f6a99",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "6ee2299702ec46cd80c83eab3cb182f9",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "68a79a72-03be-4180-b981",
+ "description" : "vendor software product",
+ "vendorName" : "1d97c202-997e-4f71-a740",
+ "vendorId" : "09517ab1da3b4587a766ecdeb70462d5",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "0ef9544b18154e27862f40457c36bfc7",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "0da72c3b-1abf-4bcb-bf12",
+ "description" : "vendor software product",
+ "vendorName" : "6bd17f5a-e397-484c-af52",
+ "vendorId" : "5e5bc4627e414f8fa0cf0d2612c00eaa",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "911ab62d97034a31b5e6219ff32c93a2",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "4e9883c1-d06c-4554-bdf3",
+ "description" : "vendor software product",
+ "vendorName" : "3a07540f-4f15-43fe-ac79",
+ "vendorId" : "c2d912cafb83496ea135b5df26cad759",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "a0440d85e9c24f9486e37e42aef206d1",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ }, {
+ "name" : "8dc447f7-9a65-4b88-8193",
+ "description" : "vendor software product",
+ "vendorName" : "4a719c24-3ce8-431d-aee7",
+ "vendorId" : "af0cee7f0f25496eb6c3bbe867298127",
+ "onboardingMethod" : "NetworkPackage",
+ "id" : "bc9dfa3d21c1455ea42759d3f045ad28",
+ "owner" : "cs0008",
+ "status" : "ACTIVE"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..1942ad14
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-list-schema-dublin-sample.yaml
@@ -0,0 +1,81 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: -u
+version: onap-dublin
+samples:
+ sample1:
+ name: -u
+ input: cs0008 -p demo123456! -m http://10.43.107.110:8081
+ moco: vsp-list-schema-dublin-moco.json
+ output: |
+ +----------------------------------+--------------------------+----------+--------+
+ |ID |name |version |status |
+ +----------------------------------+--------------------------+----------+--------+
+ |0afed170432e471e9dafb662f78a8277 |vsp-cli-v1 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |4065fc6500f74926b0f9e052a071da6f |test2 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |2d126593c4c84741a441aa0ae5bbb6be |test-vsp | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |b45a4ac88b274c179744e4a2d2d93767 |cli-test-3 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |54c4c2f26b974f169b362cc20ca434ff |cli-vsp-abs | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |ab365698f8f948cbb358ca4fd72923c3 |test-cli | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |8d5974a45c014ed6ad1b8bcace4a3609 |new-cli-vsp | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |984cdff3ec9e48539d36371c4d9367db |test3 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |0063e08cd03a4012b381b376e537ebb1 |test4 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |18460421f5ee4eda893dd661c41ff5bd |test6 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |5db09293ff384c738ad5754350630973 |test5 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |9b3ae4aa686c4aa2be524ce6f6c95842 |vlbhpa_sriov | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |62e221a2489d480fa291aeaa2bea9c52 |vlbhpa_1 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |d10cac28981c4396b7b3636b0a69786f |vfwhpa_sriov | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |978a677077cd4632b6b85820a30a0e91 |06357cff-760a-4c48-aa35 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |ab143b9d132c45e980c6237cb79b6a2c |vfwhpa_test1_v2 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |38a21a8bb73e4107b3b727f08153bce7 |vfwhpa_test1 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |729a07cd8a3c4142836555a315305a22 |c60aed4e-dce4-44fd-a89c | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |37959c2841e244fc805a14fc57220a0c |ef858a2c-2397-481f-b82a | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |3f9aa74f65574a299cbd6f81448846ac |ad55252e-b8bf-44c7-84f7 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |47cb2a42991548a09b377a3aa9703397 |38a68c2a-aa6a-4088-bb2b | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |21116b5c438b4949b24fda554d2ff555 |46f8da66-75c2-4786-87dc | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |b3b170ffa1e54f6880b61817aebdbdca |53cfef18-7743-4b35-bd89 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |6ee2299702ec46cd80c83eab3cb182f9 |c46e4d8b-6451-4428-a0cf | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |0ef9544b18154e27862f40457c36bfc7 |68a79a72-03be-4180-b981 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |911ab62d97034a31b5e6219ff32c93a2 |0da72c3b-1abf-4bcb-bf12 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |a0440d85e9c24f9486e37e42aef206d1 |4e9883c1-d06c-4554-bdf3 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
+ |bc9dfa3d21c1455ea42759d3f045ad28 |8dc447f7-9a65-4b88-8193 | |ACTIVE |
+ +----------------------------------+--------------------------+----------+--------+
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json
new file mode 100644
index 00000000..762bdbc2
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-moco.json
@@ -0,0 +1,31 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/actions",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-48bfec31-2210-41cd-b42c-156a947d5b74",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "action" : "Create_Package"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "description" : "aaaa",
+ "vspName" : "vsp-cli-v1",
+ "version" : "1.0",
+ "packageId" : "0afed170432e471e9dafb662f78a8277",
+ "category" : "resourceNewCategory.generic",
+ "subCategory" : "resourceNewCategory.generic.abstract",
+ "vendorName" : "itohan-vendor",
+ "vendorRelease" : "1.0",
+ "packageType" : "CSAR"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml
new file mode 100644
index 00000000..477ef99c
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-package-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: -x
+version: onap-dublin
+samples:
+ sample1:
+ name: -x
+ input: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ moco: vsp-package-schema-dublin-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json
new file mode 100644
index 00000000..b9888f3c
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-moco.json
@@ -0,0 +1,21 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/actions",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-625cc732-d215-4a80-9887-7fbe217954c2",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "action" : "Submit"
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : { }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-sample.yaml
new file mode 100644
index 00000000..62bb71bb
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-submit-schema-dublin-sample.yaml
@@ -0,0 +1,22 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: -x
+version: onap-dublin
+samples:
+ sample1:
+ name: -x
+ input: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ moco: vsp-submit-schema-dublin-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json
new file mode 100644
index 00000000..fabb98b3
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-moco.json
@@ -0,0 +1,49 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/onboarding-api/v1.0/vendor-software-products/0afed170432e471e9dafb662f78a8277/versions/a6a78a511fd74524889f8095e12b9aac/orchestration-template-candidate/process",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-db25d79f-0a66-4a9b-b8af-0d3e2f5c6376",
+ "Content-Type" : "application/json"
+ },
+ "json" : { }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "fileNames" : [ "base_vfw.yaml", "base_vfw.env" ],
+ "errors" : {
+ "base_vfw.yaml" : [ {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNP1]: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vfw_private_2_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNP1]: 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: [NNP1]: Port 'Fixed_IPS' Parameter Name not aligned with Guidelines, Parameter Name [onap_private_subnet_id], Resource ID [vsn_private_1_port]. As a result, VF/VFC Profile may miss this information"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vfw_0]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNS12]: A resource is connected twice to the same network role, Network Role [vpg_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vpg_0]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNS12]: A resource is connected twice to the same network role, Network Role [vsn_0], Resource ID [onap_private]"
+ }, {
+ "level" : "WARNING",
+ "message" : "WARNING: [NNS11]: Nova Server naming convention in image, flavor and name properties is not consistent, Resource ID [vsn_0]"
+ } ]
+ },
+ "status" : "Success"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml
new file mode 100644
index 00000000..b0509321
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-sample/vsp/vsp-validate-schema-dublin-sample.yaml
@@ -0,0 +1,61 @@
+# Copyright © Intel Corporation 2019
+#
+# 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: -x
+version: onap-dublin
+samples:
+ sample1:
+ name: -x
+ input: 0afed170432e471e9dafb662f78a8277 -y a6a78a511fd74524889f8095e12b9aac -u cs0008 -p demo123456! -m http://10.43.107.110:8081
+ moco: vsp-validate-schema-dublin-moco.json
+ output: |
+ +----------+----------------------------------------------------+
+ |property |value |
+ +----------+----------------------------------------------------+
+ |status |Success |
+ +----------+----------------------------------------------------+
+ |errors |{base_vfw.yaml=[{"level":"WARNING","message":"WARN |
+ | |ING: [NNP1]: Port 'Fixed_IPS' Parameter Name not |
+ | |aligned with Guidelines, Parameter Name |
+ | |[onap_private_subnet_id], Resource ID |
+ | |[vfw_private_2_port]. As a result, VF\/VFC |
+ | |Profile may miss this information"},{"level":"WARN |
+ | |ING","message":"WARNING: [NNP1]: 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":"WARN |
+ | |ING","message":"WARNING: [NNP1]: Port 'Fixed_IPS' |
+ | |Parameter Name not aligned with Guidelines, |
+ | |Parameter Name [onap_private_subnet_id], Resource |
+ | |ID [vsn_private_1_port]. As a result, VF\/VFC |
+ | |Profile may miss this information"},{"level":"WARN |
+ | |ING","message":"WARNING: [NNS11]: Nova Server |
+ | |naming convention in image, flavor and name |
+ | |properties is not consistent, Resource ID |
+ | |[vfw_0]"},{"level":"WARNING","message":"WARNING: |
+ | |[NNS12]: A resource is connected twice to the |
+ | |same network role, Network Role [vpg_0], Resource |
+ | |ID [onap_private]"},{"level":"WARNING","message":" |
+ | |WARNING: [NNS11]: Nova Server naming convention |
+ | |in image, flavor and name properties is not |
+ | |consistent, Resource ID |
+ | |[vpg_0]"},{"level":"WARNING","message":"WARNING: |
+ | |[NNS12]: A resource is connected twice to the |
+ | |same network role, Network Role [vsn_0], Resource |
+ | |ID [onap_private]"},{"level":"WARNING","message":" |
+ | |WARNING: [NNS11]: Nova Server naming convention |
+ | |in image, flavor and name properties is not |
+ | |consistent, Resource ID [vsn_0]"}]} |
+ +----------+----------------------------------------------------+
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml
new file mode 100644
index 00000000..42c92f37
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml
@@ -0,0 +1,54 @@
+# Copyright © Intel Corporation 2019
+#
+# 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-add-artifact
+description: Upload the CSAR/ZIP file to VSP
+
+info:
+ product: onap-dublin
+ 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
+ - name: vsp-file
+ description: CSAR File path
+ type: binary
+ short_option: z
+ long_option: vsp-file
+ is_optional: false
+http:
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate
+ method: POST
+ body: '${vsp-file}'
+ multipart_entity_name: 'upload'
+ headers:
+ Content-type: 'multipart/form-data'
+ Accept: '*/*'
+ USER_ID: "${host-username}"
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
index 84c67820..19c92393 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
@@ -34,20 +34,6 @@ parameters:
short_option: y
long_option: vsp-description
is_optional: true
- - name: vsp-category
- description: Category of the VSP
- type: string
- long_option: vsp-category
- short_option: z
- is_optional: true
- default_value: resourceNewCategory.generic
- - name: vsp-subcategory
- description: Sub Category of VSP
- type: string
- long_option: vsp-subcategory
- short_option: b
- is_optional: true
- default_value: resourceNewCategory.generic.abstract
- name: vlm-version
description: License version
type: string
@@ -79,6 +65,13 @@ parameters:
long_option: vlm-feature-group-id
short_option: j
is_optional: false
+ - name: onboarding-method
+ description: Method to be used for onboarding (Manual or NetworkPackage)
+ type: string
+ long_option: onboarding-method
+ short_option: o
+ is_optional: false
+
results:
direction: portrait
attributes:
@@ -99,9 +92,20 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-software-products
method: POST
- body: '{"category": "${vsp-category}", "vendorId": "${vlm-id}", "subCategory": "${vsp-subcategory}", "description": "${vsp-description}", "licensingVersion": "${vlm-version}", "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"}, "icon": "icon", "onboardingMethod": "Manual", "vendorName": "${vlm-vendor}", "name": "${vsp-name}"}'
+ body: '{
+ "category": "resourceNewCategory.generic",
+ "vendorId": "${vlm-id}",
+ "subCategory": "resourceNewCategory.generic.abstract",
+ "description": "${vsp-description}",
+ "licensingVersion": "${vlm-version}",
+ "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"},
+ "icon": "icon",
+ "onboardingMethod": "${onboarding-method}",
+ "vendorName": "${vlm-vendor}",
+ "name": "${vsp-name}"
+ }'
success_codes:
- 200
result_map:
- ID: $b{$.vspId}
- version: $b{$.version.id} \ No newline at end of file
+ ID: $b{$.itemId}
+ version: $b{$.version.id}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml
new file mode 100644
index 00000000..6cd48e87
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml
@@ -0,0 +1,51 @@
+# Copyright © Intel Corporation 2019
+#
+# 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-package
+description: Package Vendor Software Product
+
+info:
+ product: onap-dublin
+ 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: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+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}/actions
+ method: PUT
+ body: '{"action": "Create_Package"}'
+ success_codes:
+ - 201
+ - 200
+ sample_response:
+ body: ''
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml
new file mode 100644
index 00000000..6d46f6fa
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml
@@ -0,0 +1,49 @@
+# Copyright © Intel Corporation 2019
+#
+# 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-submit
+description: Submit Vendor Software Product
+
+info:
+ product: onap-dublin
+ 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: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+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}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml
new file mode 100644
index 00000000..41f1fea1
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml
@@ -0,0 +1,65 @@
+# Copyright © Intel Corporation 2019
+#
+# 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-validate
+description: Validate the uploaded Vendor Software Product
+
+info:
+ product: onap-dublin
+ 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: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: status
+ description: Validation status
+ scope: short
+ type: string
+ - name: errors
+ description: Validation messages
+ scope: short
+ type: json
+
+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}/orchestration-template-candidate/process
+ method: PUT
+ body: '{}'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ status: $b{$.status}
+ errors: $b{$.errors}