aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm')
-rw-r--r--products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-moco.json20
-rw-r--r--products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-create-schema-sample.yaml14
-rw-r--r--products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-moco.json25
-rw-r--r--products/onap-dublin/features/vfc/src/main/resources/open-cli-sample/nslcm/vfc-nslcm-get-schema-sample.yaml14
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 |
+ +--------------------------------------+----------+--------------+--------------------------------------+