diff options
author | Haibin Huang <haibin.huang@intel.com> | 2019-03-21 11:01:00 +0800 |
---|---|---|
committer | Haibin Huang <haibin.huang@intel.com> | 2019-03-21 11:01:50 +0800 |
commit | 0036212a81245ca1e55014ab3196557734adda00 (patch) | |
tree | 2ed838a6e57bf96e4a77d1f26613cdeb6118f59c /products/onap-dublin/features/vfc/src/main/resources/open-cli-sample | |
parent | dfed2843d00ad6ee5014393745f21282baec9a8b (diff) |
Add vfc nslcm operation in onap dublin
Change-Id: I5f332ce6922cc2cf88c3761333f5d45ef5d60f11
Issue-ID: CLI-149
Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-sample')
4 files changed, 73 insertions, 0 deletions
diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-moco.json b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-moco.json new file mode 100644 index 00000000..05a1b84e --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-moco.json @@ -0,0 +1,20 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/api/nslcm/v1/ns", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : { + "csarId" : "a3394090-c5b4-49b4-974c-00a6eac755ab", + "nsName" : "vcpe1" + } + }, + "response" : { + "status" : 201, + "json" : { + "nsInstanceId" : "25f3159c-ff2d-4ad0-ac66-3270941bfa52" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-sample.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-sample.yaml new file mode 100644 index 00000000..97bd58e9 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: vfc-nslcm-create +version: onap-dublin +samples: + sample1: + name: vfc-nslcm-create + input: -m http://10.12.5.155:30280 -c a3394090-c5b4-49b4-974c-00a6eac755ab -n vcpe1 + moco: vfc-nslcm-create-schema-moco.json + output: | + +--------------------------------------+ + |ns-instance-id | + +--------------------------------------+ + |25f3159c-ff2d-4ad0-ac66-3270941bfa52 | + +--------------------------------------+ diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-moco.json b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-moco.json new file mode 100644 index 00000000..a1f933e1 --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-moco.json @@ -0,0 +1,25 @@ +[ { + "request" : { + "method" : "get", + "uri" : "/api/nslcm/v1/ns/25f3159c-ff2d-4ad0-ac66-3270941bfa52", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : { } + }, + "response" : { + "status" : 200, + "json" : { + "nsInstanceId" : "25f3159c-ff2d-4ad0-ac66-3270941bfa52", + "nsName" : "vcpe1", + "description" : "", + "nsdId" : "ffdddc5d-a44b-45ae-8fc3-e6551cce350f", + "vnfInfo" : [ ], + "pnfInfo" : [ ], + "vlInfo" : [ ], + "vnffgInfo" : [ ], + "nsState" : "empty" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-sample.yaml b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-sample.yaml new file mode 100644 index 00000000..4175ea4d --- /dev/null +++ b/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-sample.yaml @@ -0,0 +1,14 @@ +open_cli_sample_version: 1.0 +name: vfc-nslcm-get +version: onap-dublin +samples: + sample1: + name: vfc-nslcm-get + input: -m http://10.12.5.155:30280 -c 25f3159c-ff2d-4ad0-ac66-3270941bfa52 + moco: vfc-nslcm-get-schema-moco.json + output: | + +--------------------------------------+----------+--------------+--------------------------------------+ + |ns-instance-id |ns-name |description |nsd-id | + +--------------------------------------+----------+--------------+--------------------------------------+ + |25f3159c-ff2d-4ad0-ac66-3270941bfa52 |vcpe1 | |ffdddc5d-a44b-45ae-8fc3-e6551cce350f | + +--------------------------------------+----------+--------------+--------------------------------------+ |