Add documents for apigateway.
JIRA:PARSER-123
Change-Id: Ibe8ebd6e3a3f62d58d8da0da4d9be8ceb673fb7b
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
--- /dev/null
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
+=================
+Parser apigateway
+=================
+
+This document provides a description of apigateway, a message relay submodule for the other
+parser submodules.
+
+.. contents::
+ :depth: 3
+ :local:
+
+Overview
+--------
+Provide unified access interfaces for follow independent parser components:
+ - tosca2heat
+ - yang2tosca
+ - policy2tosca
+ - verigraph
+ - parser ui
+ The apigateway will relay message between above submodules throngh gRPC interface, in additon,
+apigateway also exposes restful api to provide parser all functions to the 3rd applications.
+
+
+Architecture
+------------
+Apigateway exploits three sub-components:
+
+- **APIGW**, the main part of apigateway, which is the message center.
+- **gRPC**, provide gRPC client and server for the other parser sub-modules, it can be devided
+into defferent pair of client/server according to the function.
+- **CLI**, command line tool for apigateway access and management .
+
+Apigateway architecture is shown below:
+
+.. image:: /images/API_gateway_architecture.png
yang2tosca.rst
policy2tosca.rst
verigraph.rst
+ apigateway.rst
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
-===================
+==================
Parser polic2tosca
-===================
+==================
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
-===================
+=================
Parser tosca2heat
-===================
+=================
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
-=================
+================
Parser verigraph
-=================
+================
This document provides a description of VeriGraph, a formal verification tool for service graphs.
:local:
Introduction
----------------
+------------
In NFV, various templates (such as descriptors, records and so on) are utilized
to describe the deployment requirements (such as basic VM requirements – vCPU,
used in IaaS orchestration projects like OpenStack Heat.
For Arno Release
-------------------------
+----------------
Parser is not one of the Arno Release projects, however the project has established
the code base for the later releases:
* Initial documentation on use cases
Upgrades from Arno Release
-------------------------
+--------------------------
For Brahmaputra Release, Parser offers the following additional capabilities:
scenario. See also https://wiki.opnfv.org/parser.
Upgrades from Brahmaputra Release
------------------------
+---------------------------------
For Colorado Release, Parser offers the following additional capabilities:
:local:
Use Case Description
----------------
+--------------------
* When Operators want to do automation on utilizing VIM to manage hypervisor
level accelerators which VNFs don't have knowledge of, certain templates
Parser tosca2heat Installation
-============================
+==============================
Please follow the below installation steps to install tosca2heat submodule in parser.
python setup.py
Step 4: install python-lxml
---------------
+---------------------------
Please follow the below installation link. http://lxml.de/installation.html
Step3: Follow the instructions in README.rst for downloading verigraph
dependencies and for installing verigraph.
+
+
+Parser apigateway Installation
+==============================
+
+In the present release, apigateway requires that the following software is also installed:
+
+ - grpcio (https://github.com/golang/protobuf/protoc-gen-go)
+
+Please follow the below installation steps to install apigateway submodule in parser.
+
+Step 1: Clone the parser project.
+
+.. code-block:: bash
+
+ git clone https://gerrit.opnfv.org/gerrit/parser
+
+Step 2: Install the apigateway submodule.
+
+.. code-block:: bash
+
+ # change directory to apigateway
+ cd parser/apigateway
+
+ # install requirements
+ pip install -r requirements.txt
+
+ # install apigateway
+ python setup.py install
+
+**Notes**: In release D, apigateway submodule is only initial framework code, and more feature will
+be provided in the next release.
\ No newline at end of file
| **JIRA REFERENCE** | **SLOGAN** |
| | |
+--------------------------------------+--------------------------------------+
-| | |
+| PARSER-111 | Verigraph Code Base |
+--------------------------------------+--------------------------------------+
-| | |
+| PARSER-112 | Init api gateway framework |
+--------------------------------------+--------------------------------------+
-| PARSER-111 | Verigraph Code Base |
-| | |
+| PARSER-113 | Add input validation test case |
++--------------------------------------+--------------------------------------+
+| PARSER-114 | Add output in vRNC for substitution |
+| | mappings. |
++--------------------------------------+--------------------------------------+
+| PARSER-115 | Add output validation for |
+| | substitution. |
++--------------------------------------+--------------------------------------+
+| PARSER-116 | Add output validation test case for |
+| | substitution. |
++--------------------------------------+--------------------------------------+
+| PARSER-121 | Add ip output in compute node |
+--------------------------------------+--------------------------------------+
| **JIRA REFERENCE** | **SLOGAN** |
| | |
+--------------------------------------+--------------------------------------+
-| | |
+| PARSER-117 | Fix ci bug when integrated with |
+| | functest |
+--------------------------------------+--------------------------------------+
-| | |
+| PARSER-122 | Fix docs bug |
+--------------------------------------+--------------------------------------+
Deliverables
- yang2tosca
- policy2tosca
- verigraph
+- apigateway
Documentation deliverables
^^^^^^^^^^^^^^^^^^^^^^^^^^