Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


3 TOSCA Parsers

...

There are three TOSCA parsers submited into modeling project, their API are listed below:


1. 

...

NFV Tosca Parser API: (Python Lib + CLI + REST API)      

         Implementation of nfv-toscaparser derived from openstack tosca parser is based on the following OASIS specification:

             TOSCA Simple Profile YAML 1.2 Referecne  http://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.2/TOSCA-Simple-Profile-YAML-v1.2.html

             TOSCA Simple Profile YAML NFV 1.0 Referecne  http://docs.oasis-open.org/tosca/tosca-nfv/v1.0/tosca-nfv-v1.0

...

.html

  • 1)  CLI
    •  Installation nfv-toscaparser

                      Firstly, uninstall the previous verson of toscaparser  

...

                           pip install --pre -U nfv-toscaparser 

...

    • Use cli, which is used to validate tosca simple based service template. It can be used as:

        tosca-parser --template-file=<path to the YAML template>  [--nrpv]  [--debug]

...

     --debug debug mode for print more details other than raise exceptions when errors happen 


  • 2

...

  • )  Library(Python)
    •    Installation nfv-toscaparser, same as CLI;
    •    Use api, which is used to parse and get the result of service template. it can be used as

   ToscaTemplate(path=None, parsed_params=None, a_file=True, yaml_dict_tpl=None, 

...

                                          no_required_paras_valid=False, debug=False )


  • 3) REST API
    •    Installation nfv-toscaparser microservice, and run it;
    •    Use Restfual API


2. Apache ARIA-TOSCA(Python + CLI + REST API):

...