aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/aai
diff options
context:
space:
mode:
authorKanagaraj Manickam <mkr1481@gmail.com>2019-08-29 17:00:51 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-08-29 17:00:51 +0530
commit6a4c4e4e9d1db448081deed1466c21262378d98d (patch)
tree339b529ea0b2ddb60c9148b207b4810b3c42bfc7 /products/onap-dublin/features/aai
parentb517a8e211ef4db0c14842f239b10141c084bda5 (diff)
esr samples
Change-Id: I124df0f827b05003e9507119478bb4408fa85d37 Issue-ID: CLI-166 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-dublin/features/aai')
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-moco.json42
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-moco.json18
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-sample.yaml10
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-moco.json25
-rw-r--r--products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-sample.yaml10
6 files changed, 115 insertions, 0 deletions
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-moco.json
new file mode 100644
index 00000000..b104112a
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-moco.json
@@ -0,0 +1,42 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v13/external-system/esr-vnfm-list/esr-vnfm/1e915311-1474-4ffb-8408-1183ddfcd1a8",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-97afb15a-fc8a-489d-8d1f-5506b7189bee",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "vnfm-id" : "1e915311-1474-4ffb-8408-1183ddfcd1a8",
+ "vim-id" : "OCOMP",
+ "certificate-url" : "",
+ "esr-system-info-list" : {
+ "esr-system-info" : [ {
+ "esr-system-info-id" : "1e915311-1474-4ffb-8408-1183ddfcd1a8",
+ "system-name" : "OCOMP hwvnfmdriver",
+ "type" : "hwvnfmdriver",
+ "vendor" : "ocompvtpvendor",
+ "version" : "v1.0",
+ "service-url" : "http://159.138.8.8:30280",
+ "user-name" : "admin",
+ "password" : "password",
+ "system-type" : "vnfm",
+ "protocal" : "",
+ "ssl-cacert" : "",
+ "ssl-insecure" : "",
+ "ip-address" : "",
+ "port" : "",
+ "cloud-domain" : "",
+ "default-tenant" : ""
+ } ]
+ }
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-sample.yaml
new file mode 100644
index 00000000..ec5bfc78
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-create-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: vnfm-create
+version: onap-dublin
+samples:
+ sample1:
+ name: vnfm-create
+ input: --format json --vendor ocompvtpvendor --username admin --vim-id OCOMP --name OCOMP hwvnfmdriver --url http://159.138.8.8:30280 --vnfm-id 1e915311-1474-4ffb-8408-1183ddfcd1a8 --password password --type hwvnfmdriver --vnfm-version v1.0
+ moco: vnfm-create-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-moco.json
new file mode 100644
index 00000000..ff7ddeab
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v13/external-system/esr-vnfm-list/esr-vnfm/1e915311-1474-4ffb-8408-1183ddfcd1a8",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-a2be1777-ed4d-4cf7-8c66-d45df6baf742",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-sample.yaml
new file mode 100644
index 00000000..23cefd78
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-delete-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: vnfm-delete
+version: onap-dublin
+samples:
+ sample1:
+ name: vnfm-delete
+ input: --format json --vnfm-id 1e915311-1474-4ffb-8408-1183ddfcd1a8 --resource-version 1567068700278
+ moco: vnfm-delete-schema-dublin-moco.json
+ output: |
+ [{}]
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-moco.json b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-moco.json
new file mode 100644
index 00000000..881324f9
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-moco.json
@@ -0,0 +1,25 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v13/external-system/esr-vnfm-list",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "ONAP CLI",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-f0d850a0-2028-404b-b7b3-6e4b306d77d9",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "esr-vnfm" : [ {
+ "vnfm-id" : "1e915311-1474-4ffb-8408-1183ddfcd1a8",
+ "vim-id" : "OCOMP",
+ "certificate-url" : "",
+ "resource-version" : "1567068700278"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-sample.yaml b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-sample.yaml
new file mode 100644
index 00000000..a17cf21d
--- /dev/null
+++ b/products/onap-dublin/features/aai/src/main/resources/open-cli-sample/esr/vnfm/vnfm-list-schema-dublin-sample.yaml
@@ -0,0 +1,10 @@
+open_cli_sample_version: 1.0
+name: vnfm-list
+version: onap-dublin
+samples:
+ sample1:
+ name: vnfm-list
+ input: --format json
+ moco: vnfm-list-schema-dublin-moco.json
+ output: |
+ [{"certificate-url":"","resource-version":"1567068700278","vim-id":"OCOMP","vnfm-id":"1e915311-1474-4ffb-8408-1183ddfcd1a8"}]