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_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()
41 def run_import_onap():
42 onap_candidate = get_onap()
47 sol_candidate = get_sol()
51 if __name__ == '__main__':
52 run_import_normative()