Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  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:

Code Block
languagetext
titleCurl command to populate AAI with PNF details
collapsetrue
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"
}'