- Subnet type is being converted to lower case
before sending the request to HAS which creates
problems while sending the solution back to SO
- Fix typo in the response(slice_profiles)
Issue-ID: OPTFRA-870
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I4e2d8d28a16e90087a7fcc71c302ebd95833e8fc
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
return {
'existingNSI': False,
'newNSISolution': {
- 'slice_profiles': self.get_slice_profiles_from_candidate(candidate, subnets)
+ 'sliceProfiles': self.get_slice_profiles_from_candidate(candidate, subnets)
}
}
{
"existingNSI": false,
"newNSISolution": {
- "slice_profiles": [
+ "sliceProfiles": [
{
"domainType": "AN",
"resourceSharingLevel": "shared",
}
}
]
-}
\ No newline at end of file
+}