blob: 8dc9561ca4453c1575577dab0f13919b4e831d0f [file] [log] [blame]
Stone, Avi (as206k)879e94b2018-04-12 16:41:45 +03001#Author: Shu Shi
2#emaiL: shushi@research.att.com
3
4from toscalib.tosca_workbook import ToscaWorkBook
5
6workbook = ToscaWorkBook()
7
8workbook._import_dir('./data/tosca_model/')
9workbook._import_dir('./data/shared_model/')
10
11workbook._use('foi', 'NO_PREFIX')
12workbook._assign('policy_0', 'policy_id', 'something_filled_by_CLAMP')
13
14workbook._export_yaml('test_template.yaml', 'noexpand,main,rawfunc')
15
16workbook._add_shared_node([{'dcae.capabilities.dockerHost': 'docker_host'}, {'dcae.capabilities.composition.host': 'composition_virtual'}])
17
18workbook._load_translation_db('./data/tosca_model/')
19workbook._load_translation_db('./data/shared_model/')
20
21workbook._export_yaml('./data/blueprint/foi.yaml', 'cloudify,main')
22#workbook._export_yaml('test_template2.yaml', 'noexpand,main,rawfunc')
23
24