Use a graph model to translate tosca to target language

Registered by Julio Ruano

Currently the translation of TOSCA to the target HOT template is brute force iteration over the YAML representation of the TOSCA source. This makes for logic that is very rigid in generating the HOT resources, in that it incorporates deep conditional checks for processing. This blueprint proposes the use of a graph data structure to represent the relationships between all of the nodes in the TOSCA template. Currently there is a graph data structure in the tosca parser, but it is not incorporated into the translator. The goal here will be to leverage this existing graph data structure in the parser from the translation code, and to adjust it as needed.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Low
Drafter:
Julio Ruano
Direction:
Needs approval
Assignee:
None
Definition:
Discussion
Series goal:
None
Implementation:
Not started
Milestone target:
None

Related branches

Sprints

Whiteboard

Google doc covering the design thoughts behind this blueprint:

https://docs.google.com/document/d/1hPvKZzHHdwLhI0_8PUguNEyB7EZwaxTGGXGl9owphQs/edit?usp=sharing

Deliverables for this module include the following:
- Updates to the core translation modules:
    - tosca_translator, translate_inputs, translate_node_templates, and translate_outputs in order to
      use the tosca parser graph data structure. Also potentially hot_resource module

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.