From c749eb98844c57c9e289501ca858958c82de933e Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 4 Oct 2018 15:16:24 +0530 Subject: Casablanca: AAI vim-list Issue-ID: CLI-122 Change-Id: Iba264dc5e026f916a384f13ac85b87ec5b958f2f Signed-off-by: Kanagaraj Manickam k00365106 --- .../esr/vim/vim-list-schema-casablanca-moco.json | 37 ++++++++++++++++++++++ .../esr/vim/vim-list-schema-casablanca-sample.yaml | 14 ++++++++ 2 files changed, 51 insertions(+) create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json create mode 100644 products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml (limited to 'products/onap-casablanca/features/aai/src/main/resources/open-cli-sample') diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json new file mode 100644 index 00000000..a94cd712 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-moco.json @@ -0,0 +1,37 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/huawei-cloud/bangalore/esr-system-info-list", + "headers" : { + "Authorization" : "Basic QUFJOkFBSQ==", + "X-FromAppId" : "ONAP CLI", + "Accept" : "application/json", + "X-TransactionId" : "req-7794bfc8-0fc6-4760-a1e2-c7f7234df42b", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 200, + "json" : { + "esr-system-info" : [ { + "esr-system-info-id" : "6a47cd3d-a24c-4d71-b47d-bfe729acce7b", + "system-name" : "vim-onap", + "type" : "OpenStack", + "vendor" : "Devstack", + "version" : "ocata", + "service-url" : "http://192.168.16.149/identity", + "user-name" : "onap", + "password" : "onap", + "system-type" : "vim", + "ssl-cacert" : "", + "ssl-insecure" : false, + "ip-address" : "", + "port" : "", + "cloud-domain" : "default", + "default-tenant" : "onap", + "resource-version" : "1538644383786" + } ] + } + } +} ] \ No newline at end of file diff --git a/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml new file mode 100644 index 00000000..e9249578 --- /dev/null +++ b/products/onap-casablanca/features/aai/src/main/resources/open-cli-sample/esr/vim/vim-list-schema-casablanca-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: vim-list +version: onap-casablanca +samples: + sample1: + name: vim-list + input: --cloud-name huawei-cloud --region-name bangalore + moco: vim-list-schema-casablanca-moco.json + output: | + +--------------------------------------+----------+----------+----------------+------------------+ + |vim-id |name |vendor |default-tenant |resource-version | + +--------------------------------------+----------+----------+----------------+------------------+ + |6a47cd3d-a24c-4d71-b47d-bfe729acce7b |vim-onap |Devstack |onap |1538644383786 | + +--------------------------------------+----------+----------+----------------+------------------+ -- cgit 1.2.3-korg