aboutsummaryrefslogtreecommitdiffstats
path: root/run_basicvm_multicloud_yaml.py
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2020-09-04 17:03:23 +0200
committermrichomme <morgan.richomme@orange.com>2020-09-08 11:03:28 +0200
commit076a0030b70a875535f7fcabb7acafe7cf478746 (patch)
tree0f5a62fad16fa4fb930ae0436bf158c20d9ff6b1 /run_basicvm_multicloud_yaml.py
parent6022ac2e68ece3720bcfa57b290d73ac0eb238c1 (diff)
Support non multicloud configuration
Add tenant and availability zone manually It is done by multicloud in multicloud mode Use settings.py as the main settings and specific settings per use case Issue-ID: TEST-256 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I3a66a8416cddb546780f784568e7a88f2bd1781b Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'run_basicvm_multicloud_yaml.py')
-rw-r--r--run_basicvm_multicloud_yaml.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/run_basicvm_multicloud_yaml.py b/run_basicvm_multicloud_yaml.py
new file mode 100644
index 0000000..22bdb25
--- /dev/null
+++ b/run_basicvm_multicloud_yaml.py
@@ -0,0 +1,14 @@
+import logging.config
+from onapsdk.configuration import settings
+from onaptests.steps.instantiate.service_ala_carte import YamlTemplateServiceAlaCarteInstantiateStep
+
+
+
+if __name__ == "__main__":
+ # logging configuration for onapsdk, it is not requested for onaptests
+ # Correction requested in onapsdk to avoid having this duplicate code
+ logging.config.dictConfig(settings.LOG_CONFIG)
+
+ service_inst = YamlTemplateServiceAlaCarteInstantiateStep()
+ #service_inst = ServiceAlaCarteInstantiateStep()
+ service_inst.execute()