summaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/features/aai
diff options
context:
space:
mode:
authorItohan <itohan.ukponmwan@intel.com>2019-09-30 23:39:44 +0000
committerItohan <itohan.ukponmwan@intel.com>2019-10-01 17:42:35 +0000
commita52f00e9d0af1181d3e9c87508789fb4ced022f5 (patch)
treedfb05a7683f0cecf86783d0623dbcf1b85ade70d /products/onap-elalto/features/aai
parent1d4b83754009114523cae90c759daffa9188eb3e (diff)
Minor bug fixes in CLI
- Added USER_ID header for SDC - Changed multicloud url - Added samples for commands - Fixed Bug in service-create command Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com> Issue-ID: CLI-229 Change-Id: I9ec94d6dd390d2b5bf059c2f8a82c67b65fbeb34
Diffstat (limited to 'products/onap-elalto/features/aai')
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-moco.json22
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-moco.json99
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-sample.yaml14
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-moco.json21
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-moco.json36
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-moco.json41
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-moco.json42
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-moco.json187
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-sample.yaml24
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-moco.json25
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-sample.yaml9
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-moco.json35
-rw-r--r--products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-sample.yaml9
18 files changed, 609 insertions, 0 deletions
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-moco.json
new file mode 100644
index 00000000..bd3ee43e
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-moco.json
@@ -0,0 +1,22 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/business/customers/customer/hpa_cust",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-d90d62b3-f976-44a8-9b51-d18096eba60b",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "global-customer-id" : "hpa_cust",
+ "subscriber-name" : "hpa_cust",
+ "subscriber-type" : "INFRA"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..effbfe2b
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/customer/customer-create-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: customer-create
+version: onap-elalto
+samples:
+ sample1:
+ name: customer-create
+ input: -x hpa_cust -y hpa_cust -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: customer-create-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-moco.json
new file mode 100644
index 00000000..dce3740f
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-moco.json
@@ -0,0 +1,99 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v16/business/owning-entities",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-56d054e7-c86e-4427-afa3-0f40e06c90c5",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "owning-entity" : [ {
+ "owning-entity-id" : "98d5c337-ccd0-49d7-87b6-14b9a33d4c8a",
+ "owning-entity-name" : "OE-Demonstration",
+ "resource-version" : "1569883244791",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "service-instance",
+ "relationship-label" : "org.onap.relationships.inventory.BelongsTo",
+ "related-link" : "/aai/v16/business/customers/customer/Demonstration/service-subscriptions/service-subscription/vFW/service-instances/service-instance/df5fb9f7-4286-4a27-a395-21230bcde88f",
+ "relationship-data" : [ {
+ "relationship-key" : "customer.global-customer-id",
+ "relationship-value" : "Demonstration"
+ }, {
+ "relationship-key" : "service-subscription.service-type",
+ "relationship-value" : "vFW"
+ }, {
+ "relationship-key" : "service-instance.service-instance-id",
+ "relationship-value" : "df5fb9f7-4286-4a27-a395-21230bcde88f"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "service-instance.service-instance-name",
+ "property-value" : "vfwk8s_service"
+ } ]
+ }, {
+ "related-to" : "service-instance",
+ "relationship-label" : "org.onap.relationships.inventory.BelongsTo",
+ "related-link" : "/aai/v16/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/vFW/service-instances/service-instance/c094df15-a513-4f4f-8e6b-f2850788490f",
+ "relationship-data" : [ {
+ "relationship-key" : "customer.global-customer-id",
+ "relationship-value" : "hpa_cust"
+ }, {
+ "relationship-key" : "service-subscription.service-type",
+ "relationship-value" : "vFW"
+ }, {
+ "relationship-key" : "service-instance.service-instance-id",
+ "relationship-value" : "c094df15-a513-4f4f-8e6b-f2850788490f"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "service-instance.service-instance-name",
+ "property-value" : "test"
+ } ]
+ }, {
+ "related-to" : "service-instance",
+ "relationship-label" : "org.onap.relationships.inventory.BelongsTo",
+ "related-link" : "/aai/v16/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/vFW/service-instances/service-instance/24ed4142-2ef3-40b0-9ffb-d1a86a635019",
+ "relationship-data" : [ {
+ "relationship-key" : "customer.global-customer-id",
+ "relationship-value" : "hpa_cust"
+ }, {
+ "relationship-key" : "service-subscription.service-type",
+ "relationship-value" : "vFW"
+ }, {
+ "relationship-key" : "service-instance.service-instance-id",
+ "relationship-value" : "24ed4142-2ef3-40b0-9ffb-d1a86a635019"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "service-instance.service-instance-name",
+ "property-value" : "test-2"
+ } ]
+ }, {
+ "related-to" : "service-instance",
+ "relationship-label" : "org.onap.relationships.inventory.BelongsTo",
+ "related-link" : "/aai/v16/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/vFW/service-instances/service-instance/43f872fa-20b7-4fd8-9076-61fb4b844cf4",
+ "relationship-data" : [ {
+ "relationship-key" : "customer.global-customer-id",
+ "relationship-value" : "hpa_cust"
+ }, {
+ "relationship-key" : "service-subscription.service-type",
+ "relationship-value" : "vFW"
+ }, {
+ "relationship-key" : "service-instance.service-instance-id",
+ "relationship-value" : "43f872fa-20b7-4fd8-9076-61fb4b844cf4"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "service-instance.service-instance-name",
+ "property-value" : "test-3"
+ } ]
+ } ]
+ }
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-sample.yaml
new file mode 100644
index 00000000..1f6faed8
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/owning-entity/owning-entity-list-schema-elalto-sample.yaml
@@ -0,0 +1,14 @@
+open_cli_sample_version: 1.0
+name: owning-entity-list
+version: onap-elalto
+samples:
+ sample1:
+ name: owning-entity-list
+ input: -u AAI -p AAI -m https://10.12.5.110:30233
+ moco: owning-entity-list-schema-elalto-moco.json
+ output: |
+ +------------------+--------------------------------------+------------------+
+ |name |Id |resource-version |
+ +------------------+--------------------------------------+------------------+
+ |OE-Demonstration |98d5c337-ccd0-49d7-87b6-14b9a33d4c8a |1569883244791 |
+ +------------------+--------------------------------------+------------------+
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-moco.json
new file mode 100644
index 00000000..31a4e080
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-moco.json
@@ -0,0 +1,21 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v13/service-design-and-creation/services/service/da43d94a-cd5f-4709-8c1b-593d7a3939c2",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-a49f56ef-61c6-4768-ae63-64742594a0bd",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "service-description" : "vFW",
+ "service-id" : "da43d94a-cd5f-4709-8c1b-593d7a3939c2"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..0d20c762
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/service-type/service-type-create-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: service-type-create
+version: onap-elalto
+samples:
+ sample1:
+ name: service-type-create
+ input: -x vFW -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: service-type-create-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-moco.json
new file mode 100644
index 00000000..d6fc283f
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-moco.json
@@ -0,0 +1,36 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/vFW/relationship-list/relationship",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-303c73eb-e36b-4287-b6eb-563cb0dc7837",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "related-to" : "tenant",
+ "relationship-label" : "org.onap.relationships.inventory.Uses",
+ "related-link" : "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-05/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-05"
+ }, {
+ "relationship-key" : "tenant.tenant-id",
+ "relationship-value" : "709ba629fe194f8699b12f9d6ffd86a0"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "tenant.tenant-name",
+ "property-value" : "Integration-HPA"
+ } ]
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-sample.yaml
new file mode 100644
index 00000000..8d15c453
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-cloud-add-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: subscription-cloud-add
+version: onap-elalto
+samples:
+ sample1:
+ name: subscription-cloud-add
+ input: -x hpa_cust -c 709ba629fe194f8699b12f9d6ffd86a0 -z CloudOwner -e vFW -y Integration-HPA -r ONAP-POD-01-Rail-05 -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: subscription-cloud-add-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-moco.json
new file mode 100644
index 00000000..74ebb0e8
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-moco.json
@@ -0,0 +1,41 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/business/customers/customer/hpa_cust/service-subscriptions/service-subscription/vFW",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-4dcf0fb2-4cb7-4045-8b3e-3234c799668b",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "service-type" : "vFW",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "tenant",
+ "relationship-label" : "org.onap.relationships.inventory.Uses",
+ "related-link" : "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-07/tenants/tenant/709ba629fe194f8699b12f9d6ffd86a0",
+ "relationship-data" : [ {
+ "relationship-key" : "cloud-region.cloud-owner",
+ "relationship-value" : "CloudOwner"
+ }, {
+ "relationship-key" : "cloud-region.cloud-region-id",
+ "relationship-value" : "ONAP-POD-01-Rail-07"
+ }, {
+ "relationship-key" : "tenant.tenant-id",
+ "relationship-value" : "709ba629fe194f8699b12f9d6ffd86a0"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "tenant.tenant-name",
+ "property-value" : "Integration-HPA"
+ } ]
+ } ]
+ }
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..da4a777e
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/business/subscription/subscription-create-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: subscription-create
+version: onap-elalto
+samples:
+ sample1:
+ name: subscription-create
+ input: -x hpa_cust -c 709ba629fe194f8699b12f9d6ffd86a0 -z CloudOwner -e vFW -y Integration-HPA -r ONAP-POD-01-Rail-07 -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: subscription-create-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-moco.json
new file mode 100644
index 00000000..96bab575
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-moco.json
@@ -0,0 +1,42 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-04",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-ff73dac4-ba43-427b-8442-01b998817f0a",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "ONAP-POD-01-Rail-04",
+ "cloud-type" : "openstack",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "titanium_cloud",
+ "complex-name" : "clli1",
+ "cloud-zone" : "CloudZone",
+ "sriov-automation" : "false",
+ "identity-url" : "WillBeUpdatedByMultiCloud",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-04\"}",
+ "esr-system-info-list" : {
+ "esr-system-info" : [ {
+ "esr-system-info-id" : "8c85ce1f-aa78-45bf-8d6f-4b62784e9bc7",
+ "service-url" : "http://10.12.11.1:5000/v3",
+ "user-name" : "itohan_ukponmwan",
+ "password" : "ONAP-pod-01_2d:ff",
+ "system-type" : "VIM",
+ "ssl-insecure" : "true",
+ "cloud-domain" : "Default",
+ "default-tenant" : "Integration-HPA",
+ "system-status" : "active"
+ } ]
+ }
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..6529bc58
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-create-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: cloud-create
+version: onap-elalto
+samples:
+ sample1:
+ name: cloud-create
+ input: -e 8c85ce1f-aa78-45bf-8d6f-4b62784e9bc7 -b itohan_ukponmwan -x CloudOwner -y ONAP-POD-01-Rail-04 -j ONAP-pod-01_2d:ff -w titanium_cloud -l Integration-HPA -url http://10.12.11.1:5000/v3 -n clli1 -q openstack -r t1 -Q VIM -i WillBeUpdatedByMultiCloud -g CloudZone -z True -k active -c Default -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: cloud-create-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-moco.json
new file mode 100644
index 00000000..14668c6a
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-moco.json
@@ -0,0 +1,187 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v16/cloud-infrastructure/cloud-regions",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-82e1515e-60e9-484b-beab-5120d926c3b5",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "cloud-region" : [ {
+ "cloud-owner" : "k8scloudowner1",
+ "cloud-region-id" : "k8sregionone",
+ "cloud-type" : "k8s",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "1.0",
+ "cloud-zone" : "CloudZone",
+ "complex-name" : "clli1",
+ "sriov-automation" : "false",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"k8sregionone\"}",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569534556132",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "complex",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ } ]
+ }
+ }, {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "ONAP-POD-01-Rail-06",
+ "cloud-type" : "openstack",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "titanium_cloud",
+ "identity-url" : "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-06/identity/v2.0",
+ "cloud-zone" : "CloudZone",
+ "complex-name" : "clli1",
+ "sriov-automation" : "false",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-06\"}",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569537456041",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "pserver",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner_ONAP-POD-01-Rail-06_controller-0",
+ "relationship-data" : [ {
+ "relationship-key" : "pserver.hostname",
+ "relationship-value" : "CloudOwner_ONAP-POD-01-Rail-06_controller-0"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "pserver.pserver-name2"
+ } ]
+ }, {
+ "related-to" : "complex",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ } ]
+ }
+ }, {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "ONAP-POD-01-Rail-04",
+ "cloud-type" : "openstack",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "titanium_cloud",
+ "identity-url" : "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-04/identity/v2.0",
+ "cloud-zone" : "CloudZone",
+ "complex-name" : "clli1",
+ "sriov-automation" : "false",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-04\"}",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569537472345",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "pserver",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner_ONAP-POD-01-Rail-04_controller-0",
+ "relationship-data" : [ {
+ "relationship-key" : "pserver.hostname",
+ "relationship-value" : "CloudOwner_ONAP-POD-01-Rail-04_controller-0"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "pserver.pserver-name2"
+ } ]
+ }, {
+ "related-to" : "complex",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ } ]
+ }
+ }, {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "ONAP-POD-01-Rail-07",
+ "cloud-type" : "openstack",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "titanium_cloud",
+ "identity-url" : "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-07/identity/v2.0",
+ "cloud-zone" : "CloudZone",
+ "complex-name" : "clli1",
+ "sriov-automation" : "false",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-07\"}",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569537445468",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "pserver",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/pservers/pserver/CloudOwner_ONAP-POD-01-Rail-07_controller-0",
+ "relationship-data" : [ {
+ "relationship-key" : "pserver.hostname",
+ "relationship-value" : "CloudOwner_ONAP-POD-01-Rail-07_controller-0"
+ } ],
+ "related-to-property" : [ {
+ "property-key" : "pserver.pserver-name2"
+ } ]
+ }, {
+ "related-to" : "complex",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ } ]
+ }
+ }, {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "ONAP-POD-01-Rail-05",
+ "cloud-type" : "openstack",
+ "owner-defined-type" : "t1",
+ "cloud-region-version" : "titanium_cloud",
+ "identity-url" : "http://msb-iag.onap:80/api/multicloud-titaniumcloud/v1/CloudOwner/ONAP-POD-01-Rail-05/identity/v2.0",
+ "cloud-zone" : "CloudZone",
+ "complex-name" : "clli1",
+ "sriov-automation" : "false",
+ "cloud-extra-info" : "{\"openstack-region-id\":\"ONAP-POD-01-Rail-05\"}",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569537463136",
+ "relationship-list" : {
+ "relationship" : [ {
+ "related-to" : "complex",
+ "relationship-label" : "org.onap.relationships.inventory.LocatedIn",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ } ]
+ }
+ }, {
+ "cloud-owner" : "CloudOwner",
+ "cloud-region-id" : "RegionOne",
+ "cloud-type" : "SharedNode",
+ "owner-defined-type" : "OwnerType",
+ "cloud-region-version" : "v1",
+ "cloud-zone" : "CloudZone",
+ "orchestration-disabled" : false,
+ "in-maint" : false,
+ "resource-version" : "1569538337999"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-sample.yaml
new file mode 100644
index 00000000..44ac9a74
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/cloud/cloud-list-schema-elalto-sample.yaml
@@ -0,0 +1,24 @@
+open_cli_sample_version: 1.0
+name: cloud-list
+version: onap-elalto
+samples:
+ sample1:
+ name: cloud-list
+ input: -u AAI -p AAI -m https://10.12.5.110:30233 --debug
+ moco: cloud-list-schema-elalto-moco.json
+ output: |
+ +----------------+----------------------+------------------+
+ |cloud |region |resource-version |
+ +----------------+----------------------+------------------+
+ |k8scloudowner1 |k8sregionone |1569534556132 |
+ +----------------+----------------------+------------------+
+ |CloudOwner |ONAP-POD-01-Rail-06 |1569537456041 |
+ +----------------+----------------------+------------------+
+ |CloudOwner |ONAP-POD-01-Rail-04 |1569537472345 |
+ +----------------+----------------------+------------------+
+ |CloudOwner |ONAP-POD-01-Rail-07 |1569537445468 |
+ +----------------+----------------------+------------------+
+ |CloudOwner |ONAP-POD-01-Rail-05 |1569537463136 |
+ +----------------+----------------------+------------------+
+ |CloudOwner |RegionOne |1569538337999 |
+ +----------------+----------------------+------------------+
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-moco.json
new file mode 100644
index 00000000..c125b1d4
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-moco.json
@@ -0,0 +1,25 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/ONAP-POD-01-Rail-04/relationship-list/relationship",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-7286b4b1-5a57-4934-9776-d436d9f6f5aa",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "related-to" : "complex",
+ "related-link" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "relationship-data" : [ {
+ "relationship-key" : "complex.physical-location-id",
+ "relationship-value" : "clli1"
+ } ]
+ }
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-sample.yaml
new file mode 100644
index 00000000..614540ed
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-associate-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: complex-associate
+version: onap-elalto
+samples:
+ sample1:
+ name: complex-associate
+ input: -x clli1 -y ONAP-POD-01-Rail-04 -z CloudOwner -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: complex-associate-schema-elalto-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-moco.json b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-moco.json
new file mode 100644
index 00000000..eb884e77
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v16/cloud-infrastructure/complexes/complex/clli1",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-21cb3e86-0e0b-4d31-b027-aa43935109e6",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "physical-location-id" : "clli1",
+ "data-center-code" : "code1",
+ "complex-name" : "clli1",
+ "identity-url" : "example-identity-url-val-56898",
+ "physical-location-type" : "phy_type",
+ "street1" : "street1",
+ "street2" : "street2",
+ "city" : "hillsboro",
+ "state" : "oregon",
+ "postal-code" : "00000",
+ "country" : "USA",
+ "region" : "northwest",
+ "latitude" : "32.89948",
+ "longitude" : "97.045443",
+ "elevation" : "example-elevation-val-28399",
+ "lata" : "example-lata-val-28399"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-sample.yaml b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-sample.yaml
new file mode 100644
index 00000000..c7dd428a
--- /dev/null
+++ b/products/onap-elalto/features/aai/src/main/resources/open-cli-sample/infra/complex/complex-create-schema-elalto-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: complex-create
+version: onap-elalto
+samples:
+ sample1:
+ name: complex-create
+ input: -j street2 -r phy_type -x clli1 -y code1 -lt 32.89948 -l northwest -i street1 -lo 97.045443 -S oregon -la example-lata-val-28399 -g hillsboro -w 00000 -z clli1 -k USA -o example-elevation-val-28399 -q example-identity-url-val-56898 -m https://10.12.5.110:30233 -u AAI -p AAI
+ moco: complex-create-schema-elalto-moco.json
+ output: \ No newline at end of file