""" Specific ubuntu16 with multicloud and yaml config scenario."""
USE_MULTICLOUD = True
-
+# Set ONLY_INSTANTIATE to true to run an instantiation without repeating
+# onboarding and related AAI configuration (Cloud config)
+ONLY_INSTANTIATE= False
VENDOR_NAME = "sdktests_vendor"
SERVICE_NAME = "ubuntu16test" # must be the same as in YAML
# pylint: disable=bad-whitespace
# The ONAP part
USE_MULTICLOUD = False
+# Set ONLY_INSTANTIATE to true to run an instantiation without repeating
+# onboarding and related AAI configuration (Cloud config)
+ONLY_INSTANTIATE= False
SERVICE_YAML_TEMPLATE = "templates/vnf-services/ubuntu16test-service.yaml"
CLEANUP_FLAG = True
CLEANUP_ACTIVITY_TIMER = 10 # nb of seconds before cleanup in case cleanup option is set
- ConnectServiceSubToCloudRegionStep.
"""
super().__init__(cleanup=cleanup)
- self.add_step(ServiceOnboardStep(cleanup))
- self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
+ if not settings.ONLY_INSTANTIATE:
+ self.add_step(ServiceOnboardStep(cleanup))
+ self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
def execute(self):
"""Instantiate service.
self._yaml_template: dict = None
self._service_instance_name: str = None
self._service_instance: str = None
-
- self.add_step(YamlTemplateServiceOnboardStep(cleanup))
- self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
+ if not settings.ONLY_INSTANTIATE:
+ self.add_step(YamlTemplateServiceOnboardStep(cleanup))
+ self.add_step(ConnectServiceSubToCloudRegionStep(cleanup))
@property
def yaml_template(self) -> dict: