host=gerrit.onap.org
port=29418
project=cli.git
-defaultbranch=master
\ No newline at end of file
+defaultbranch=london
\ No newline at end of file
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2017 Huawei Technologies Co., Ltd.
+:orphan:
+
.. _OCLIP:
Open CLI Platform (OCLIP)
ONAP CLI deployment is enabled with OOM and HEAT based ONAP installation.
OpenStack HEAT based deployment
-------------------------------
+-------------------------------
As part of HEAT based deployment, ONAL CLI docker image is integrated into ONAP Portal and when portal_vm is
successfully installed, it will be available at http://portal.api.simpledemo.openecomp.org:8080
Once successfully installed, CLI is available under onap-cli name-space. So user can access the CLI at
http://<k8s-host>:30260
-
.. image:: images/portal-cli-arch.png
* **Command Registrar** : Registrar keeps track of the commands registered in OCLIP and when user invokes the command,
-it identifies the corresponding command and helps to invoke the corresponding command plug-in.
+ it identifies 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.
+ them into Registrar.
* **Command Plug-in** : Implement the command as plug-in. More details :ref:`cli_developer_guide`
* **Cache** : Provides persistent storage for discoverer to store the meta-data about the discovered Commands.
* **open cli schemas** : Set of command YAML provides the CLI definitions.
+
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Huawei Technologies Co., Ltd.
+:orphan:
.. toctree::
:maxdepth: 2
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Huawei Technologies Co., Ltd.
+:orphan:
.. toctree::
:maxdepth: 2
- license-group-show
------------------------------------------------
-
+license-group-show
+------------------
usage: oclip license-group-show
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Huawei Technologies Co., Ltd.
-.. _cli_cmd_sample:
+.. _cli_cmd_sample_amsterdam:
onap-amsterdam
project = "onap"
-release = "master"
-version = "master"
+release = "london"
+version = "london"
+branch = 'london'
author = "Open Network Automation Platform"
# yamllint disable-line rule:line-length
copyright = "ONAP. Licensed under Creative Commons Attribution 4.0 International License"
+exclude_patterns = [
+ '.tox'
+]
+
pygments_style = "sphinx"
html_theme = "sphinx_rtd_theme"
html_theme_options = {
# Change to {releasename} after you have created the new 'doc' branch.
#
-branch = 'latest'
-
intersphinx_mapping = {}
doc_url = 'https://docs.onap.org/projects'
master_doc = 'index'
-exclude_patterns = ['.tox']
-
spelling_word_list_filename='spelling_wordlist.txt'
spelling_lang = "en_GB"
Linux Command Shell
-------------------
It is available when user has access to the server where CLI is installed using zip or docker container.
-In this mode, user can use CLI in scripting mode or interactive mode as mentioned in :ref:`user_guide`
+In this mode, user can use CLI in scripting mode or interactive mode as mentioned in :ref:`cli_user_guide`
.. image:: images/portal-cli-shell.png
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2017 Huawei Technologies Co., Ltd.
+:orphan:
+
.. _open_cli_schema_version_1_0:
Open Command Line Interface (CLI) Schema Version (OCS) 1.0
parameters
----------
+----------
Every command has set of arguments to provide the input values and *parameters*
section allows to add the required arguments details such as name, description,
etc as list of entries.
section default_parameters
--------------------
+
request
~~~~~~~
*request* section captures all HTTP request information as:
1. Enabled auto discover and registration of products functionalities as commands
-2. Profile managment commands are added
+2. Profile management commands are added
*Security Notes*
CLI code has been formally scanned during build time using NexusIQ and all Critical vulnerabilities
have been addressed, items that remain open have been assessed for risk and determined to be false
positive. The CLI open Critical security vulnerabilities and their risk assessment have been
-documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=45298770>`_.
+documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=45298770>`__.
Quick Links:
- `CLI project page <https://wiki.onap.org/display/DW/Command+Line+Interface+Project>`_
- `Passing Badge information for CLI <https://bestpractices.coreinfrastructure.org/en/projects/1540>`_
- - `Project Vulnerability Review Table for CLI <https://wiki.onap.org/pages/viewpage.action?pageId=45298770>`_
+ - `Project Vulnerability Review Table for CLI <https://wiki.onap.org/pages/viewpage.action?pageId=45298770>`__
Version: 2.0.0
In addition, it made following changes to OCS 1.0
* http profile is enabled with service section to capture micro-service catalog and auth information
-and body section could be customized using context.
+ and body section could be customized using context.
* New default parameters verify and context are added.
CLI code has been formally scanned during build time using NexusIQ and all Critical vulnerabilities
have been addressed, items that remain open have been assessed for risk and determined to be false
positive. The CLI open Critical security vulnerabilities and their risk assessment have been
-documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=28377287>`_.
+documented as part of the `project <https://wiki.onap.org/pages/viewpage.action?pageId=28377287>`__.
Quick Links:
- `CLI project page <https://wiki.onap.org/display/DW/Command+Line+Interface+Project>`_
- `Passing Badge information for CLI <https://bestpractices.coreinfrastructure.org/en/projects/1540>`_
- - `Project Vulnerability Review Table for CLI <https://wiki.onap.org/pages/viewpage.action?pageId=28377287>`_
+ - `Project Vulnerability Review Table for CLI <https://wiki.onap.org/pages/viewpage.action?pageId=28377287>`__
Version: 1.1.0
--------------
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
- -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
+ -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=london
commands =
- sphinx-build -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
+ sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./ {toxinidir}/_build/html
echo "Generated docs available in {toxinidir}/_build/html"
-whitelist_externals =
+allowlist_externals =
echo
git
sh
#deps = -r{toxinidir}/requirements-docs.txt
commands = echo "Link Checking not enforced"
#commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./ {toxinidir}/_build/linkcheck
-whitelist_externals = echo
+allowlist_externals = echo
[testenv:docs-spellcheck]
basepython = python3.8
deps =
-r{toxinidir}/requirements-docs.txt
-chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
- -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=master
+ -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt?h=london
commands =
sphinx-build -W -q -b spelling -d {envtmpdir}/doctrees {toxinidir} {toxinidir}/_build/spellcheck