This page describes the changes that will be made to REST API's exposed by PAP (Policy Administration Component) in Honolulu release of ONAP.

POLICY-2526Policy deployment API will be enhanced to reflect actual policy deployment status in PDPs

Policy deployment API in PAP is implemented to return 200 response code if the initial checks in PAP are successful and a relevant PDP_UPDATE message is added to the dmaap topic for PDP's to consume. This way in case of error while performing the deployment in PDP engine, the client might still have the perception that the policy deployment went fine.

Hence, the deployment API needs to be enhanced to reflect actual policy deployment status in PDP engine.

Proposed Solution

Change the following API's to return "202 Accepted" instead of "200 Success":

  1. Deployment Update - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deployments%20Update
  2. Deploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Deploy%20Policy
  3. Undeploy Policy - https://docs.onap.org/projects/onap-policy-parent/en/latest/pap/pap.html#Undeploy%20Policy

Add the following API's to return the actual deployment or undeployment status:

  1. Swagger file for the new API's - deployed-policy-status-pap.json




  • No labels