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, tls_cert, tls_key, tls_key_pw, ca_cert = get_args()
13 process_and_create_normative_types(candidate,
18 tls_cert, tls_key, tls_key_pw, ca_cert,
19 update_version=update_version,
21 exit_on_success=exit_on_success)
22 except AttributeError:
27 def run_import_normative():
28 normative_candidate = get_normative()
29 run(normative_candidate)
32 def run_import_heat():
33 heat_candidate = get_heat()
38 nfv_candidate = get_nfv()
41 def run_import_nfv_2_7_1():
42 nfv_candidate = get_nfv_2_7_1()
45 def run_import_nfv_3_3_1():
46 nfv_candidate = get_nfv_3_3_1()
49 def run_import_nfv_4_1_1():
50 nfv_candidate = get_nfv_4_1_1()
53 def run_import_onap():
54 onap_candidate = get_onap()
59 sol_candidate = get_sol()
63 if __name__ == '__main__':
64 run_import_normative()