From 7799e20dcecf6cb0033d7e88846923f417e45823 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:09:40 +0530 Subject: Disable debug while starting cli in ALL mode Issue-ID: CLI-100 Change-Id: I7cc2af54988103b93016ac84c54fd23cf9b14eb2 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/docker/src/main/docker/docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/docker/src/main/docker/docker-compose.yaml b/deployment/docker/src/main/docker/docker-compose.yaml index 9ca3cf49..944c2d71 100644 --- a/deployment/docker/src/main/docker/docker-compose.yaml +++ b/deployment/docker/src/main/docker/docker-compose.yaml @@ -30,7 +30,7 @@ services: image: onap/cli environment: OPEN_CLI_MODE: 'daemon' - OPEN_CLI_DEBUG: "true" + OPEN_CLI_DEBUG: "false" ports: - 30260:80 - 30261:8080 -- cgit 1.2.3-korg From 29a4e904cad012a1ba8bf8ca2c1e7961c3492fac Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:13:20 +0530 Subject: Add onap cmd alias to oclip Issue-ID: CLI-100 Change-Id: I30b9e0ecc7f95722da571600b75a3363e2803937 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/zip/installer/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deployment/zip/installer/install.sh b/deployment/zip/installer/install.sh index ae702271..4503c371 100644 --- a/deployment/zip/installer/install.sh +++ b/deployment/zip/installer/install.sh @@ -28,8 +28,11 @@ chmod +x ./bin/oclip.sh #Make oclip available in path ln -sf ./bin/oclip.sh /usr/bin/oclip +ln -sf ./bin/oclip.sh /usr/bin/onap #Print the version oclip -v +onap -v + cd - \ No newline at end of file -- cgit 1.2.3-korg From 00869832d95abaa7626331c35c9b39afade818df Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:16:37 +0530 Subject: Set logging level to INFO by default Issue-ID: CLI-100 Change-Id: I7acab8c07685207bc6d2357a8ed5151c829d5b3b Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/zip/src/main/release/conf/log4j.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/zip/src/main/release/conf/log4j.properties b/deployment/zip/src/main/release/conf/log4j.properties index f117ef6e..a0324a9b 100644 --- a/deployment/zip/src/main/release/conf/log4j.properties +++ b/deployment/zip/src/main/release/conf/log4j.properties @@ -1,4 +1,4 @@ -log4j.rootLogger=ERROR, file +log4j.rootLogger=INFO, file # Redirect log messages to a log file, support file rolling. log4j.appender.file=org.apache.log4j.RollingFileAppender -- cgit 1.2.3-korg From 3da505092615834c333407a5fd8d4fc444d9b628 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:17:14 +0530 Subject: Set CLI version to 2.0.0 Issue-ID: CLI-100 Change-Id: Id22e629ac57046d363783181c05afebec390ac1a Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/zip/src/main/release/conf/open-cli.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployment/zip/src/main/release/conf/open-cli.properties b/deployment/zip/src/main/release/conf/open-cli.properties index 9b5bceeb..2d68edf8 100644 --- a/deployment/zip/src/main/release/conf/open-cli.properties +++ b/deployment/zip/src/main/release/conf/open-cli.properties @@ -1,5 +1,5 @@ cli.product_name=open-cli -cli.version=1.0 +cli.version=2.0.0 cli.discover_always=false -- cgit 1.2.3-korg From bdc5841fb330703f9ea79873c64589f5aa6fc9e1 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:21:01 +0530 Subject: Add onap cmd alias in CLI docker Issue-ID: CLI-100 Change-Id: Iae51b3c6e79be7308ee41698d65dd7c9136ade23 Signed-off-by: Kanagaraj Manickam k00365106 --- deployment/docker/src/main/docker/Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile index 074bb164..d6bd9389 100644 --- a/deployment/docker/src/main/docker/Dockerfile +++ b/deployment/docker/src/main/docker/Dockerfile @@ -29,8 +29,6 @@ RUN apt-get update && apt-get install -y lighttpd git curl pandoc vim && \ cp $OPEN_CLI_HOME/http/web/*.* /var/www-data/servers/open-cli/ && \ cp $OPEN_CLI_HOME/http/lighttpd/10-proxy.conf /etc/lighttpd/conf-enabled/ && \ cp $OPEN_CLI_HOME/installer/cli-*.zip /var/www-data/servers/open-cli/oclip.zip - - EXPOSE 80 EXPOSE 8080 -- cgit 1.2.3-korg From 0e4c3d181ae30d3c86d79d6a17f0cd8f115c80da Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:23:30 +0530 Subject: Remove unused images in docs Issue-ID: CLI-100 Change-Id: I2df477bbd418a4f44f90cb3db1a5468447e5d957 Signed-off-by: Kanagaraj Manickam k00365106 --- docs/images/portal-cli-app-1.png | Bin 177080 -> 0 bytes docs/images/portal-cli-dowload-1.png | Bin 178221 -> 0 bytes docs/images/portal-cli-shell-1.png | Bin 76348 -> 0 bytes docs/images/portal-cli-web-con-1.png | Bin 121037 -> 0 bytes 4 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 docs/images/portal-cli-app-1.png delete mode 100644 docs/images/portal-cli-dowload-1.png delete mode 100644 docs/images/portal-cli-shell-1.png delete mode 100644 docs/images/portal-cli-web-con-1.png diff --git a/docs/images/portal-cli-app-1.png b/docs/images/portal-cli-app-1.png deleted file mode 100644 index 05ac8fbd..00000000 Binary files a/docs/images/portal-cli-app-1.png and /dev/null differ diff --git a/docs/images/portal-cli-dowload-1.png b/docs/images/portal-cli-dowload-1.png deleted file mode 100644 index f57cf204..00000000 Binary files a/docs/images/portal-cli-dowload-1.png and /dev/null differ diff --git a/docs/images/portal-cli-shell-1.png b/docs/images/portal-cli-shell-1.png deleted file mode 100644 index 696046e3..00000000 Binary files a/docs/images/portal-cli-shell-1.png and /dev/null differ diff --git a/docs/images/portal-cli-web-con-1.png b/docs/images/portal-cli-web-con-1.png deleted file mode 100644 index 87af9874..00000000 Binary files a/docs/images/portal-cli-web-con-1.png and /dev/null differ -- cgit 1.2.3-korg From 43f131a448e44409042a3c0f617c32fc86306957 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:28:02 +0530 Subject: Update the architecture document with cache Issue-ID: CLI-100 Change-Id: I3abfe1a58708d9be21d3a657d2eed834c2c3c5e3 Signed-off-by: Kanagaraj Manickam k00365106 --- docs/architecture.rst | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/architecture.rst b/docs/architecture.rst index 839fe6bb..771836d2 100644 --- a/docs/architecture.rst +++ b/docs/architecture.rst @@ -11,15 +11,20 @@ Following diagram shows the high-level architecture of OCLIP. .. image:: images/portal-cli-arch.png -* **Command Registrar** : Registrar keeps track of the commands registered in OCLIP and when user invokes the command, it identify - the corresponding command route the request to that command plug-in. +* **Command Registrar** : Registrar keeps track of the commands registered in OCLIP and when user invokes the command, +it identify the corresponding command and helps to invoke the corresponding command plug-in. -* **Command Discoverer** : Discoverer discovers the commands both in plug-in format and YAML and automatically register them into Registrar. +* **Command Discoverer** : Discoverer discovers the commands both in plug-in format and YAML and automatically register +them into Registrar. -* **Command Plug-ing** : Implement the command as plug-in. More details :ref:`cli_developer_guide` +* **Command Plug-in** : Implement the command as plug-in. More details :ref:`cli_developer_guide` * **HTTP Command** : Plug-in for implementing all Rest based command as YAML without any coding. * **Command Shell** : Provides the interactive command line console from Linux * **Web Command Console** : Provides the interactive command line console from web-browser + +* **Cache** : Provides an persistent storage for discoverer to store the meta-data about the discovered Commands. + +* **open cli schemas** : Set of command YAML provides the CLI definitions. -- cgit 1.2.3-korg From 60de9607d95ed3c0733e2dac436cc39da1d13289 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 10 Apr 2018 15:33:40 +0530 Subject: Update OCLIP commands details Issue-ID: CLI-100 Change-Id: Ib986931fd198e6ba993b89dff35795c27f0bcf3e Signed-off-by: Kanagaraj Manickam k00365106 --- docs/cmd_help.rst | 8 +++++--- framework/src/main/resources/open-cli-schema/schema-refresh.yaml | 2 +- framework/src/main/resources/open-cli-schema/schema-validate.yaml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/cmd_help.rst b/docs/cmd_help.rst index d5f69024..eee3f4af 100644 --- a/docs/cmd_help.rst +++ b/docs/cmd_help.rst @@ -10,7 +10,9 @@ .. _cli_cmd_help: open-cli -========================== + +Open CLI is the OCLIP platform facilitates creating the commands from YAMLs. Currently it supports commands +for refreshing the existing command YAMLs and validating the YAMLs. [1] schema-refresh ----------------------------------------------- @@ -18,7 +20,7 @@ open-cli usage: oclip schema-refresh -Oclip command to refresh schemas stored in open-cli-schema folders. +OCLIP command to refresh schemas stored in open-cli-schema folders. Product: open-cli Service: schema @@ -66,7 +68,7 @@ Error:: usage: oclip schema-validate -Oclip command to validate schema +OCLIP command to validate schema Product: open-cli Service: schema diff --git a/framework/src/main/resources/open-cli-schema/schema-refresh.yaml b/framework/src/main/resources/open-cli-schema/schema-refresh.yaml index 2a80cf7c..2e32b1be 100644 --- a/framework/src/main/resources/open-cli-schema/schema-refresh.yaml +++ b/framework/src/main/resources/open-cli-schema/schema-refresh.yaml @@ -1,6 +1,6 @@ open_cli_schema_version: 1.0 name: schema-refresh -description: Oclip command to refresh schemas stored in open-cli-schema folders. +description: OCLIP command to refresh schemas stored in open-cli-schema folders. info: product: open-cli diff --git a/framework/src/main/resources/open-cli-schema/schema-validate.yaml b/framework/src/main/resources/open-cli-schema/schema-validate.yaml index 98ac8c25..3453d2a9 100644 --- a/framework/src/main/resources/open-cli-schema/schema-validate.yaml +++ b/framework/src/main/resources/open-cli-schema/schema-validate.yaml @@ -1,6 +1,6 @@ open_cli_schema_version: 1.0 name: schema-validate -description: Oclip command to validate schema +description: OCLIP command to validate schema info: product: open-cli -- cgit 1.2.3-korg