aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/steps/instantiate/vl_ala_carte.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/onaptests/steps/instantiate/vl_ala_carte.py')
-rw-r--r--src/onaptests/steps/instantiate/vl_ala_carte.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/onaptests/steps/instantiate/vl_ala_carte.py b/src/onaptests/steps/instantiate/vl_ala_carte.py
index 75dcdb9..3bb293a 100644
--- a/src/onaptests/steps/instantiate/vl_ala_carte.py
+++ b/src/onaptests/steps/instantiate/vl_ala_carte.py
@@ -7,7 +7,6 @@ from onapsdk.aai.business import Customer, ServiceInstance, ServiceSubscription
from onapsdk.configuration import settings
from onapsdk.so.instantiation import Subnet
from onapsdk.sdc.service import Service
-from onapsdk.vid import LineOfBusiness, Platform
import onaptests.utils.exceptions as onap_test_exceptions
from ..base import YamlTemplateBaseStep
@@ -130,14 +129,12 @@ class YamlTemplateVlAlaCarteInstantiateStep(YamlTemplateBaseStep):
service_subscription: ServiceSubscription = customer.get_service_subscription_by_service_type(self.service_name)
service_instance: ServiceInstance = service_subscription.get_service_instance_by_name(self.service_instance_name)
self._service_instance = service_instance
- line_of_business: LineOfBusiness = LineOfBusiness(settings.LINE_OF_BUSINESS)
- platform: Platform = Platform(settings.PLATFORM)
for idx, network in enumerate(service.networks):
#for network in self.yaml_template[self.service_name]["networks"]:
net_instantiation = service_instance.add_network(
network,
- line_of_business,
- platform,
+ settings.LINE_OF_BUSINESS,
+ settings.PLATFORM,
network_instance_name=f"{self.service_instance_name}_net_{idx}",
subnets=self.get_subnets(network.name))
try: