5 from sdcBePy.common.normative.toscaTypes import process_and_create_normative_types
6 from sdcBePy.tosca.main import get_args, usage
7 from sdcBePy.tosca.models.normativeTypesList import get_normative, get_heat, get_nfv, get_nfv_2_7_1, get_nfv_3_3_1, get_nfv_4_1_1, get_onap, get_sol
10 def run(candidate, exit_on_success=True):
11 scheme, be_host, be_port, admin_user, update_version, debug = get_args()
13 process_and_create_normative_types(candidate,
18 update_version=update_version,
20 exit_on_success=exit_on_success)
21 except AttributeError:
26 def run_import_normative():
27 normative_candidate = get_normative()
28 run(normative_candidate)
31 def run_import_heat():
32 heat_candidate = get_heat()
37 nfv_candidate = get_nfv()
40 def run_import_nfv_2_7_1():
41 nfv_candidate = get_nfv_2_7_1()
44 def run_import_nfv_3_3_1():
45 nfv_candidate = get_nfv_3_3_1()
48 def run_import_nfv_4_1_1():
49 nfv_candidate = get_nfv_4_1_1()
52 def run_import_onap():
53 onap_candidate = get_onap()
58 sol_candidate = get_sol()
62 if __name__ == '__main__':
63 run_import_normative()