Versions Compared

Key

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

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

  • Openstack Tosca Parser API: (Python)

...

  •       

0) installation nfv-toscaparser

                      Firstly, uninstall the previous verson of toscaparser  

                           pip uninstall -y tosca-parser

                      Then install nfv-toscaparser :

                           pip install --pre -U nfv-toscaparser 

1) use cli, which is used to validate tosca simple based service template. It can be used as:

...

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


  2) 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, 

...