diff options
Diffstat (limited to 'apps/slice_selection')
-rw-r--r-- | apps/slice_selection/optimizers/conductor/remote_opt_processor.py | 2 | ||||
-rw-r--r-- | apps/slice_selection/optimizers/conductor/response_processor.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/slice_selection/optimizers/conductor/remote_opt_processor.py b/apps/slice_selection/optimizers/conductor/remote_opt_processor.py index 432655b..0fbf36e 100644 --- a/apps/slice_selection/optimizers/conductor/remote_opt_processor.py +++ b/apps/slice_selection/optimizers/conductor/remote_opt_processor.py @@ -114,7 +114,7 @@ class SliceSelectionOptimizer(Thread): subnet_capabilities = self.request_json.get('subnetCapabilities') if subnet_capabilities: for subnet_capability in subnet_capabilities: - domain_type = f"{subnet_capability['domainType'].lower().replace('-', '_')}_" + domain_type = f"{subnet_capability['domainType']}_" capability_details = subnet_capability['capabilityDetails'] for key, value in capability_details.items(): request_params[f"{domain_type}{camel_to_snake[key]}"] = value diff --git a/apps/slice_selection/optimizers/conductor/response_processor.py b/apps/slice_selection/optimizers/conductor/response_processor.py index 71a350f..d2c949b 100644 --- a/apps/slice_selection/optimizers/conductor/response_processor.py +++ b/apps/slice_selection/optimizers/conductor/response_processor.py @@ -67,7 +67,7 @@ class ResponseProcessor(object): return { 'existingNSI': False, 'newNSISolution': { - 'slice_profiles': self.get_slice_profiles_from_candidate(candidate, subnets) + 'sliceProfiles': self.get_slice_profiles_from_candidate(candidate, subnets) } } |