aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/src/main/java/org/onap/cli/main/OnapCli.java6
-rw-r--r--products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-moco.json44
-rw-r--r--products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-sample.yaml40
-rw-r--r--products/onap-casablanca/catalog/src/main/resources/open-cli-schema/catalog-onap-casablanca.yaml67
-rw-r--r--products/onap-casablanca/features/msb/pom.xml41
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json55
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml34
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json15
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml24
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json1335
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml140
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json41
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml40
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml118
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml63
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml73
-rw-r--r--products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml85
-rw-r--r--products/onap-casablanca/features/pom.xml70
-rw-r--r--products/onap-casablanca/features/vnfsdk/pom.xml41
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json15
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml9
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json31
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml16
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json31
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml22
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json29
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml16
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml54
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml41
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml63
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml66
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml47
-rw-r--r--products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml58
-rw-r--r--products/onap-casablanca/pom.xml1
-rw-r--r--products/pom.xml10
35 files changed, 2840 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/cli/main/OnapCli.java b/main/src/main/java/org/onap/cli/main/OnapCli.java
index 30f5ab70..de6d232e 100644
--- a/main/src/main/java/org/onap/cli/main/OnapCli.java
+++ b/main/src/main/java/org/onap/cli/main/OnapCli.java
@@ -268,7 +268,9 @@ public class OnapCli {
cmd = OnapCommandRegistrar.getRegistrar().get(args.get(0));
OnapCliArgsParser.populateParams(cmd.getParameters(), (List<String>) sampleTest.get(OnapCommandConstants.VERIFY_INPUT));
+ this.print("\n***************Test Command: \n" + sampleTest.get(OnapCommandConstants.VERIFY_INPUT).toString());
+ cmd.getParametersMap().get(OnapCommandConstants.DEFAULT_PARAMETER_DEBUG).setValue(Boolean.TRUE);
Optional<OnapCommandParameter> contextOpt = cmd.getParameters().stream()
.filter(e -> e.getName().equals(OnapCommandConstants.VERIFY_CONTEXT_PARAM))
@@ -301,7 +303,11 @@ public class OnapCli {
} else {
resultAtt.getValues().add(OnapCommandConstants.VERIFY_RESULT_FAIL);
}
+ this.print(testResult.getDebugInfo());
+ this.print("\n***************Expected Output: \n" + expectedOutput);
+ this.print("\n***************Actual Output: \n" + actualOutput);
}
+
this.print(testSuiteResult.print());
}
/**
diff --git a/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-moco.json b/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-moco.json
new file mode 100644
index 00000000..8ed762b3
--- /dev/null
+++ b/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-moco.json
@@ -0,0 +1,44 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/api/microservices/v1/services/so/version/v1",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "serviceName": "so",
+ "version": "v1",
+ "url": "/ecomp/mso/infra",
+ "protocol": "REST",
+ "visualRange": "1",
+ "lb_policy": "",
+ "publish_port": "",
+ "namespace": "",
+ "network_plane_type": "",
+ "host": "",
+ "path": "",
+ "enable_ssl": false,
+ "nodes": [
+ {
+ "ip": "10.0.5.1",
+ "port": "8080",
+ "checkType": "",
+ "checkUrl": "",
+ "tls_skip_verify": true,
+ "ha_role": "",
+ "nodeId": "_v1_so_10.0.5.1_8080",
+ "status": "passing"
+ }
+ ],
+ "metadata": [],
+ "labels": [],
+ "status": "1",
+ "is_manual": false
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-sample.yaml b/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-sample.yaml
new file mode 100644
index 00000000..83456e02
--- /dev/null
+++ b/products/onap-casablanca/catalog/src/main/resources/open-cli-sample/catalog-schema-sample.yaml
@@ -0,0 +1,40 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: catalog
+version: onap-casablanca
+samples:
+ sample1:
+ name: catalog
+ input: --catalog-service-name so --catalog-service-version v1 --long
+ moco: catalog-schema-moco.json
+ output: |
+ +------------+----------------+
+ |property |value |
+ +------------+----------------+
+ |name |test |
+ +------------+----------------+
+ |version |v1 |
+ +------------+----------------+
+ |url |/ecomp/mso/infra|
+ +------------+----------------+
+ |status |1 |
+ +------------+----------------+
+ |nodes |10.0.0.1:8080 |
+ +------------+----------------+
+ |enable-ssl |false |
+ +------------+----------------+
+ |path | |
+ +------------+----------------+
diff --git a/products/onap-casablanca/catalog/src/main/resources/open-cli-schema/catalog-onap-casablanca.yaml b/products/onap-casablanca/catalog/src/main/resources/open-cli-schema/catalog-onap-casablanca.yaml
new file mode 100644
index 00000000..26677d6e
--- /dev/null
+++ b/products/onap-casablanca/catalog/src/main/resources/open-cli-schema/catalog-onap-casablanca.yaml
@@ -0,0 +1,67 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+
+name: catalog
+
+description: ONAP catalog command to find the base path for service.
+
+
+info:
+ product: onap-casablanca
+ service: msb
+ type: catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: catalog-service-name
+ type: string
+ description: service name registered in catalog service
+ short_option: l
+ long_option: catalog-service-name
+ is_optional: false
+ - name: catalog-service-version
+ type: string
+ description: service version registered in catalog service
+ short_option: i
+ long_option: catalog-service-versions
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: catalog-service-host-url
+ description: Service connection url
+ scope: short
+ type: string
+ default_value: ${host-url}
+ - name: catalog-service-base-path
+ description: service base path, to append with host-url for connecting the service.
+ scope: short
+ type: string
+ default_value: /
+http:
+ service:
+ mode: direct
+ auth: none
+ request:
+ uri: /api/microservices/v1/services/${catalog-service-name}/version/${catalog-service-version}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ catalog-service-base-path: $b{$.url}
+ catalog-service-host-url: ${host-url}
diff --git a/products/onap-casablanca/features/msb/pom.xml b/products/onap-casablanca/features/msb/pom.xml
new file mode 100644
index 00000000..85aac554
--- /dev/null
+++ b/products/onap-casablanca/features/msb/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2017 Huawei Technologies Co., Ltd.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.cli</groupId>
+ <artifactId>cli-products-onap-casablanca-features</artifactId>
+ <version>2.0.3</version>
+ </parent>
+
+ <artifactId>cli-products-onap-casablanca-features-msb</artifactId>
+ <name>cli/products/onap-casablanca/features/msb</name>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json
new file mode 100644
index 00000000..d2b703d0
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-moco.json
@@ -0,0 +1,55 @@
+[ {
+ "request" : {
+ "method" : "post",
+ "uri" : "/api/microservices/v1/services",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "serviceName" : "test",
+ "version" : "v1",
+ "path" : "/test",
+ "url" : "/test",
+ "protocol" : "REST",
+ "enable_ssl" : "",
+ "visualRange" : "1",
+ "lb_policy" : "ip_hash",
+ "nodes" : [ {
+ "ip" : "10.0.0.1",
+ "port" : "8080",
+ "ttl" : 0
+ } ]
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : {
+ "serviceName" : "test",
+ "version" : "v1",
+ "url" : "/test",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "ip_hash",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/test",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.0.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_test_10.0.0.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml
new file mode 100644
index 00000000..a3e4b4ac
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-create-schema-sample.yaml
@@ -0,0 +1,34 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: microservice-create
+version: onap-casablanca
+samples:
+ sample1:
+ name: microservice-create
+ input: --service-name test --service-version v1 --service-url /test --path /test true 10.0.0.1 8080
+ moco: microservice-create-schema-moco.json
+ output: |
+ +----------+--------+
+ |property |value |
+ +----------+--------+
+ |name |test |
+ +----------+--------+
+ |version |v1 |
+ +----------+--------+
+ |url |/test |
+ +----------+--------+
+ |status |1 |
+ +----------+--------+
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json
new file mode 100644
index 00000000..c2d3022c
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-moco.json
@@ -0,0 +1,15 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/api/microservices/v1/services/test/version/v1/nodes/23.14.15.156/80",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml
new file mode 100644
index 00000000..c2ae5143
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-delete-schema-sample.yaml
@@ -0,0 +1,24 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+
+name: microservice-delete
+version: onap-casablanca
+samples:
+ sample1:
+ name: microservice-delete
+ input: --service-name test --service-version v1 --node-ip 23.14.15.156 --node-port 80
+ moco: microservice-delete-schema-moco.json
+ output:
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json
new file mode 100644
index 00000000..b836183d
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-moco.json
@@ -0,0 +1,1335 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/api/microservices/v1/services",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : [ {
+ "serviceName" : "aai-actions",
+ "version" : "v11",
+ "url" : "/aai/v11/actions",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-actions_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-actions-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/actions",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/actions",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-actions-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-business",
+ "version" : "v11",
+ "url" : "/aai/v11/business",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-business_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-business-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/business",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/business",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-business-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-cloudInfrastructure",
+ "version" : "v11",
+ "url" : "/aai/v11/cloud-infrastructure",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-cloudInfrastructure_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-cloudInfrastructure-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/cloud-infrastructure",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/cloud-infrastructure",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-cloudInfrastructure-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-esr-gui",
+ "version" : "v1",
+ "url" : "/esr-gui",
+ "protocol" : "UI",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/iui/aai-esr-gui",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "9519",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-esr-gui_10.0.14.1_9519",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-esr-server",
+ "version" : "v1",
+ "url" : "/api/aai-esr-server/v1",
+ "protocol" : "REST",
+ "visualRange" : "0|1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.5",
+ "port" : "9518",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-esr-server_172.17.0.5_9518",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "9518",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-esr-server_10.0.14.1_9518",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-externalSystem",
+ "version" : "v11",
+ "url" : "/aai/v11/external-system",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-externalSystem_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-externalSystem-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/external-system",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/external-system",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-externalSystem-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-network",
+ "version" : "v11",
+ "url" : "/aai/v11/network",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-network_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-network-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/network",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/network",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-network-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-search",
+ "version" : "v11",
+ "url" : "/aai/v11/search",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-search_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-search-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/search",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/search",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-search-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-service-design-and-creation",
+ "version" : "v11",
+ "url" : "/aai/v11/service-design-and-creation",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-service-design-and-creation_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "aai-service-design-and-creation-deprecated",
+ "version" : "v11",
+ "url" : "/aai/v11/service-design-and-creation",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/aai/v11/service-design-and-creation",
+ "enable_ssl" : true,
+ "nodes" : [ {
+ "ip" : "10.0.1.1",
+ "port" : "8443",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_aai-service-design-and-creation-deprecated_10.0.1.1_8443",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "activiti",
+ "version" : "v1",
+ "url" : "/api/activiti/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8804",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_activiti_10.0.14.1_8804",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "activiti-rest",
+ "version" : "v1",
+ "url" : "/activiti-rest",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/activiti-rest",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8804",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_activiti-rest_10.0.14.1_8804",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "catalog",
+ "version" : "v1",
+ "url" : "/api/catalog/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.15",
+ "port" : "8806",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_catalog_172.17.0.15_8806",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8806",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_catalog_10.0.14.1_8806",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "emsdriver",
+ "version" : "v1",
+ "url" : "/api/emsdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8206",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_emsdriver_10.0.14.1_8206",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "gvnfmdriver",
+ "version" : "v1",
+ "url" : "/api/gvnfmdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.17",
+ "port" : "8484",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_gvnfmdriver_172.17.0.17_8484",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8484",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_gvnfmdriver_10.0.14.1_8484",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "huaweivnfmdriver",
+ "version" : "v1",
+ "url" : "/api/huaweivnfmdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8482",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_huaweivnfmdriver_10.0.14.1_8482",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "jujuvnfmdriver",
+ "version" : "v1",
+ "url" : "/api/jujuvnfmdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8483",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_jujuvnfmdriver_10.0.14.1_8483",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "multicloud",
+ "version" : "v0",
+ "url" : "/api/multicloud/v0",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "9001",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_multicloud_10.0.14.1_9001",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "multicloud-ocata",
+ "version" : "v0",
+ "url" : "/api/multicloud-ocata/v0",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "9006",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_multicloud-ocata_10.0.14.1_9006",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "multicloud-titanium_cloud",
+ "version" : "v0",
+ "url" : "/api/multicloud-titanium_cloud/v0",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "9005",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_multicloud-titanium_cloud_10.0.14.1_9005",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "multicloud-vio",
+ "version" : "v0",
+ "url" : "/api/multicloud-vio/v0",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "9004",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_multicloud-vio_10.0.14.1_9004",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "nokia-vnfm-driver",
+ "version" : "v1",
+ "url" : "/api/nokiavnfmdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.27",
+ "port" : "8486",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_nokia-vnfm-driver_172.17.0.27_8486",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "nokiavnfmdriver",
+ "version" : "v1",
+ "url" : "/api/nokiavnfmdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8485",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_nokiavnfmdriver_10.0.14.1_8485",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "nslcm",
+ "version" : "v1",
+ "url" : "/api/nslcm/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.20",
+ "port" : "8403",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_nslcm_172.17.0.20_8403",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8403",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_nslcm_10.0.14.1_8403",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "policy-pdp",
+ "version" : "v1",
+ "url" : "/pdp",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.6.1",
+ "port" : "8081",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_policy-pdp_10.0.6.1_8081",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "policy-pdp-deprecated",
+ "version" : "v1",
+ "url" : "/pdp",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/pdp",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.6.1",
+ "port" : "8081",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_policy-pdp-deprecated_10.0.6.1_8081",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "portal",
+ "version" : "v2",
+ "url" : "/",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.9.1",
+ "port" : "8989",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_portal_10.0.9.1_8989",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "resmgr",
+ "version" : "v1",
+ "url" : "/api/resmgr/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8480",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_resmgr_10.0.14.1_8480",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "sdc",
+ "version" : "v1",
+ "url" : "/sdc/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.3.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_sdc_10.0.3.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "sdc-deprecated",
+ "version" : "v1",
+ "url" : "/sdc/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/sdc/v1",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.3.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_sdc-deprecated_10.0.3.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "sdnc",
+ "version" : "v1",
+ "url" : "/restconf",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/restconf",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.7.1",
+ "port" : "8282",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_sdnc_10.0.7.1_8282",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "so",
+ "version" : "v1",
+ "url" : "/ecomp/mso/infra",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.5.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_so_10.0.5.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "so-deprecated",
+ "version" : "v1",
+ "url" : "/ecomp/mso/infra",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/ecomp/mso/infra",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.5.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_so-deprecated_10.0.5.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "usecase-ui",
+ "version" : "v1",
+ "url" : "/usecase-ui",
+ "protocol" : "UI",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.11",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_usecase-ui_172.17.0.11_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "usecaseui",
+ "version" : "v1",
+ "url" : "/api/usecaseui/server/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8901",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_usecaseui_10.0.14.1_8901",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "usecaseui-gui",
+ "version" : "v1",
+ "url" : "/iui/usecaseui",
+ "protocol" : "UI",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/iui/usecaseui",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8900",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_usecaseui-gui_10.0.14.1_8900",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "vnflcm",
+ "version" : "v1",
+ "url" : "/api/vnflcm/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8801",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnflcm_10.0.14.1_8801",
+ "status" : "passing"
+ }, {
+ "ip" : "172.17.0.22",
+ "port" : "8801",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnflcm_172.17.0.22_8801",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "vnfmgr",
+ "version" : "v1",
+ "url" : "/api/vnfmgr/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.23",
+ "port" : "8803",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnfmgr_172.17.0.23_8803",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8803",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnfmgr_10.0.14.1_8803",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "vnfres",
+ "version" : "v1",
+ "url" : "/api/vnfres/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.24",
+ "port" : "8802",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnfres_172.17.0.24_8802",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8802",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_vnfres_10.0.14.1_8802",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "workflow",
+ "version" : "v1",
+ "url" : "/api/workflow/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8805",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_workflow_10.0.14.1_8805",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "ztesdncdriver",
+ "version" : "v1",
+ "url" : "/api/ztesdncdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "172.17.0.25",
+ "port" : "8411",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_ztesdncdriver_172.17.0.25_8411",
+ "status" : "passing"
+ }, {
+ "ip" : "10.0.14.1",
+ "port" : "8411",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_ztesdncdriver_10.0.14.1_8411",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }, {
+ "serviceName" : "ztevmanagerdriver",
+ "version" : "v1",
+ "url" : "/api/ztevmanagerdriver/v1",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.14.1",
+ "port" : "8410",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_ztevmanagerdriver_10.0.14.1_8410",
+ "status" : "passing"
+ }, {
+ "ip" : "172.17.0.26",
+ "port" : "8410",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_ztevmanagerdriver_172.17.0.26_8410",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ } ]
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml
new file mode 100644
index 00000000..8c63387c
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-list-schema-sample.yaml
@@ -0,0 +1,140 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: microservice-list
+version: onap-casablanca
+samples:
+ sample1:
+ name: microservice-list
+ input: --long
+ moco: microservice-list-schema-moco.json
+ output: |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |name |version |url |status |nodes |enable-ssl |path |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-actions |v11 |/aai/v11/actions |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-actions-deprecated |v11 |/aai/v11/actions |1 |10.0.1.1:8443 |true |/aai/v11/actions |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-business |v11 |/aai/v11/business |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-business-deprecated |v11 |/aai/v11/business |1 |10.0.1.1:8443 |true |/aai/v11/business |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-cloudInfrastructure |v11 |/aai/v11/cloud-infrastructure |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-cloudInfrastructure-deprecated |v11 |/aai/v11/cloud-infrastructure |1 |10.0.1.1:8443 |true |/aai/v11/cloud-infrastructure |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-esr-gui |v1 |/esr-gui |1 |10.0.14.1:9519 |false |/iui/aai-esr-gui |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-esr-server |v1 |/api/aai-esr-server/v1 |1 |172.17.0.5:9518 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-externalSystem |v11 |/aai/v11/external-system |1 |10.0.14.1:9518 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-externalSystem-deprecated |v11 |/aai/v11/external-system |1 |10.0.1.1:8443 |true |/aai/v11/external-system |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-network |v11 |/aai/v11/network |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-network-deprecated |v11 |/aai/v11/network |1 |10.0.1.1:8443 |true |/aai/v11/network |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-search |v11 |/aai/v11/search |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-search-deprecated |v11 |/aai/v11/search |1 |10.0.1.1:8443 |true |/aai/v11/search |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-service-design-and-creation |v11 |/aai/v11/service-design-and-creation |1 |10.0.1.1:8443 |true | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |aai-service-design-and-creation-deprecated |v11 |/aai/v11/service-design-and-creation |1 |10.0.1.1:8443 |true |/aai/v11/service-design-and-creation |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |activiti |v1 |/api/activiti/v1 |1 |10.0.1.1:8443 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |activiti-rest |v1 |/activiti-rest |1 |10.0.14.1:8804 |false |/activiti-rest |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |catalog |v1 |/api/catalog/v1 |1 |10.0.14.1:8804 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |emsdriver |v1 |/api/emsdriver/v1 |1 |172.17.0.15:8806 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |gvnfmdriver |v1 |/api/gvnfmdriver/v1 |1 |10.0.14.1:8806 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |huaweivnfmdriver |v1 |/api/huaweivnfmdriver/v1 |1 |10.0.14.1:8206 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |jujuvnfmdriver |v1 |/api/jujuvnfmdriver/v1 |1 |172.17.0.17:8484 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |multicloud |v0 |/api/multicloud/v0 |1 |10.0.14.1:8484 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |multicloud-ocata |v0 |/api/multicloud-ocata/v0 |1 |10.0.14.1:8482 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |multicloud-titanium_cloud |v0 |/api/multicloud-titanium_cloud/v0 |1 |10.0.14.1:8483 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |multicloud-vio |v0 |/api/multicloud-vio/v0 |1 |10.0.14.1:9001 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |nokia-vnfm-driver |v1 |/api/nokiavnfmdriver/v1 |1 |10.0.14.1:9006 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |nokiavnfmdriver |v1 |/api/nokiavnfmdriver/v1 |1 |10.0.14.1:9005 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |nslcm |v1 |/api/nslcm/v1 |1 |10.0.14.1:9004 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |policy-pdp |v1 |/pdp |1 |172.17.0.27:8486 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |policy-pdp-deprecated |v1 |/pdp |1 |10.0.14.1:8485 |false |/pdp |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |portal |v2 |/ |1 |172.17.0.20:8403 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |resmgr |v1 |/api/resmgr/v1 |1 |10.0.14.1:8403 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |sdc |v1 |/sdc/v1 |1 |10.0.6.1:8081 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |sdc-deprecated |v1 |/sdc/v1 |1 |10.0.6.1:8081 |false |/sdc/v1 |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |sdnc |v1 |/restconf |1 |10.0.9.1:8989 |false |/restconf |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |so |v1 |/ecomp/mso/infra |1 |10.0.14.1:8480 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |so-deprecated |v1 |/ecomp/mso/infra |1 |10.0.3.1:8080 |false |/ecomp/mso/infra |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |usecase-ui |v1 |/usecase-ui |1 |10.0.3.1:8080 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |usecaseui |v1 |/api/usecaseui/server/v1 |1 |10.0.7.1:8282 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |usecaseui-gui |v1 |/iui/usecaseui |1 |10.0.5.1:8080 |false |/iui/usecaseui |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |vnflcm |v1 |/api/vnflcm/v1 |1 |10.0.5.1:8080 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |vnfmgr |v1 |/api/vnfmgr/v1 |1 |172.17.0.11:8080 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |vnfres |v1 |/api/vnfres/v1 |1 |10.0.14.1:8901 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |workflow |v1 |/api/workflow/v1 |1 |10.0.14.1:8900 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |ztesdncdriver |v1 |/api/ztesdncdriver/v1 |1 |10.0.14.1:8801 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ |ztevmanagerdriver |v1 |/api/ztevmanagerdriver/v1 |1 |172.17.0.22:8801 |false | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |172.17.0.23:8803 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |10.0.14.1:8803 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |172.17.0.24:8802 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |10.0.14.1:8802 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |10.0.14.1:8805 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |172.17.0.25:8411 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |10.0.14.1:8411 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |10.0.14.1:8410 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
+ | | | | |172.17.0.26:8410 | | |
+ +--------------------------------------------+----------+--------------------------------------+--------+------------------+------------+--------------------------------------+
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json
new file mode 100644
index 00000000..b46de6ec
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-moco.json
@@ -0,0 +1,41 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/api/microservices/v1/services/test/version/v1",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "serviceName" : "test",
+ "version" : "v1",
+ "url" : "/test",
+ "protocol" : "REST",
+ "visualRange" : "1",
+ "lb_policy" : "ip_hash",
+ "publish_port" : "",
+ "namespace" : "",
+ "network_plane_type" : "",
+ "host" : "",
+ "path" : "/test",
+ "enable_ssl" : false,
+ "nodes" : [ {
+ "ip" : "10.0.0.1",
+ "port" : "8080",
+ "checkType" : "",
+ "checkUrl" : "",
+ "ha_role" : "",
+ "nodeId" : "_test_10.0.0.1_8080",
+ "status" : "passing"
+ } ],
+ "metadata" : [ ],
+ "labels" : [ ],
+ "status" : "1",
+ "is_manual" : false
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml
new file mode 100644
index 00000000..22089571
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-sample/microservice-show-schema-sample.yaml
@@ -0,0 +1,40 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_sample_version: 1.0
+name: microservice-show
+version: onap-casablanca
+samples:
+ sample1:
+ name: microservice-show
+ input: --service-name test --service-version v1 --long
+ moco: microservice-show-schema-moco.json
+ output: |
+ +------------+----------------+
+ |property |value |
+ +------------+----------------+
+ |name |test |
+ +------------+----------------+
+ |version |v1 |
+ +------------+----------------+
+ |url |/test |
+ +------------+----------------+
+ |status |1 |
+ +------------+----------------+
+ |nodes |10.0.0.1:8080 |
+ +------------+----------------+
+ |enable-ssl |false |
+ +------------+----------------+
+ |path |/test |
+ +------------+----------------+
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
new file mode 100644
index 00000000..7e0cc8e6
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
@@ -0,0 +1,118 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-create
+description: Register microservice into Onap
+
+info:
+ product: onap-casablanca
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: service-url
+ description: Onap service base url
+ type: url
+ short_option: r
+ long_option: service-url
+ is_optional: false
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ type: string
+ short_option: b
+ long_option: enable-ssl
+ is_optional: true
+ default: false
+ - name: path
+ description: Onap service path
+ type: string
+ short_option: c
+ long_option: path
+ is_optional: true
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ - name: create-or-update
+ description: Onap service create or update
+ type: bool
+ default_value: true
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: string
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: POST
+ body: '{"serviceName":"${service-name}","version":"${service-version}","path":"${path}","url":"${service-url}","protocol":"REST", "enable_ssl":"${enable-ssl}", "visualRange":"1","lb_policy":"ip_hash","nodes":[{"ip":"${node-ip}","port":"${node-port}","ttl":0}]}'
+ headers:
+ queries:
+ createOrUpdate: ${create-or-update}
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
new file mode 100644
index 00000000..5f93450e
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
@@ -0,0 +1,63 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-delete
+description: Deletes the micro service from Onap
+
+info:
+ product: onap-casablanca
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+ - name: node-ip
+ description: Onap service running node IP
+ type: string
+ short_option: i
+ long_option: node-ip
+ is_optional: false
+ - name: node-port
+ description: Onap service running node port
+ type: string
+ short_option: r
+ long_option: node-port
+ is_optional: false
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}/nodes/${node-ip}/${node-port}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200
+ - 204
+ - 500
+
+
+
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
new file mode 100644
index 00000000..bd63ff58
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
@@ -0,0 +1,73 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-list
+description: Lists the registetred micro services in Onap
+
+
+info:
+ product: onap-casablanca
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.[*].serviceName}
+ version: $b{$.[*].version}
+ url: $b{$.[*].url}
+ status: $b{$.[*].status}
+ enable-ssl: $b{$.[*].enable_ssl}
+ path: $b{$.[*].path}
+ nodes: $b{$.[*].nodes[*].ip}:$b{$.[*].nodes[*].port}
diff --git a/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
new file mode 100644
index 00000000..58b7ded6
--- /dev/null
+++ b/products/onap-casablanca/features/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
@@ -0,0 +1,85 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: microservice-show
+description: Details the registered microservice in Onap
+
+info:
+ product: onap-casablanca
+ service: msb
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-name
+ description: Onap service name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: service-version
+ description: Onap service version
+ type: string
+ short_option: y
+ long_option: service-version
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: Onap service name
+ scope: short
+ type: string
+ - name: version
+ description: Onap service version
+ scope: short
+ type: string
+ - name: url
+ description: Onap service base url
+ scope: short
+ type: url
+ - name: status
+ description: Onap service status
+ scope: short
+ type: digit
+ - name: nodes
+ description: Onap service running nodes
+ scope: long
+ type: json
+ - name: enable-ssl
+ description: Onap service is enabled with https or not
+ scope: long
+ type: string
+ - name: path
+ description: Onap service path
+ scope: long
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /api/microservices/v1/services/${service-name}/version/${service-version}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.serviceName}
+ version: $b{$.version}
+ url: $b{$.url}
+ status: $b{$.status}
+ enable-ssl: $b{$.enable_ssl}
+ path: $b{$.path}
+ nodes: $b{$.nodes[*].ip}:$b{$.nodes[*].port}
diff --git a/products/onap-casablanca/features/pom.xml b/products/onap-casablanca/features/pom.xml
new file mode 100644
index 00000000..82b03b4d
--- /dev/null
+++ b/products/onap-casablanca/features/pom.xml
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2017 Huawei Technologies Co., Ltd.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.cli</groupId>
+ <artifactId>cli-products-onap-casablanca</artifactId>
+ <version>2.0.3</version>
+ </parent>
+
+ <artifactId>cli-products-onap-casablanca-features</artifactId>
+ <name>cli/products/onap-casablanca/features</name>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>msb</module>
+ <module>vnfsdk</module>
+ </modules>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-artifact</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>${project.artifactId}</artifactId>
+ <version>${project.version}</version>
+ <type>${project.packaging}</type>
+ </artifactItem>
+ </artifactItems>
+ <!-- copy to products dependencies -->
+ <outputDirectory>../../../../products/target/lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+</project>
diff --git a/products/onap-casablanca/features/vnfsdk/pom.xml b/products/onap-casablanca/features/vnfsdk/pom.xml
new file mode 100644
index 00000000..6c3ca724
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2018 Huawei Technologies Co., Ltd.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.onap.cli</groupId>
+ <artifactId>cli-products-onap-casablanca-features</artifactId>
+ <version>2.0.3</version>
+ </parent>
+
+ <artifactId>cli-products-onap-casablanca-features-vnfsdk</artifactId>
+ <name>cli/products/onap-casablanca/features/vnfsdk</name>
+ <packaging>jar</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+</project>
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json
new file mode 100644
index 00000000..889ceeaa
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-moco.json
@@ -0,0 +1,15 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml
new file mode 100644
index 00000000..f0e325bd
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-delete-schema-sample.yaml
@@ -0,0 +1,9 @@
+open_cli_sample_version: 1.0
+name: csar-delete
+version: onap-casablanca
+samples:
+ sample1:
+ name: csar-delete
+ input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36
+ moco: csar-delete-schema-moco.json
+ output: \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json
new file mode 100644
index 00000000..e0a8e30f
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-moco.json
@@ -0,0 +1,31 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : [ {
+ "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36",
+ "name" : "VoLTE",
+ "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar",
+ "size" : "52.4 KB",
+ "version" : "v1.0",
+ "provider" : "ChinaMobile",
+ "type" : "CSAR",
+ "format" : "yaml",
+ "deletionPending" : false,
+ "createTime" : "2018-09-10 15:11:29",
+ "modifyTime" : "2018-09-10 15:11:29",
+ "shortDesc" : "descr",
+ "downloadCount" : 0,
+ "details" : "details",
+ "remarks" : "remarks"
+ } ]
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml
new file mode 100644
index 00000000..c3a3e208
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-list-schema-sample.yaml
@@ -0,0 +1,16 @@
+open_cli_sample_version: 1.0
+name: csar-list
+version: onap-casablanca
+samples:
+ sample1:
+ name: csar-list
+ input: -m http://localhost:7070/vnf-sdk-marketplace
+ moco: csar-list-schema-moco.json
+ output: |
+ +--------------------------------------+--------+----------+----------------------------------------------------+--------------+
+ |csarId |name |size |downloadUri |provider |
+ +--------------------------------------+--------+----------+----------------------------------------------------+--------------+
+ |a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36 |VoLTE |52.4 KB |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin |ChinaMobile |
+ | | | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE | |
+ | | | |/v1.0/VoLTE.csar | |
+ +--------------------------------------+--------+----------+----------------------------------------------------+--------------+
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json
new file mode 100644
index 00000000..00d02ce0
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-moco.json
@@ -0,0 +1,31 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/csars/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "csarId" : "a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36",
+ "name" : "VoLTE",
+ "downloadUri" : "http://127.0.0.1:8080/files/catalog-http/CSAR/ChinaMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE/v1.0/VoLTE.csar",
+ "size" : "52.4 KB",
+ "version" : "v1.0",
+ "provider" : "ChinaMobile",
+ "type" : "CSAR",
+ "format" : "yaml",
+ "deletionPending" : false,
+ "createTime" : "2018-09-10 15:11:29",
+ "modifyTime" : "2018-09-10 15:11:29",
+ "shortDesc" : "descr",
+ "downloadCount" : 0,
+ "details" : "details",
+ "remarks" : "remarks"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml
new file mode 100644
index 00000000..f12488e1
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/csar-show-schema-sample.yaml
@@ -0,0 +1,22 @@
+open_cli_sample_version: 1.0
+name: csar-show
+version: onap-casablanca
+samples:
+ sample1:
+ name: csar-show
+ input: -m http://localhost:7070/vnf-sdk-marketplace -x a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36
+ moco: csar-show-schema-moco.json
+ output: |
+ +--------------+----------------------------------------------------+
+ |property |value |
+ +--------------+----------------------------------------------------+
+ |name |VoLTE |
+ +--------------+----------------------------------------------------+
+ |size |52.4 KB |
+ +--------------+----------------------------------------------------+
+ |downloadUri |http://127.0.0.1:8080/files/catalog-http/CSAR/Chin |
+ | |aMobile/a9f9ca7a-5dc9-48c7-9672-a63eb17c3e36/VoLTE |
+ | |/v1.0/VoLTE.csar |
+ +--------------+----------------------------------------------------+
+ |provider |ChinaMobile |
+ +--------------+----------------------------------------------------+
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json
new file mode 100644
index 00000000..42a74b12
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-moco.json
@@ -0,0 +1,29 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/vnf-sdk-marketplace/onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests",
+ "headers" : {
+ "Accept" : "application/json",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "results" : [ {
+ "schema" : "vnftest-list.yaml",
+ "ocs-version" : "1.0",
+ "sr.no" : "1",
+ "type" : "http",
+ "command" : "vnftest-list"
+ }, {
+ "schema" : "vtp-validate-csar.yaml",
+ "ocs-version" : "1.0",
+ "sr.no" : "2",
+ "type" : "basic",
+ "command" : "csar-validate"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml
new file mode 100644
index 00000000..dba50c03
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-sample/vnftest-list-sample.yaml
@@ -0,0 +1,16 @@
+open_cli_sample_version: 1.0
+name: vnftest-list
+version: onap-vtp
+samples:
+ sample1:
+ name: vnftest-list
+ input: -m http://localhost:7070/vnf-sdk-marketplace
+ moco: vnftest-list-moco.json
+ output: |
+ +----------------+------------------------+
+ |tescase |yaml |
+ +----------------+------------------------+
+ |vnftest-list |vnftest-list.yaml |
+ +----------------+------------------------+
+ |csar-validate |vtp-validate-csar.yaml |
+ +----------------+------------------------+
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml
new file mode 100644
index 00000000..7a4b1665
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-create-schema.yaml
@@ -0,0 +1,54 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-create
+description: Uploads the CSARs in marketplace
+
+
+info:
+ product: onap-casablanca
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-file
+ description: CSAR File path
+ type: binary
+ short_option: x
+ long_option: csar-file
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR id
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: POST
+ body: ${csar-file}
+ multipart_entity_name: file
+ headers:
+ Content-Type: multipart/form-data
+ success_codes:
+ - 200
+ result_map:
+ csarId: $b{$.csarId} \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml
new file mode 100644
index 00000000..a05b8d1c
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-delete-schema.yaml
@@ -0,0 +1,41 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-delete
+description: Delete CSARs in marketplace
+
+info:
+ product: onap-casablanca
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: DELETE
+ success_codes:
+ - 201
+ - 200 \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml
new file mode 100644
index 00000000..452eb35b
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-list-schema.yaml
@@ -0,0 +1,63 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-list
+description: Lists the CSARs in marketplace
+
+
+info:
+ product: onap-casablanca
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: csarId
+ description: CSAR Id
+ scope: short
+ type: string
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ csarId: $b{$.[*].csarId}
+ name: $b{$.[*].name}
+ size: $b{$.[*].size}
+ downloadUri: $b{$.[*].downloadUri}
+ provider: $b{$.[*].provider} \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml
new file mode 100644
index 00000000..c124f9bd
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/csar-show-schema.yaml
@@ -0,0 +1,66 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: csar-show
+description: Show details of the CSARs in marketplace
+
+
+info:
+ product: onap-casablanca
+ service: marketplace
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: csar-id
+ description: Onap CSAR id
+ type: string
+ short_option: x
+ long_option: csar-id
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: name
+ description: CSAR Name
+ scope: short
+ type: string
+ - name: size
+ description: CSAR size
+ scope: short
+ type: url
+ - name: downloadUri
+ description: CSAR download URL
+ scope: short
+ type: url
+ - name: provider
+ description: CSAR Provider
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/csars/${csar-id}
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ name: $b{$.name}
+ size: $b{$.size}
+ downloadUri: $b{$.downloadUri}
+ provider: $b{$.provider} \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml
new file mode 100644
index 00000000..3911fbe5
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-list.yaml
@@ -0,0 +1,47 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vnftest-list
+description: Lists the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-vtp
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: landscape
+ attributes:
+ - name: tescase
+ description: Testcase name
+ scope: short
+ type: string
+ - name: yaml
+ description: Test case yaml
+ scope: short
+ type: string
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests
+ method: GET
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ tescase: $b{$.results.[*].command}
+ yaml: $b{$.results.[*].schema} \ No newline at end of file
diff --git a/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml
new file mode 100644
index 00000000..1cf4586a
--- /dev/null
+++ b/products/onap-casablanca/features/vnfsdk/src/main/resources/open-cli-schema/vnftest-run.yaml
@@ -0,0 +1,58 @@
+# Copyright 2018 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: vnftest-run
+description: Runs the VNF test cases in VNF Test Platform (VTP)
+
+info:
+ product: onap-vtp
+ service: vtp
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+parameters:
+ - name: name
+ description: VNFtest case name
+ type: string
+ short_option: x
+ long_option: name
+ is_optional: false
+ - name: param
+ description: VNFtest case name params, and can be repeated.
+ type: map
+ short_option: y
+ long_option: param
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: results
+ description: Testcase results
+ scope: short
+ type: string
+
+http:
+ service:
+ auth: none
+ mode: direct
+ request:
+ uri: /onapapi/vnfsdk-marketplace/v1/PackageResource/vtp/tests/S{name}/run
+ method: GET
+ body: ${param}
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ tescase: $b{$.results.[*].command}
+ yaml: $b{$.results.[*].schema} \ No newline at end of file
diff --git a/products/onap-casablanca/pom.xml b/products/onap-casablanca/pom.xml
index f33930b8..d08c4c7e 100644
--- a/products/onap-casablanca/pom.xml
+++ b/products/onap-casablanca/pom.xml
@@ -34,6 +34,7 @@
<modules>
<module>auth</module>
<module>catalog</module>
+ <module>features</module>
</modules>
<build>
<pluginManagement>
diff --git a/products/pom.xml b/products/pom.xml
index e3479096..7f795f40 100644
--- a/products/pom.xml
+++ b/products/pom.xml
@@ -60,10 +60,18 @@
</activation>
<modules>
<module>onap-casablanca</module>
- <module>onap-beijing</module>
</modules>
</profile>
<profile>
+ <id>onap-beijing</id>
+ <activation>
+ <activeByDefault>false</activeByDefault>
+ </activation>
+ <modules>
+ <module>onap-beijing</module>
+ </modules>
+ </profile>
+ <profile>
<id>eol</id>
<activation>
<activeByDefault>false</activeByDefault>