@@ -256,7 +260,7 @@ class SecurityOperations(Resource):
returnbad_request_error(detail="Bad Param",cause="Detected Bad format of param",invalid_params=[{"param":"notificationDestination","reason":"Not valid URL format"}])
returnbad_request_error(detail="Bad Param",cause="Detected Bad format of param",invalid_params=[{"param":"notificationDestination","reason":"Not valid URL format"}])
"Not found service with this interface description: "+json.dumps(clean_empty(service_instance.interface_details.to_dict())))
"Not found service with this interface description: "+json.dumps(clean_empty(service_instance.interface_details.to_dict())))
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")
@@ -306,28 +313,95 @@ class SecurityOperations(Resource):
#
#
# To achieve this, we need to setup at config which domains or IPs are CAPIF-2e or CAPIF-2, and then we need to check if the domain or IP of the service is in the list.
# To achieve this, we need to setup at config which domains or IPs are CAPIF-2e or CAPIF-2, and then we need to check if the domain or IP of the service is in the list.
# If not, inherit the methods from the profile (if any)
elifprofile_methods:
interface_methods.update(profile_methods)
# After processing all interfaces, use the combined set
valid_security_methods.update(interface_methods)
else:
current_app.logger.debug("No interfaces found in AEF profile.")
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")
"Not found service with this interface description: "+json.dumps(clean_empty(service_instance.interface_details.to_dict())))
"Not found service with this interface description: "+json.dumps(clean_empty(service_instance.interface_details.to_dict())))
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")
# If not, inherit the methods from the profile (if any)
elifprofile_methods:
interface_methods.update(profile_methods)
# After processing all interfaces, use the combined set
valid_security_methods.update(interface_methods)
else:
current_app.logger.debug("No interfaces found in AEF profile.")
returnnot_found_error(detail=f"Service with interfaceDescription {json.dumps(clean_empty(service_instance.interface_details.to_dict()))} not found",cause="Not found Service")