You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Policy - CDS integration for PNF is tested using drools-pdp.

For testing purposes, a PNF simulator is used. Also a CBA blueprint file used in a PM use case is modified and uploaded to CDS, so that Drools-PDP can make the required request to CDS.

Steps happening in the flow:

  1. Drools-PDP read  the ONSET event from unauthenticated.DCAE_CL_OUTPUT DMaaP topic
  2. Based out of the event, a request is made to CDS using the CDS Actor by Drools-PDP, where the action is "create-subscription"
  3. CDS then does it's job, like fetching the PNF details from AAI etc and finally the new subscription is added to the PNF.
  4. Drools-PDP receives corresponding response from CDS, the results are logged as well to POLICY-CL-MGT topic.


Setting up the environment for testing:

Setting up the PNF simulator:

  1. git clone "https://gerrit.onap.org/r/integration
  2. cd integration/test/mocks/pmsh-pnf-sim/docker-compose
  3. Run the docker containers. Use the docker-compose command, or run them directly.

Populate AAI with PNF data:

Curl command to populate AAI with PNF details
curl -k -X PUT --user 'AAI:AAI' \
  https://<ip>:<port>/aai/v15/network/pnfs/pnf/<pnf_name> \
  -H 'Content-Type: application/json' \
  -H 'X-FromAppId: dcae-curl' \
  -H 'x-transactionId: 9998' \
  -d '{
    "pnf-name": "<pnf_name>",
    "pnf-name2-source": "example-pnf-name2-source-val-99275",
    "pnf-id": "927b2580-36d9-4f13-8421-3c9d43b7a57e",
    "equip-type": "example-equip-type-val-20348",
    "equip-vendor": "example-equip-vendor-val-52182",
    "equip-model": "example-equip-model-val-8370",
    "management-option": "example-management-option-val-72881",
    "ipaddress-v4-oam": "<pnf-ip>",
    "ipaddress-v6-oam": "",
    "orchestration-status": "Active"
}'


  • No labels