summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-09-26 10:04:10 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2017-11-14 14:38:52 +0530
commit39f345954434553d10e0cea114e15e0521ec9471 (patch)
tree652c0dae69f8238c41f903d9697160e3b3ed2960
parent8e14f39a1c41a2b5bf793877926b312e4b6102d4 (diff)
Migrate onap-cli-schema into open-cli-schema
Issue-Id: CLI-66 Change-Id: I719719194bc5f21f4316380e606ce1a58f0f046c Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
-rw-r--r--README.md25
-rw-r--r--deployment/docker/src/main/docker/Dockerfile8
-rw-r--r--deployment/http/lighttpd/lighttpd.conf2
-rw-r--r--deployment/http/web/index.html63
-rw-r--r--deployment/http/web/occ.html2
-rw-r--r--deployment/zip/installer/install.sh5
-rw-r--r--deployment/zip/pom.xml8
-rwxr-xr-xdeployment/zip/src/main/release/bin/onap.sh8
-rw-r--r--framework/src/main/java/org/onap/cli/fw/OnapCommand.java2
-rw-r--r--framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java2
-rw-r--r--framework/src/main/java/org/onap/cli/fw/conf/Constants.java20
-rw-r--r--framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java20
-rw-r--r--framework/src/main/resources/open-cli-schema/basic-login.yaml (renamed from framework/src/main/resources/onap-cli-schema/basic-login.yaml)2
-rw-r--r--framework/src/main/resources/open-cli-schema/basic-logout.yaml (renamed from framework/src/main/resources/onap-cli-schema/basic-logout.yaml)2
-rw-r--r--framework/src/main/resources/open-cli-schema/catalog.yaml (renamed from framework/src/main/resources/onap-cli-schema/catalog.yaml)2
-rw-r--r--framework/src/main/resources/open-cli-schema/schema-refresh.yaml (renamed from framework/src/main/resources/onap-cli-schema/schema-refresh.yaml)4
-rw-r--r--framework/src/main/resources/open-cli-schema/schema-validate.yaml (renamed from framework/src/main/resources/onap-cli-schema/schema-validate.yaml)2
-rw-r--r--framework/src/main/resources/open-cli.properties (renamed from framework/src/main/resources/onap.properties)25
-rw-r--r--framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java4
-rw-r--r--framework/src/test/java/org/onap/cli/fw/conf/OnapCommandConfgTest.java2
-rw-r--r--framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java2
-rw-r--r--framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml (renamed from framework/src/test/resources/onap-cli-schema/sample-test1-schema-http.yaml)0
-rw-r--r--framework/src/test/resources/sample-cmd-test-help.txt2
-rw-r--r--framework/src/test/resources/sample-test-schema-http.yaml2
-rw-r--r--framework/src/test/resources/sample-test-schema.yaml2
-rw-r--r--main/src/main/resources/onap-readme.txt34
-rw-r--r--main/src/test/java/org/onap/cli/main/OnapCliMainTest.java4
-rw-r--r--main/src/test/resources/open-cli-schema/sample-create-schema.yaml (renamed from main/src/test/resources/onap-cli-schema/sample-create-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml)0
-rw-r--r--plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml (renamed from plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml)0
-rw-r--r--plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml (renamed from plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml)0
-rw-r--r--plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml (renamed from plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml)0
-rw-r--r--plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml (renamed from plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml)0
-rw-r--r--plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml (renamed from plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml)0
-rw-r--r--plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml (renamed from plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml)0
-rw-r--r--plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml (renamed from plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml)0
-rw-r--r--plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml (renamed from plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml)0
-rw-r--r--plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml (renamed from plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml)0
-rw-r--r--plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml (renamed from plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml)0
-rw-r--r--plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml (renamed from plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml)0
-rw-r--r--plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml (renamed from plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml)0
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml (renamed from plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml)0
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml (renamed from plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml)0
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml74
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml (renamed from plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml)0
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml74
-rw-r--r--plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml44
91 files changed, 324 insertions, 122 deletions
diff --git a/README.md b/README.md
index d2abd5ef..a69963b2 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,13 @@
-ONAP Command-line interface (CLI)
+OPEN Command-line interface (CLI)
==================================
-**One Command to command whole Onap !!**
+Provides unified commands to operate any cloud enabled software
+products from Linux/Web console. Configure the following environment
+variables, before using it:
-Provides unified commands to operate ONAP from Linux console.
-Configure the following environment variables, before using it:
-
-1. **HOST_URL** - Onap Micro service bus(MSB) URL or a service URL
-2. **HOST_USERNAME** - Onap user name
-3. **HOST_PASSWORD** - Onap user password
+1. **HOST_URL** - Catalog service URL or a service URL
+2. **HOST_USERNAME** - Service user name
+3. **HOST_PASSWORD** - Service password
To Run a command
-----------------
@@ -20,9 +19,9 @@ Type **onap** from linux console.
And use the directive set to set the values for following parameters:
-1. **onap-host-url** - Onap Micro service bus(MSB) URL or a service URL
-2. **host-username** - Onap user name
-3. **host-password** - Onap user password
+1. **host-url** - Catalog service URL or a service URL
+2. **host-username** - Service user name
+3. **host-password** - Service password
Set the product version
------------------------
@@ -47,8 +46,8 @@ Help
Debug Mode
----------
To run in debug mode, set following environment variables:
-1. ONAP_CLI_DEBUG - By default its false, otherwise Set to true
-2. ONAP_CLI_DEBUG_PORT - By default it is 5005, otherwise set to new TCP port number
+1. CLI_DEBUG - By default its false, otherwise Set to true
+2. CLI_DEBUG_PORT - By default it is 5005, otherwise set to new TCP port number
More details
-------------
diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile
index 91ca317b..f3665223 100644
--- a/deployment/docker/src/main/docker/Dockerfile
+++ b/deployment/docker/src/main/docker/Dockerfile
@@ -10,7 +10,7 @@ RUN cd /tmp && curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.t
mv /tmp/gotty/bin/gotty /usr/sbin/
#Environments
-ENV ONAP_CLI_HOME /opt/onap/cli
+ENV OPEN_CLI_HOME /opt/onap/cli
ENV ONAP_CLI_DEBUG false
ENV ONAP_CLI_DEBUG_PORT 5005
ENV CLI_MODE console
@@ -21,8 +21,8 @@ ENV ONAP_USERNAME guest
ENV ONAP_PASSWORD guest
#Copy CLI into docker
-ADD ./STAGE $ONAP_CLI_HOME
-WORKDIR $ONAP_CLI_HOME
+ADD ./STAGE $OPEN_CLI_HOME
+WORKDIR $OPEN_CLI_HOME
#Setup the run time environment (RTE)
#RTE: CLI
@@ -32,7 +32,7 @@ RUN chmod +x ./bin/onap.sh && \
if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi
#Create the readable README
-RUN pandoc -t plain $ONAP_CLI_HOME/docs/README.md > $ONAP_CLI_HOME/docs/onap-readme.txt
+RUN pandoc -t plain $OPEN_CLI_HOME/docs/README.md > $OPEN_CLI_HOME/docs/onap-readme.txt
#RTE: lighttpd
COPY ./STAGE/http/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf
diff --git a/deployment/http/lighttpd/lighttpd.conf b/deployment/http/lighttpd/lighttpd.conf
index 8f88a912..03765bf8 100644
--- a/deployment/http/lighttpd/lighttpd.conf
+++ b/deployment/http/lighttpd/lighttpd.conf
@@ -1,4 +1,4 @@
-server.document-root = "/var/www-data/servers/onap-cli/"
+server.document-root = "/var/www-data/servers/open-cli/"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
diff --git a/deployment/http/web/index.html b/deployment/http/web/index.html
index f722b657..a8059671 100644
--- a/deployment/http/web/index.html
+++ b/deployment/http/web/index.html
@@ -1,12 +1,55 @@
-<!DOCTYPE html><html><head><link rel="icon" href="./onap-cli.png">
-<meta charset="utf-8"><title>ONAP CLI</title><style></style>
-<script>
-function redirectToConsole(){
- window.location.href="http://"+ window.location.hostname + ":9090";
-}
-</script>
-</head>
-
-<body onload="showSlides()" style="background-color: white;color: black">
+<!DOCTYPE html><html><head><link rel="icon" href="./open-cli.png">
+<meta charset="utf-8"><title>ONAP CLI</title><style></style></head><body id="preview">
+<h1><a id="ONAP_Commandline_interface_CLI_0"></a>ONAP Command-line interface (CLI)</h1>
+<p style="color:blue"><strong>One Command to command whole Onap !!</strong></p>
+<p>Provides unified commands to operate ONAP from Linux console and Web console.</p>
+
+<h2><a id="Download_42"></a>To download</h2>
+<p style="color:red">Please download ONAP CLI <a href="./onap-cli.zip">here</a></p>
+
+<h3><a id="Download_42"></a>To install</h3>
+<p>Please follow the instructions given below for installing ONAP CLI.</p>
+<ol>
+<li>Un-zip the above download file into <b>/opt/onap/cli folder</b></li>
+<li>Run the following commands:
+<br>export ONAP_CLI_HOME=$CLI_INSTALL_DIR
+<br>export CLI_PRODUCT_VERSION=onap-1.1
+<br>
+<br>cd $CLI_INSTALL_DIR
+<br>
+<br>if [ ! -d ./data ]; then mkdir ./data; fi
+<br>if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi
+<br>
+<br>chmod +x ./bin/onap.sh
+<br>
+<br>#Make onap available in path
+<br>ln ./bin/onap.sh $CLI_BIN
+<br>
+<br>#Print the version
+<br>onap -v</li>
+</ol>
+
+<h2><a id="Console_42"></a>Web Command console</h2>
+<p style="color:blue">To open Console, Click <img src="./onap-cli.png" alt="Web Command console" style="width:30px;height:22px;" onclick="redirectToConsole();"> </p>
+
+<h2><a id="To_Run_a_command_12"></a>To Run a command</h2>
+
+<p>Configure the following environment variables, before using it in Linux console:</p>
+<ol>
+<li><strong>HOST_URL</strong> - Onap Micro service bus(MSB) URL or a service URL</li>
+<li><strong>HOST_USERNAME</strong> - Onap user name</li>
+<li><strong>HOST_PASSWORD</strong> - Onap user password</li>
+</ol>
+
+<p>Type <strong>onap &lt;command&gt;</strong> from Linux console.</p>
+
+<h2><a id="To_Run_in_Interactive_mode_16"></a>To Run in Interactive mode</h2>
+<p>Type <strong>onap</strong> from linux console</p>
+
+<h2><a id="More_details_42"></a>More details</h2>
+<p><a href="https://wiki.onap.org">https://wiki.onap.org</a></p>
+
+<h2><a id="Download_42"></a>To download</h2>
+<p style="color:red">Please download ONAP CLI <a href="./open-cli.zip">here</a></p>
</body></html>
diff --git a/deployment/http/web/occ.html b/deployment/http/web/occ.html
index de2daee5..feb94b97 100644
--- a/deployment/http/web/occ.html
+++ b/deployment/http/web/occ.html
@@ -2,7 +2,7 @@
<html>
<head>
<title>OCC</title>
- <link rel="icon" type="image/png" href="./onap-cli.png">
+ <link rel="icon" type="image/png" href="./open-cli.png">
<link rel="stylesheet" href="./css/index.css" />
<link rel="stylesheet" href="./css/xterm.css" />
<link rel="stylesheet" href="./css/xterm_customize.css" />
diff --git a/deployment/zip/installer/install.sh b/deployment/zip/installer/install.sh
index c5ec4216..177656a9 100644
--- a/deployment/zip/installer/install.sh
+++ b/deployment/zip/installer/install.sh
@@ -20,8 +20,7 @@ CLI_LATEST_BINARY="https://nexus.onap.org/service/local/artifact/maven/redirect?
CLI_INSTALL_DIR=/opt/onap/cli
CLI_ZIP=cli.zip
CLI_BIN=/usr/bin/onap
-export ONAP_CLI_HOME=$CLI_INSTALL_DIR
-export CLI_PRODUCT_VERSION=onap-1.1
+export OPEN_CLI_HOME=$CLI_INSTALL_DIR
#create install dir
if [ -d $CLI_INSTALL_DIR ]
@@ -47,7 +46,7 @@ wget -O $CLI_ZIP $CLI_LATEST_BINARY
unzip $CLI_ZIP
if [ ! -d ./data ]; then mkdir ./data; fi
-if [ ! -d ./onap-cli-schema ]; then mkdir ./onap-cli-schema; fi
+if [ ! -d ./open-cli-schema ]; then mkdir ./open-cli-schema; fi
chmod +x ./bin/onap.sh
#Make onap available in path
diff --git a/deployment/zip/pom.xml b/deployment/zip/pom.xml
index 05d015c6..9ad346cc 100644
--- a/deployment/zip/pom.xml
+++ b/deployment/zip/pom.xml
@@ -38,7 +38,7 @@
<version>1.5</version>
<executions>
<execution>
- <id>onap-cli-deployment</id>
+ <id>open-cli-deployment</id>
<phase>package</phase>
<goals>
<goal>execute</goal>
@@ -62,8 +62,8 @@
ant.delete(dir: "${deployUnzip}/lib")
ant.mkdir(dir: "${deployUnzip}/lib")
- ant.delete(dir: "${deployUnzip}/onap-cli-schema")
- ant.mkdir(dir: "${deployUnzip}/onap-cli-schema")
+ ant.delete(dir: "${deployUnzip}/open-cli-schema")
+ ant.mkdir(dir: "${deployUnzip}/open-cli-schema")
ant.delete(dir: "${deployUnzip}/data")
ant.mkdir(dir: "${deployUnzip}/data")
@@ -93,7 +93,7 @@
ant.copy(todir:
"${deployUnzip}/conf") {
fileset(file:
- "${project.build.directory}/../../../framework/src/main/resources/onap.properties")
+ "${project.build.directory}/../../../framework/src/main/resources/open-cli.properties")
}
ant.copy(todir:
diff --git a/deployment/zip/src/main/release/bin/onap.sh b/deployment/zip/src/main/release/bin/onap.sh
index c7d4142a..9349c143 100755
--- a/deployment/zip/src/main/release/bin/onap.sh
+++ b/deployment/zip/src/main/release/bin/onap.sh
@@ -16,14 +16,14 @@
# limitations under the License.
#*******************************************************************************
-if [ -z "$ONAP_CLI_HOME" ]
+if [ -z "$OPEN_CLI_HOME" ]
then
- echo "There is no ONAP_CLI_HOME"
+ echo "There is no OPEN_CLI_HOME"
exit 1
fi
-CLASSPATH=$ONAP_CLI_HOME:$ONAP_CLI_HOME/conf:$ONAP_CLI_HOME/docs
-for entry in "$ONAP_CLI_HOME/lib"/*
+CLASSPATH=$OPEN_CLI_HOME:$OPEN_CLI_HOME/conf:$OPEN_CLI_HOME/docs
+for entry in "$OPEN_CLI_HOME/lib"/*
do
CLASSPATH=$CLASSPATH:$entry
done
diff --git a/framework/src/main/java/org/onap/cli/fw/OnapCommand.java b/framework/src/main/java/org/onap/cli/fw/OnapCommand.java
index bce27642..b100b155 100644
--- a/framework/src/main/java/org/onap/cli/fw/OnapCommand.java
+++ b/framework/src/main/java/org/onap/cli/fw/OnapCommand.java
@@ -282,7 +282,7 @@ public abstract class OnapCommand {
// For auth type commands, login and logout logic is not required
boolean isAuthRequired = !this.onapService.isNoAuth()
&& "false".equals(paramMap.get(Constants.DEFAULT_PARAMETER_OUTPUT_NO_AUTH).getValue())
- && !this.getType().equals(CommandType.AUTH);
+ && this.getType().equals(CommandType.CMD);
if (!isCommandInternal()) {
this.authClient = new OnapAuthClient(
diff --git a/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java b/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
index 74793f47..37ed81a5 100644
--- a/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
+++ b/framework/src/main/java/org/onap/cli/fw/OnapCommandRegistrar.java
@@ -265,7 +265,7 @@ public class OnapCommandRegistrar {
String errorNote = "";
String usageNote = "\n\nTo enable a product version, use one of following methods:"
+ "\n 1. set env variable CLI_PRODUCT_VERSION"
- + "\n 2. set cli.product.version in onap.properties"
+ + "\n 2. set cli.product.version in open-cli.properties"
+ "\n 3. in interactive mode, use the directive 'use <product version>'\n";
if (!this.availableProductVersions.contains(configuredProductVersion)) {
diff --git a/framework/src/main/java/org/onap/cli/fw/conf/Constants.java b/framework/src/main/java/org/onap/cli/fw/conf/Constants.java
index f9e5ba99..5ae3c502 100644
--- a/framework/src/main/java/org/onap/cli/fw/conf/Constants.java
+++ b/framework/src/main/java/org/onap/cli/fw/conf/Constants.java
@@ -43,15 +43,7 @@ public class Constants {
public static final String SSLCONTEST_TLS = "TLSV1.2";
public static final String APPLICATION_JSON = "application/json";
- public static final String X_AUTH_TOKEN = "x-auth-token";
- public static final String AUTH_SERVICE = "cli.auth_service";
- public static final String AUTH_SERVICE_VERSION = "v1";
- public static final String TOKEN = "{\"userName\": \"%s\",\"password\": \"%s\"}";
- public static final String MSB_URI = "/api/microservices/v1";
- public static final String MSB_SERVICE_URI = MSB_URI + "/services/%s/version/%s";
-
- public static final String API_GATEWAY = "cli.api_gateway";
public static final String SERVICE_NAME = "cli.service_name";
//http
@@ -127,11 +119,11 @@ public class Constants {
public static final String DEFAULT_PARAMETER_OUTPUT_NO_AUTH = "no-auth";
// Configuration properties
- public static final String CONF = "onap.properties";
- public static final String ONAP_IGNORE_AUTH = "cli.ignore_auth";
- public static final String ONAP_CLI_VERSION = "cli.version";
- public static final String ONAP_CLI_PRODUCT_VERSION = "cli.product.version";
- public static final String ONAP_CLI_PRODUCT_VERSION_ENV_NAME = "CLI_PRODUCT_VERSION";
+ public static final String CONF = "open-cli.properties";
+ public static final String OPEN_IGNORE_AUTH = "cli.ignore_auth";
+ public static final String OPEN_CLI_VERSION = "cli.version";
+ public static final String OPEN_CLI_PRODUCT_VERSION = "cli.product.version";
+ public static final String OPEN_CLI_PRODUCT_VERSION_ENV_NAME = "CLI_PRODUCT_VERSION";
public static final String HTTP_API_KEY_USE_COOKIES = "cli.http.api_key_use_cookies";
public static final String EXCLUDE_PARAMS_INTERNAL_CMD = "cli.exclude_params_internal_cmd";
public static final String NO_AUTH_DISABLE_INCLUDE_PARAMS_EXTERNAL_CMD = "cli.no_auth_disable_include_params_external_cmd";
@@ -144,7 +136,7 @@ public class Constants {
public static final String PORTRAINT_COLUMN_NAME_PROPERTY = "property";
public static final String PORTRAINT_COLUMN_NAME_VALUE = "value";
- public static final String EXTERNAL_SCHEMA_DIRECTORY = "onap-cli-schema";
+ public static final String EXTERNAL_SCHEMA_DIRECTORY = "open-cli-schema";
public static final String EXTERNAL_YAML_PATTERN = "/**/*.yaml";
public static final String EXTERNAL_JSON_PATTERN = "/**/*.json";
public static final String EXTERNAL_SCHEMA_PATH_PATERN = EXTERNAL_SCHEMA_DIRECTORY + EXTERNAL_YAML_PATTERN;
diff --git a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java
index bb0e2c06..447a7f4c 100644
--- a/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java
+++ b/framework/src/main/java/org/onap/cli/fw/conf/OnapCommandConfg.java
@@ -55,7 +55,7 @@ public final class OnapCommandConfg {
* @return boolean
*/
public static boolean isAuthIgnored() {
- if ("true".equals(prps.getProperty(Constants.ONAP_IGNORE_AUTH))) {
+ if ("true".equals(prps.getProperty(Constants.OPEN_IGNORE_AUTH))) {
return true;
}
@@ -76,13 +76,13 @@ public final class OnapCommandConfg {
}
public static String getVersion() {
- return prps.getProperty(Constants.ONAP_CLI_VERSION);
+ return prps.getProperty(Constants.OPEN_CLI_VERSION);
}
public static String getEnabledProductVersion() {
- String version = System.getenv(Constants.ONAP_CLI_PRODUCT_VERSION_ENV_NAME);
+ String version = System.getenv(Constants.OPEN_CLI_PRODUCT_VERSION_ENV_NAME);
if (version == null) {
- version = prps.getProperty(Constants.ONAP_CLI_PRODUCT_VERSION);
+ version = prps.getProperty(Constants.OPEN_CLI_PRODUCT_VERSION);
}
return version;
}
@@ -100,22 +100,10 @@ public final class OnapCommandConfg {
return false;
}
- public static String getXAuthTokenName() {
- return prps.getProperty(Constants.SERVICE_AUTH_BASIC_HTTP_HEADERS + "." + Constants.X_AUTH_TOKEN);
- }
-
public static String getInternalCmd() {
return prps.getProperty(Constants.SERVICE_NAME);
}
- public static String getApiGateway() {
- return prps.getProperty(Constants.API_GATEWAY);
- }
-
- public static String getAuthService() {
- return prps.getProperty(Constants.AUTH_SERVICE);
- }
-
public static String getAuthType() {
return prps.getProperty(Constants.SERVICE_AUTH, Constants.AUTH_BASIC);
}
diff --git a/framework/src/main/resources/onap-cli-schema/basic-login.yaml b/framework/src/main/resources/open-cli-schema/basic-login.yaml
index 10bc8a80..78294fc5 100644
--- a/framework/src/main/resources/onap-cli-schema/basic-login.yaml
+++ b/framework/src/main/resources/open-cli-schema/basic-login.yaml
@@ -5,7 +5,7 @@ version: cli-1.0
type: auth
service:
- name: onap-cli
+ name: open-cli
version: 1.0.0
results:
diff --git a/framework/src/main/resources/onap-cli-schema/basic-logout.yaml b/framework/src/main/resources/open-cli-schema/basic-logout.yaml
index ccb05160..2c0e3dbd 100644
--- a/framework/src/main/resources/onap-cli-schema/basic-logout.yaml
+++ b/framework/src/main/resources/open-cli-schema/basic-logout.yaml
@@ -9,5 +9,5 @@ version: cli-1.0
type: auth
service:
- name: onap-cli
+ name: open-cli
version: 1.0.0
diff --git a/framework/src/main/resources/onap-cli-schema/catalog.yaml b/framework/src/main/resources/open-cli-schema/catalog.yaml
index 6cfdb0a0..160ff1d4 100644
--- a/framework/src/main/resources/onap-cli-schema/catalog.yaml
+++ b/framework/src/main/resources/open-cli-schema/catalog.yaml
@@ -10,7 +10,7 @@ type: catalog
service:
auth: none
- name: onap-cli
+ name: open-cli
version: 1.0.0
mode: direct
diff --git a/framework/src/main/resources/onap-cli-schema/schema-refresh.yaml b/framework/src/main/resources/open-cli-schema/schema-refresh.yaml
index 280dec36..5f1cb50e 100644
--- a/framework/src/main/resources/onap-cli-schema/schema-refresh.yaml
+++ b/framework/src/main/resources/open-cli-schema/schema-refresh.yaml
@@ -1,10 +1,10 @@
open_cli_schema_version: 1.0
name: schema-refresh
-description: Onap command to refresh schemas stored in onap_cli_schema folders.
+description: Onap command to refresh schemas stored in OPEN_cli_schema folders.
version: cli-1.0
service:
auth: none
- name: onap-cli
+ name: open-cli
version: 1.0.0
results:
direction: landscape
diff --git a/framework/src/main/resources/onap-cli-schema/schema-validate.yaml b/framework/src/main/resources/open-cli-schema/schema-validate.yaml
index 55e61e58..8c777666 100644
--- a/framework/src/main/resources/onap-cli-schema/schema-validate.yaml
+++ b/framework/src/main/resources/open-cli-schema/schema-validate.yaml
@@ -4,7 +4,7 @@ description: Onap command to validate schema
version: cli-1.0
service:
auth: none
- name: onap-cli
+ name: open-cli
version: 1.0.0
default_parameters:
exclude:
diff --git a/framework/src/main/resources/onap.properties b/framework/src/main/resources/open-cli.properties
index d73f1454..2531ce22 100644
--- a/framework/src/main/resources/onap.properties
+++ b/framework/src/main/resources/open-cli.properties
@@ -1,11 +1,10 @@
cli.ignore_auth=false
-cli.version=1.0
cli.http.api_key_use_cookies=true
cli.discover_always=false
-cli.service_name=onap-cli
-cli.api_gateway=msb
-cli.auth_service=auth
+cli.service_name=open-cli
+cli.product.version=cli-1.0
+cli.version=1.0
# service section
cli.exclude_params_internal_cmd=host-username,host-password,host-url,no-auth
@@ -13,21 +12,6 @@ cli.no_auth_disable_include_params_external_cmd=host-username,host-password,host
cli.no_auth_enable_exclude_params_external_cmd=host-username,host-password,no-auth
cli.no_auth_enable_include_params_external_cmd=host-url
-cli.http.basic.common_headers=x-auth-token,x-transaction-id,x-app-id
-cli.http.basic.common_headers.x-auth-token=Authorization
-cli.http.basic.common_headers.x-transaction-id=X-TransactionId
-cli.http.basic.common_headers.x-transaction-id.value=req-uuid
-cli.http.basic.common_headers.x-app-id=X-FromAppId
-cli.http.basic.common_headers.x-app-id.value=onap-cli
-
-# Service specific headers
-cli.http.basic.common_headers.sdc=user-id
-cli.http.basic.common_headers.sdc.user-id=USER_ID
-cli.http.basic.common_headers.sdc.user-id.value=${host-username}
-
-#TODO mrkanag add support for aaf like defined above for basic
-#cli.service.auth=aaf
-
#schema validation
cli.schema.top_level_params_list=open_cli_schema_version,name,version,description,service,parameters,results,http,type
cli.schema.top_level_mandatory_list=open_cli_schema_version
@@ -53,6 +37,7 @@ cli.schema.boolean_values=true,false
cli.schema.auth_values=none,basic
cli.schema.mode_values=direct,catalog
+<<<<<<< 5301969fc26714a8494882027116282898278f32:framework/src/main/resources/onap.properties
#product version
cli.product.version=cli-1.0
@@ -60,3 +45,5 @@ cli.product.version=cli-1.0
cli.sample.gen.enable=false
cli.sample.gen.target=.
+=======
+>>>>>>> Migrate onap-cli-schema into open-cli-schema:framework/src/main/resources/open-cli.properties
diff --git a/framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java b/framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java
index 4f5c95e2..d34f89c2 100644
--- a/framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/OnapCommandRegistrarTest.java
@@ -42,10 +42,10 @@ public class OnapCommandRegistrarTest {
}
private void createDir() {
- URL url = OnapCommandRegistrarTest.class.getClassLoader().getResource("onap-cli-schema");
+ URL url = OnapCommandRegistrarTest.class.getClassLoader().getResource("open-cli-schema");
if (url != null) {
String path = url.getPath();
- path = path.replaceFirst("onap-cli-schema", "data");
+ path = path.replaceFirst("open-cli-schema", "data");
File file = new File(path);
if (!file.exists()) {
file.mkdir();
diff --git a/framework/src/test/java/org/onap/cli/fw/conf/OnapCommandConfgTest.java b/framework/src/test/java/org/onap/cli/fw/conf/OnapCommandConfgTest.java
index 7d58a6f4..1a677707 100644
--- a/framework/src/test/java/org/onap/cli/fw/conf/OnapCommandConfgTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/conf/OnapCommandConfgTest.java
@@ -33,7 +33,7 @@ public class OnapCommandConfgTest {
@Test
public void isAuthIgnoredTest() throws IOException {
Properties prps = new Properties();
- prps.load(OnapCommandConfg.class.getClassLoader().getResourceAsStream("onap.properties"));
+ prps.load(OnapCommandConfg.class.getClassLoader().getResourceAsStream("open-cli.properties"));
boolean auth = OnapCommandConfg.isAuthIgnored();
Assert.assertTrue(auth == Boolean.valueOf(prps.getProperty("cli.ignore_auth")));
Assert.assertTrue(OnapCommandConfg.isCookiesBasedAuth() == Boolean
diff --git a/framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java b/framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java
index a8df9979..d8745989 100644
--- a/framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/schema/ValidateSchemaTest.java
@@ -55,7 +55,7 @@ public class ValidateSchemaTest {
protected void run() throws OnapCommandException {}
};
OnapCommandUtils.loadSchema(cmd,
- ValidateSchemaTest.class.getClassLoader().getResource("onap.properties").getFile(),
+ ValidateSchemaTest.class.getClassLoader().getResource("open-cli.properties").getFile(),
true, true);
}
diff --git a/framework/src/test/resources/onap-cli-schema/sample-test1-schema-http.yaml b/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
index 21f863b6..21f863b6 100644
--- a/framework/src/test/resources/onap-cli-schema/sample-test1-schema-http.yaml
+++ b/framework/src/test/resources/open-cli-schema/sample-test1-schema-http.yaml
diff --git a/framework/src/test/resources/sample-cmd-test-help.txt b/framework/src/test/resources/sample-cmd-test-help.txt
index 3d3d2415..63b5decc 100644
--- a/framework/src/test/resources/sample-cmd-test-help.txt
+++ b/framework/src/test/resources/sample-cmd-test-help.txt
@@ -20,7 +20,7 @@ where,
default, it is read from environment variable
HOST_PASSWORD. Secured.
-m | --host-url Onap MSB url. It is of type URL. By default, it
- is read from environment variable ONAP_MSB_URL.
+ is read from environment variable OPEN_MSB_URL.
-h | --help Onap command help message. It is of type STRING.
By default, it is false.
-v | --version Onap command service version. It is of type
diff --git a/framework/src/test/resources/sample-test-schema-http.yaml b/framework/src/test/resources/sample-test-schema-http.yaml
index 87918792..9bfa2a53 100644
--- a/framework/src/test/resources/sample-test-schema-http.yaml
+++ b/framework/src/test/resources/sample-test-schema-http.yaml
@@ -1,7 +1,7 @@
open_cli_schema_version: 1.0
name: sample-create-http
description: Register microservice into Onap
-version: onap-1.0
+version: cli-1.0
service:
name: msb
version: v1
diff --git a/framework/src/test/resources/sample-test-schema.yaml b/framework/src/test/resources/sample-test-schema.yaml
index 98964a60..092e0e75 100644
--- a/framework/src/test/resources/sample-test-schema.yaml
+++ b/framework/src/test/resources/sample-test-schema.yaml
@@ -1,7 +1,7 @@
open_cli_schema_version: 1.0
name: sample-test
description: Onap sample command to test the command features
-version: onap-1.0
+version: cli-1.0
service:
name: sample
version: v1
diff --git a/main/src/main/resources/onap-readme.txt b/main/src/main/resources/onap-readme.txt
index 0795cf5e..39990700 100644
--- a/main/src/main/resources/onap-readme.txt
+++ b/main/src/main/resources/onap-readme.txt
@@ -1,23 +1,25 @@
-Onap Command-line interface (CLI).
+OPEN Command-line interface (CLI)
+==================================
- ____ __ ___
- ___ _ __ __ _ _ __ / ___| | |_ _|
- / _ \| '_ \ / _` | '_ \ | | | | | |
-| (_) | | | | (_| | |_) | | |___| |___ | |
- \___/|_| |_|\__,_| .__/ \____|_____|___|
- |_|
+ _____ _____ _ _____
+| _ | / __ \| | |_ _|
+| | | |_ __ ___ _ __ | / \/| | | |
+| | | | '_ \ / _ \ '_ \ | | | | | |
+\ \_/ / |_) | __/ | | | | \__/\| |_____| |_
+ \___/| .__/ \___|_| |_| \____/\_____/\___/
+ | |
+ |_|
+
+Provides unified commands to operate any cloud enabled software
+products from Linux/Web console. Configure the following environment
+variables, before using it:
-
-One Command to command whole Onap !! It provides the unified commands
-to access and operate Onap functionalities. To use this CLI, please
-configure the following environment variables:
-
-1. ONAP_MSB_URL - Onap Micro service bus(MSB) URL
-2. HOST_USERNAME - Onap user name
-3. HOST_PASSWORD - Onap user password
+1. HOST_URL - Catalog service URL or a service URL
+2. HOST_USERNAME - Service user name
+3. HOST_PASSWORD - Service password
To know the CLI version, type onap [-v|--version]
To know the CLI usage, type onap [-h|--help]
To know the usage of sub commands, type onap <command> [-h|--help]
-To know more, please refer the Onap wiki https://wiki.onap.org
+To know more, please refer the wiki https://wiki.onap.org
diff --git a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
index 0ac00d1f..acf66a52 100644
--- a/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
+++ b/main/src/test/java/org/onap/cli/main/OnapCliMainTest.java
@@ -77,7 +77,7 @@ public class OnapCliMainTest {
@Test
public void testVersionShort() {
- this.handle(new String[] { "--v" });
+ this.handle(new String[] { "-v" });
}
@Test
@@ -143,7 +143,7 @@ public class OnapCliMainTest {
}
@Test
- public void testHandleSampleCommandFailure() throws OnapCommandException {
+ public void testHandleSampleCommandFailure() throws OnapCommandException{
this.handle(new String[] { "sample-test", "--string-param"});
}
diff --git a/main/src/test/resources/onap-cli-schema/sample-create-schema.yaml b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
index ff24c0aa..ff24c0aa 100644
--- a/main/src/test/resources/onap-cli-schema/sample-create-schema.yaml
+++ b/main/src/test/resources/open-cli-schema/sample-create-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml
index 8657ae14..8657ae14 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml
index 5575f7f7..5575f7f7 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml
index c9fd5368..c9fd5368 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml
index 10a7e954..10a7e954 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/cloud-region/cloud-list-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/cloud-region/cloud-list-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml
index 41c1515c..41c1515c 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml
index e79cd5e6..e79cd5e6 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-create-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-create-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml
index 673cb94a..673cb94a 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml
index 48455cdc..48455cdc 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-delete-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-delete-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml
index 1e408f78..1e408f78 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml
index 0866cfb4..0866cfb4 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-list-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-list-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml
index f12e235a..f12e235a 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml
index bb37aa27..bb37aa27 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/customer/customer-show-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/customer/customer-show-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml
index 2c6c0636..2c6c0636 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml
index c703c651..c703c651 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml
index 7b8877bb..7b8877bb 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml
index c03a75bd..c03a75bd 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-show-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/ems/ems-show-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml
index fe0d22a8..fe0d22a8 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml
index eec0ca67..eec0ca67 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml
index f84c480f..f84c480f 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml
index d50acfb9..d50acfb9 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml
index ee74ead5..ee74ead5 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml
index 2af3474d..2af3474d 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vim/vim-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml
index e8529722..e8529722 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml
index 3c99c048..3c99c048 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml
index 4318dce7..4318dce7 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml
index e447ec56..e447ec56 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/esr/vnfm/vnfm-show-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml
index ffd3a964..ffd3a964 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml
index f8a73841..f8a73841 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-create-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-create-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml
index c1745b13..c1745b13 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml
index a2b438b6..a2b438b6 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-delete-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-delete-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml
index dd769c2c..dd769c2c 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml
index bdff43c3..bdff43c3 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/service-type/service-type-list-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/service-type/service-type-list-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml
index 1ed61eca..1ed61eca 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml
index a45f8cfd..a45f8cfd 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-create-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-create-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml
index 18e83fdd..18e83fdd 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml
index a14d2da2..a14d2da2 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml
index 634c5cb2..634c5cb2 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/subscription/subscription-list-schema.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/subscription/subscription-list-schema.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml
index 9bc22853..9bc22853 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-create-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-create-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml
index ece1bd5c..ece1bd5c 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-delete-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-delete-schema-1.1.yaml
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml
index 46f470da..46f470da 100644
--- a/plugins/aai/src/main/resources/onap-cli-schema/tenant/tenant-list-schema-1.1.yaml
+++ b/plugins/aai/src/main/resources/open-cli-schema/tenant/tenant-list-schema-1.1.yaml
diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml
index cb17ff12..cb17ff12 100644
--- a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-1-1.yaml
+++ b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-1-1.yaml
diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml
index ca07dca2..ca07dca2 100644
--- a/plugins/auth/src/main/resources/onap-cli-schema/basic-login-onap-sdc-1-1.yaml
+++ b/plugins/auth/src/main/resources/open-cli-schema/basic-login-onap-sdc-1-1.yaml
diff --git a/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml b/plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml
index 46a4bea7..46a4bea7 100644
--- a/plugins/auth/src/main/resources/onap-cli-schema/basic-logout-onap-1-1.yaml
+++ b/plugins/auth/src/main/resources/open-cli-schema/basic-logout-onap-1-1.yaml
diff --git a/plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml b/plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml
index a23e6b22..a23e6b22 100644
--- a/plugins/catalog/src/main/resources/onap-cli-schema/catalog-onap-1_1.yaml
+++ b/plugins/catalog/src/main/resources/open-cli-schema/catalog-onap-1_1.yaml
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
index 79afd2c7..79afd2c7 100644
--- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-create-schema.yaml
+++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-create-schema.yaml
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
index 82eabf95..82eabf95 100644
--- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-delete-schema.yaml
+++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-delete-schema.yaml
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
index 52014c9b..52014c9b 100644
--- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-list-schema.yaml
+++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-list-schema.yaml
diff --git a/plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml b/plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
index a9e1cced..a9e1cced 100644
--- a/plugins/msb/src/main/resources/onap-cli-schema/microservice-show-schema.yaml
+++ b/plugins/msb/src/main/resources/open-cli-schema/microservice-show-schema.yaml
diff --git a/plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml b/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml
index 64144d37..64144d37 100644
--- a/plugins/sample/src/main/resources/onap-cli-schema/hello-world-http.yaml
+++ b/plugins/sample/src/main/resources/open-cli-schema/hello-world-http.yaml
diff --git a/plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml b/plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml
index 9a2c6b67..9a2c6b67 100644
--- a/plugins/sample/src/main/resources/onap-cli-schema/hello-world.yaml
+++ b/plugins/sample/src/main/resources/open-cli-schema/hello-world.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml
index 4522b41d..4522b41d 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkin-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkin-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml
index d790ce55..d790ce55 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-checkout-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-checkout-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml
index 4ce83d4b..4ce83d4b 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-create-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml
index f171b442..f171b442 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-list-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-list-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml
index 47cc462e..47cc462e 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-show-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-show-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml
index d5f1733f..d5f1733f 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-submit-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema.yaml
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml
index 28d8c0a5..28d8c0a5 100644
--- a/plugins/sdc/src/main/resources/onap-cli-schema/vsp/vsp-upload-schema.yaml
+++ b/plugins/sdc/src/main/resources/open-cli-schema/vsp/vsp-upload-schema.yaml
diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml
index 96b7e036..96b7e036 100644
--- a/plugins/so/src/main/resources/onap-cli-schema/services/service-create-schema-1.1.yaml
+++ b/plugins/so/src/main/resources/open-cli-schema/services/service-create-schema-1.1.yaml
diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml
index 7ae110ed..7ae110ed 100644
--- a/plugins/so/src/main/resources/onap-cli-schema/services/service-delete-schema-1.1.yaml
+++ b/plugins/so/src/main/resources/open-cli-schema/services/service-delete-schema-1.1.yaml
diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml
new file mode 100644
index 00000000..170ba845
--- /dev/null
+++ b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-create-schema-1.1.yaml
@@ -0,0 +1,74 @@
+open_cli_schema_version: 1.0
+name: vf-module-create
+description: Create a VF Module
+version: onap-1.1
+service:
+ name: mso
+ version: v2
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: lcp-cloudregion-id
+ description: AIC LCP node location identifier
+ type: string
+ short_option: l
+ long_option: lcp-cloudregion-id
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id (uuid)
+ type: string
+ short_option: w
+ long_option: tenant-id
+ is_optional: false
+ - name: vnf-instance-id
+ description: vnf instance id
+ type: string
+ short_option: y
+ long_option: vnf-instace-id
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: x
+ long_option: service-instace-id
+ is_optional: false
+ - name: parenet-service-model
+ description: parent service model name
+ type: string
+ short_option: z
+ long_option: parenet-service-model
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: true
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: i
+ long_option: instance-name
+ is_optional: false
+
+results:
+ direction: portrait
+ attribute:
+ - name: vf-instance-id
+ description: id for the created vf
+ type: string
+ scope: short
+
+http:
+ request:
+ uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs/${vnf-instance-id}/vfModules
+ method: PUT
+ body: '{"requestDetails":{"modelInfo":{"modelType":"vfModule","modelInvariantId":"ff5256d2-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e5-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12..base..module-0","modelVersion":"1"},"cloudConfiguration":{"lcpCloudRegionId":"${lcp-cloudregion-id}","tenantId":"${tenant-id}"},"requestInfo":{"instanceName":"${instance-name}","source":"VID","suppressRollback":"${supress-rollback}"},"relatedInstanceList":[{"relatedInstance":{"instanceId":"${service-instance-id}","modelInfo":{"modelType":"service","modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"${parenet-service-model}","modelVersion":"1.0"}}},{"relatedInstance":{"instanceId":"${vnf-instance-id}","modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12","modelVersion":"1.0","modelCustomizationName":"vSAMP12 1"}}}],"requestParameters":{"userParams":[]}}}'
+
+ success_codes:
+ - 202
+ result_mpa:
+ vf-instance-id: $b{$.vfInstanceId}
+ sample_response:
+ body: '{"vfInstanceId":"234567AB"}'
diff --git a/plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml
index 37754087..37754087 100644
--- a/plugins/so/src/main/resources/onap-cli-schema/services/vf-module-delete-schema-1.1.yaml
+++ b/plugins/so/src/main/resources/open-cli-schema/services/vf-module-delete-schema-1.1.yaml
diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml
new file mode 100644
index 00000000..899be1bb
--- /dev/null
+++ b/plugins/so/src/main/resources/open-cli-schema/services/vnf-create-schema-1.1.yaml
@@ -0,0 +1,74 @@
+open_cli_schema_version: 1.0
+name: vnf-create
+description: Create a VNF
+version: onap-1.1
+service:
+ name: mso
+ version: v2
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: lcp-cloudregion-id
+ description: AIC LCP node location identifier
+ type: string
+ short_option: l
+ long_option: lcp-cloudregion-id
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id (uuid)
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+ - name: product-family-id
+ description: UUID for product family (named service id in AAI)
+ type: string
+ short_option: w
+ long_option: product-family-id
+ is_optional: false
+ - name: instance-name
+ description: service instance name
+ type: string
+ short_option: i
+ long_option: instance-name
+ is_optional: false
+ - name: supress-rollback
+ description: rollback changes if instantiation fails.
+ type: bool
+ short_option: r
+ long_option: supress-rollback
+ is_optional: true
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: y
+ long_option: service-instance-id
+ is_optional: false
+ - name: parenet-service-model
+ description: parent service model name
+ type: string
+ short_option: x
+ long_option: parenet-service-model
+ is_optional: false
+
+results:
+ direction: portrait
+ attribute:
+ - name: vnf-instance-id
+ description: id for the created vnf
+ type: string
+ scope: short
+
+http:
+ request:
+ uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs
+ method: PUT
+ body: '{"requestDetails":{"modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6478e4-ea33-3346-ac12-ab121484a3fe","modelName":"vSAMP12","modelVersion":"1.0","modelCustomizationName":"vSAMP12 1"},"cloudConfiguration":{"lcpCloudRegionId": "${lcp-cloudregion-id}","tenantId":"${tenant-id}"},"requestInfo":{"instanceName":"${instance-name}","productFamilyId":"${product-family-id}","source":"VID","suppressRollback":"${supress-rollback}"},"relatedInstanceList":[{"relatedInstance":{"instanceId":"${service-instance-id}","modelInfo":{"modelType":"service","modelInvariantId":"ff3514e3-5a33-55df-13ab-12abad84e7ff","modelNameVersionId":"fe6985cd-ea33-3346-ac12-ab121484a3fe","modelName":"${parenet-service-model}","modelVersion":"1.0"}}}],"requestParameters":{}}}'
+
+ success_codes:
+ - 202
+ result_mpa:
+ vnf-instance-id: $b{$.vnfInstanceId}
+ sample_response:
+ body: '{"vnfInstanceId":"234567AB"}'
diff --git a/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml b/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml
new file mode 100644
index 00000000..08134f88
--- /dev/null
+++ b/plugins/so/src/main/resources/open-cli-schema/services/vnf-delete-schema-1.1.yaml
@@ -0,0 +1,44 @@
+open_cli_schema_version: 1.0
+name: vnf-delete
+description: delete a VNF
+version: onap-1.1
+service:
+ name: mso
+ version: v2
+ auth: basic
+ mode: direct
+
+parameters:
+ - name: vnf-instance-id
+ description: id for vnf
+ type: string
+ short_option: x
+ long_option: vnf-instace-id
+ is_optional: false
+ - name: service-instance-id
+ description: unique id for service instance
+ type: string
+ short_option: y
+ long_option: service-instace-id
+ is_optional: false
+ - name: lcp-cloudregion-id
+ description: AIC LCP node location identifier
+ type: string
+ short_option: l
+ long_option: lcp-cloudregion-id
+ is_optional: false
+ - name: tenant-id
+ description: openstack tenant id (uuid)
+ type: string
+ short_option: z
+ long_option: tenant-id
+ is_optional: false
+
+http:
+ request:
+ uri: ecomp/mso/infra/serviceInstances/v2/${service-instance-id}/vnfs
+ method: DELETE
+ body: '{"requestDetails":{"modelInfo":{"modelType":"vnf","modelInvariantId":"ff5256d1-5a33-55df-13ab-12abad84e7ff","modelName":"vSAMP12","modelVersion":"1"},"cloudConfiguration":{"lcpCloudRegionId":"mdt1","tenantId":"88a6ca3ee0394ade9403f075db23167e"},"requestInfo":{"source":"VID"},"requestParameters":{"userParams":[]}}}'
+
+ success_codes:
+ - 202 \ No newline at end of file