Refactoring the sdc-BE-init python scripts
[sdc.git] / catalog-be / src / main / resources / scripts / sdcBePy / tosca / upgrade / runUpgradeNormative.py
1 #!/usr/bin/env python3
2
3 from sdcBePy.tosca.imports.runNormativeType import run
4 from sdcBePy.tosca.models.normativeToUpdateList import get_heat, get_normative, get_nfv, get_onap, get_sol
5 from sdcBePy.tosca.models.normativeTypesList import get_heat1707, get_heat1702_3537, get_heat_version
6 from sdcBePy.tosca.upgrade.run import get_all_types
7
8 all_types = get_all_types()
9
10
11 def run_upgrade_heat():
12     normative_candidate = get_heat(all_types)
13     run(normative_candidate)
14
15
16 def run_upgrade_normative():
17     normative_candidate = get_normative(all_types)
18     run(normative_candidate)
19
20
21 def run_upgrade_nfv():
22     normative_candidate = get_nfv(all_types)
23     run(normative_candidate)
24
25
26 def run_upgrade_onap():
27     normative_candidate = get_onap(all_types)
28     run(normative_candidate)
29
30
31 def run_upgrade_sol():
32     normative_candidate = get_sol(all_types)
33     run(normative_candidate)
34
35
36 def run_upgrade_heat1707():
37     normative_candidate = get_heat1707()
38     run(normative_candidate)
39
40
41 def run_upgrade_heat1707_3537():
42     normative_candidate = get_heat1702_3537()
43     run(normative_candidate)
44
45
46 def run_upgrade_heat_version():
47     normative_candidate = get_heat_version()
48     run(normative_candidate)
49
50
51 if __name__ == '__main__':
52     run_upgrade_heat()
53     # run_upgrade_normative()
54     # run_upgrade_nfv()
55     # run_upgrade_onap()
56     # run_upgrade_sol()
57     # run_upgrade_heat1707()
58     # run_upgrade_heat1707_3537()
59     # run_upgrade_heat_version()