2 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
3 .. http://creativecommons.org/licenses/by/4.0
16 PDP-D applications uses the PDP-D Engine middleware to provide domain specific services.
17 See :ref:`pdpd-engine-label` for the description of the PDP-D infrastructure.
19 At this time *Control Loops* are the only type of applications supported.
21 *Control Loop* applications must support the following *Policy Type*:
23 - **onap.policies.controlloop.operational.common.Drools** (Tosca Compliant Operational Policies)
28 Source Code repositories
29 ~~~~~~~~~~~~~~~~~~~~~~~~
31 The PDP-D Applications software resides on the `policy/drools-applications <https://git.onap.org/policy/drools-applications>`__ repository. The actor libraries introduced in the *frankfurt* release reside in
32 the `policy/models repository <https://git.onap.org/policy/models>`__.
34 At this time, the *control loop* application is the only application supported in ONAP.
35 All the application projects reside under the
36 `controlloop directory <https://git.onap.org/policy/drools-applications/tree/controlloop>`__.
41 See the *drools-applications*
42 `released versions <https://wiki.onap.org/display/DW/Policy+Framework+Project%3A+Component+Versions>`__
43 for the latest images:
47 docker pull onap/policy-pdpd-cl:1.8.2
49 At the time of this writing *1.8.2* is the latest version.
51 The *onap/policy-pdpd-cl* image extends the *onap/policy-drools* image with
52 the *usecases* controller that realizes the *control loop* application.
57 The `usecases <https://git.onap.org/policy/drools-applications/tree/controlloop/common/controller-usecases>`__
58 controller is the *control loop* application in ONAP.
60 There are three parts in this controller:
62 * The `drl rules <https://git.onap.org/policy/drools-applications/tree/controlloop/common/controller-usecases/src/main/resources/usecases.drl>`__.
63 * The `kmodule.xml <https://git.onap.org/policy/drools-applications/tree/controlloop/common/controller-usecases/src/main/resources/META-INF/kmodule.xml>`__.
64 * The `dependencies <https://git.onap.org/policy/drools-applications/tree/controlloop/common/controller-usecases/pom.xml>`__.
66 The `kmodule.xml` specifies only one session, and declares in the *kbase* section the two operational policy types that
69 The Usecases controller relies on the new Actor framework to interact with remote
70 components, part of a control loop transaction. The reader is referred to the
71 *Policy Platform Actor Development Guidelines* in the documentation for further information.
73 Operational Policy Types
74 ========================
76 The *usecases* controller supports the following policy type:
78 - *onap.policies.controlloop.operational.common.Drools*.
80 The *onap.policies.controlloop.operational.common.Drools*
81 is the Tosca compliant policy type introduced in *frankfurt*.
83 The Tosca Compliant Operational Policy Type is defined at the
84 `onap.policies.controlloop.operational.common.Drools <https://git.onap.org/policy/models/tree/models-examples/src/main/resources/policytypes/onap.policies.controlloop.operational.common.Drools.yaml>`__.
86 An example of a Tosca Compliant Operational Policy can be found
87 `here <https://git.onap.org/policy/models/tree/models-examples/src/main/resources/policies/vDNS.policy.operational.input.tosca.json>`__.
92 The *usecases* controller supports chaining of multiple operations inside a Tosca Operational Policy. The next operation can be chained based on the result/output from an operation.
93 The possibilities available for chaining are:
95 - *success: chain after the result of operation is success*
96 - *failure: chain after the result of operation is failure due to issues with controller/actor*
97 - *failure_timeout: chain after the result of operation is failure due to timeout*
98 - *failure_retries: chain after the result of operation is failure after all retries*
99 - *failure_exception: chain after the result of operation is failure due to exception*
100 - *failure_guard: chain after the result of operation is failure due to guard not allowing the operation*
102 An example of policy chaining for VNF can be found
103 `here <https://github.com/onap/policy-models/blob/master/models-examples/src/main/resources/policies/vFirewall.cds.policy.operational.chaining.yaml>`__.
105 An example of policy chaining for PNF can be found
106 `here <https://github.com/onap/policy-models/blob/master/models-examples/src/main/resources/policies/pnf.cds.policy.operational.chaining.yaml>`__.
111 Since the PDP-D Control Loop Application image was created from the PDP-D Engine one (*onap/policy-drools*),
112 it inherits all features and functionality.
114 The enabled features in the *onap/policy-pdpd-cl* image are:
116 - **distributed locking**: distributed resource locking.
117 - **healthcheck**: healthcheck.
118 - **lifecycle**: enables the lifecycle APIs.
119 - **controlloop-trans**: control loop transaction tracking.
120 - **controlloop-management**: generic controller capabilities.
121 - **controlloop-usecases**: new *controller* introduced in the guilin release to realize the ONAP use cases.
123 The following features are installed but disabled:
125 - **controlloop-tdjam**: experimental java-only *controller* to be deprecated post guilin.
126 - **controlloop-utils**: *actor* simulators.
128 Control Loops Transaction (controlloop-trans)
129 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131 It tracks Control Loop Transactions and Operations. These are recorded in
132 the *$POLICY_LOGS/audit.log* and *$POLICY_LOGS/metrics.log*, and accessible
133 through the telemetry APIs.
135 Control Loops Management (controlloop-management)
136 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
138 It installs common control loop application resources, and provides
139 telemetry API extensions. *Actor* configurations are packaged in this
142 Usecases Controller (controlloop-usecases)
143 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
145 It is the *guilin* release implementation of the ONAP use cases.
146 It relies on the new *Actor* model framework to carry out a policy's
149 TDJAM Controller (controlloop-tdjam)
150 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
152 This is an experimental, java-only controller that will be deprecated after the
155 Utilities (controlloop-utils)
156 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
158 Enables *actor simulators* for testing purposes.
163 The default ONAP installation in *onap/policy-pdpd-cl:1.8.2* is *OFFLINE*.
164 In this configuration, the *rules* artifact and the *dependencies* are all in the local
165 maven repository. This requires that the maven dependencies are preloaded in the local
168 An offline configuration requires two configuration items:
170 - *OFFLINE* environment variable set to true (see `values.yaml <https://git.onap.org/oom/tree/kubernetes/policy/values.yaml>`__.
171 - override of the default *settings.xml* (see
172 `settings.xml <https://git.onap.org/oom/tree/kubernetes/policy/components/policy-drools-pdp/resources/configmaps/settings.xml>`__) override.
174 Running the PDP-D Control Loop Application in a single container
175 ================================================================
180 First create an environment file (in this example *env.conf*) to configure the PDP-D.
184 # SYSTEM software configuration
186 POLICY_HOME=/opt/app/policy
187 POLICY_LOGS=/var/log/onap/policy/pdpd
188 KEYSTORE_PASSWD=Pol1cy_0nap
189 TRUSTSTORE_PASSWD=Pol1cy_0nap
191 # Telemetry credentials
194 TELEMETRY_HOST=0.0.0.0
195 TELEMETRY_USER=demo@people.osaaf.org
196 TELEMETRY_PASSWORD=demo123456!
200 SNAPSHOT_REPOSITORY_ID=
201 SNAPSHOT_REPOSITORY_URL=
202 RELEASE_REPOSITORY_ID=
203 RELEASE_REPOSITORY_URL=
206 REPOSITORY_OFFLINE=true
208 MVN_SNAPSHOT_REPO_URL=
209 MVN_RELEASE_REPO_URL=
211 # Relational (SQL) DB access
220 AAF_NAMESPACE=org.onap.policy
221 AAF_HOST=aaf.api.simpledemo.onap.org
223 # PDP-D DMaaP configuration channel
225 PDPD_CONFIGURATION_TOPIC=PDPD-CONFIGURATION
226 PDPD_CONFIGURATION_API_KEY=
227 PDPD_CONFIGURATION_API_SECRET=
228 PDPD_CONFIGURATION_CONSUMER_GROUP=
229 PDPD_CONFIGURATION_CONSUMER_INSTANCE=
230 PDPD_CONFIGURATION_PARTITION_KEY=
232 # PAP-PDP configuration channel
234 POLICY_PDP_PAP_TOPIC=POLICY-PDP-PAP
235 POLICY_PDP_PAP_GROUP=defaultGroup
237 # Symmetric Key for encoded sensitive data
241 # Healthcheck Feature
243 HEALTHCHECK_USER=demo@people.osaaf.org
244 HEALTHCHECK_PASSWORD=demo123456!
248 POOLING_TOPIC=POOLING
265 PDP_CONTEXT_URI=pdp/api/getDecision
267 PDP_PASSWORD=password
272 DCAE_TOPIC=unauthenticated.DCAE_CL_OUTPUT
273 DCAE_SERVERS=localhost
274 DCAE_CONSUMER_GROUP=dcae.policy.shared
278 DMAAP_SERVERS=localhost
293 SO_URL=https://localhost:6667/
301 VFC_CONTEXT_URI=api/nslcm/v1/
309 SDNC_CONTEXT_URI=restconf/operations/
317 In order to avoid the noise in the logs that relate to dmaap configuration, a startup script (*noop.pre.sh*) is added
318 to convert *dmaap* endpoints to *noop* in the host directory to be mounted.
324 sed -i "s/^dmaap/noop/g" $POLICY_HOME/config/*.properties
329 We can enable the *controlloop-utils* and disable the *distributed-locking* feature to avoid using the database.
335 bash -c "/opt/app/policy/bin/features disable distributed-locking"
336 bash -c "/opt/app/policy/bin/features enable controlloop-utils"
341 The *active.post.sh* script makes the PDP-D active.
347 bash -c "http --verify=no -a ${TELEMETRY_USER}:${TELEMETRY_PASSWORD} PUT https://localhost:9696/policy/pdp/engine/lifecycle/state/ACTIVE"
352 In the *guilin* release, some *actors* configurations need to be overridden to support *http* for compatibility
353 with the *controlloop-utils* feature.
355 AAI-http-client.properties
356 """"""""""""""""""""""""""
360 http.client.services=AAI
362 http.client.services.AAI.managed=true
363 http.client.services.AAI.https=false
364 http.client.services.AAI.host=${envd:AAI_HOST}
365 http.client.services.AAI.port=${envd:AAI_PORT}
366 http.client.services.AAI.userName=${envd:AAI_USERNAME}
367 http.client.services.AAI.password=${envd:AAI_PASSWORD}
368 http.client.services.AAI.contextUriPath=${envd:AAI_CONTEXT_URI}
370 SDNC-http-client.properties
371 """""""""""""""""""""""""""
375 http.client.services=SDNC
377 http.client.services.SDNC.managed=true
378 http.client.services.SDNC.https=false
379 http.client.services.SDNC.host=${envd:SDNC_HOST}
380 http.client.services.SDNC.port=${envd:SDNC_PORT}
381 http.client.services.SDNC.userName=${envd:SDNC_USERNAME}
382 http.client.services.SDNC.password=${envd:SDNC_PASSWORD}
383 http.client.services.SDNC.contextUriPath=${envd:SDNC_CONTEXT_URI}
385 VFC-http-client.properties
386 """"""""""""""""""""""""""
390 http.client.services=VFC
392 http.client.services.VFC.managed=true
393 http.client.services.VFC.https=false
394 http.client.services.VFC.host=${envd:VFC_HOST}
395 http.client.services.VFC.port=${envd:VFC_PORT}
396 http.client.services.VFC.userName=${envd:VFC_USERNAME}
397 http.client.services.VFC.password=${envd:VFC_PASSWORD}
398 http.client.services.VFC.contextUriPath=${envd:VFC_CONTEXT_URI:api/nslcm/v1/}
403 The *standalone-settings.xml* file is the default maven settings override in the container.
407 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
408 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
409 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
411 <offline>true</offline>
415 <id>policy-local</id>
418 <id>file-repository</id>
419 <url>file:${user.home}/.m2/file-repository</url>
421 <enabled>true</enabled>
422 <updatePolicy>always</updatePolicy>
425 <enabled>true</enabled>
426 <updatePolicy>always</updatePolicy>
434 <activeProfile>policy-local</activeProfile>
439 Bring up the PDP-D Control Loop Application
440 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
444 docker run --rm -p 9696:9696 -v ${PWD}/config:/tmp/policy-install/config --env-file ${PWD}/env/env.conf -it --name PDPD -h pdpd nexus3.onap.org:10001/onap/policy-pdpd-cl:1.6.4
446 To run the container in detached mode, add the *-d* flag.
448 Note that we are opening the *9696* telemetry API port to the outside world, mounting the *config* host directory,
449 and setting environment variables.
451 To open a shell into the PDP-D:
455 docker exec -it pdp-d bash
457 Once in the container, run tools such as *telemetry*, *db-migrator*, *policy* to look at the system state:
461 docker exec -it PDPD bash -c "/opt/app/policy/bin/telemetry"
462 docker exec -it PDPD bash -c "/opt/app/policy/bin/policy status"
463 docker exec -it PDPD bash -c "/opt/app/policy/bin/db-migrator -s ALL -o report"
465 Controlled instantiation of the PDP-D Control Loop Appplication
466 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
468 Sometimes a developer may want to start and stop the PDP-D manually:
474 docker run --rm -p 9696:9696 -v ${PWD}/config:/tmp/policy-install/config --env-file ${PWD}/env/env.conf -it --name PDPD -h pdpd nexus3.onap.org:10001/onap/policy-pdpd-cl:1.6.4 bash
476 # use this command to start policy applying host customizations from /tmp/policy-install/config
478 pdpd-cl-entrypoint.sh vmboot
480 # or use this command to start policy without host customization
484 # at any time use the following command to stop the PDP-D
488 # and this command to start the PDP-D back again
492 Scale-out use case testing
493 ==========================
495 First step is to create the *operational.scaleout* policy.
503 "type": "onap.policies.controlloop.operational.common.Drools",
504 "type_version": "1.0.0",
505 "name": "operational.scaleout",
508 "policy-id": "operational.scaleout"
511 "id": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
514 "trigger": "unique-policy-id-1-scale-up",
517 "id": "unique-policy-id-1-scale-up",
518 "description": "Create a new VF Module",
521 "operation": "VF Module Create",
523 "targetType": "VFMODULE",
525 "modelInvariantId": "e6130d03-56f1-4b0a-9a1d-e1b2ebc30e0e",
526 "modelVersionId": "94b18b1d-cc91-4f43-911a-e6348665f292",
527 "modelName": "VfwclVfwsnkBbefb8ce2bde..base_vfw..module-0",
529 "modelCustomizationId": "47958575-138f-452a-8c8d-d89b595f8164"
533 "requestParameters": "{\"usePreload\":true,\"userParams\":[]}",
534 "configurationParameters": "[{\"ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[9]\",\"oam-ip-addr\":\"$.vf-module-topology.vf-module-parameters.param[16]\",\"enabled\":\"$.vf-module-topology.vf-module-parameters.param[23]\"}]"
539 "success": "final_success",
540 "failure": "final_failure",
541 "failure_timeout": "final_failure_timeout",
542 "failure_retries": "final_failure_retries",
543 "failure_exception": "final_failure_exception",
544 "failure_guard": "final_failure_guard"
550 To provision the *scale-out policy*, issue the following command:
554 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" https://localhost:9696/policy/pdp/engine/lifecycle/policies @usecases/policy.vdns.json
556 Verify that the policy shows with the telemetry tools:
560 docker exec -it PDPD bash -c "/opt/app/policy/bin/telemetry"
561 > get /policy/pdp/engine/lifecycle/policies
562 > get /policy/pdp/engine/controllers/usecases/drools/facts/usecases/controlloops
571 "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
572 "closedLoopAlarmStart": 1463679805324,
573 "closedLoopEventClient": "microservice.stringmatcher",
574 "closedLoopEventStatus": "ONSET",
575 "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
576 "target_type": "VNF",
577 "target": "vserver.vserver-name",
579 "vserver.is-closed-loop-disabled": "false",
580 "vserver.prov-status": "ACTIVE",
581 "vserver.vserver-name": "OzVServer"
587 To initiate a control loop transaction, simulate a DCAE ONSET to Policy:
591 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" PUT https://localhost:9696/policy/pdp/engine/topics/sources/noop/DCAE_TOPIC/events @dcae.vdns.onset.json Content-Type:'text/plain'
593 This will trigger the scale out control loop transaction that will interact with the *SO*
594 simulator to complete the transaction.
596 Verify in *$POLICY_LOGS/network.log* that a *FINAL: SUCCESS* notification is sent over the POLICY-CL-MGT channel.
597 An entry in the *$POLICY_LOGS/audit.log* should indicate successful completion as well.
599 vCPE use case testing
600 =====================
602 First step is to create the *operational.restart* policy.
610 "type": "onap.policies.controlloop.operational.common.Drools",
611 "type_version": "1.0.0",
612 "name": "operational.restart",
615 "policy-id": "operational.restart"
618 "id": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
621 "trigger": "unique-policy-id-1-restart",
624 "id": "unique-policy-id-1-restart",
625 "description": "Restart the VM",
628 "operation": "Restart",
635 "success": "final_success",
636 "failure": "final_failure",
637 "failure_timeout": "final_failure_timeout",
638 "failure_retries": "final_failure_retries",
639 "failure_exception": "final_failure_exception",
640 "failure_guard": "final_failure_guard"
646 To provision the *operational.restart policy* issue the following command:
650 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" https://localhost:9696/policy/pdp/engine/lifecycle/policies @usecases/policy.vcpe.json
652 Verify that the policy shows with the telemetry tools:
656 docker exec -it PDPD bash -c "/opt/app/policy/bin/telemetry"
657 > get /policy/pdp/engine/lifecycle/policies
658 > get /policy/pdp/engine/controllers/usecases/drools/facts/usecases/controlloops
667 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
668 "closedLoopAlarmStart": 1463679805324,
669 "closedLoopEventClient": "DCAE_INSTANCE_ID.dcae-tca",
670 "closedLoopEventStatus": "ONSET",
671 "requestID": "664be3d2-6c12-4f4b-a3e7-c349acced200",
672 "target_type": "VNF",
673 "target": "generic-vnf.vnf-id",
675 "vserver.is-closed-loop-disabled": "false",
676 "vserver.prov-status": "ACTIVE",
677 "generic-vnf.vnf-id": "vCPE_Infrastructure_vGMUX_demo_app"
683 To initiate a control loop transaction, simulate a DCAE ONSET to Policy:
687 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" PUT https://localhost:9696/policy/pdp/engine/topics/sources/noop/DCAE_TOPIC/events @dcae.vcpe.onset.json Content-Type:'text/plain'
689 This will spawn a vCPE control loop transaction in the PDP-D. Policy will send a *restart* message over the
690 *APPC-LCM-READ* channel to APPC and wait for a response.
692 Verify that you see this message in the network.log by looking for *APPC-LCM-READ* messages.
694 Note the *sub-request-id* value from the restart message in the *APPC-LCM-READ* channel.
696 Replace *REPLACEME* in the *appc.vcpe.success.json* with this sub-request-id.
698 appc.vcpe.success.json
699 ~~~~~~~~~~~~~~~~~~~~~~
707 "timestamp": "2017-08-25T21:06:23.037Z",
709 "originator-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
710 "request-id": "664be3d2-6c12-4f4b-a3e7-c349acced200",
711 "sub-request-id": "REPLACEME",
716 "message": "Restart Successful"
721 "rpc-name": "restart",
722 "correlation-id": "664be3d2-6c12-4f4b-a3e7-c349acced200-1",
727 Send a simulated APPC response back to the PDP-D over the *APPC-LCM-WRITE* channel.
731 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" PUT https://localhost:9696/policy/pdp/engine/topics/sources/noop/APPC-LCM-WRITE/events @appc.vcpe.success.json Content-Type:'text/plain'
733 Verify in *$POLICY_LOGS/network.log* that a *FINAL: SUCCESS* notification is sent over the *POLICY-CL-MGT* channel,
734 and an entry is added to the *$POLICY_LOGS/audit.log* indicating successful completion.
736 vFirewall use case testing
737 ===========================
739 First step is to create the *operational.modifyconfig* policy.
747 "type": "onap.policies.controlloop.operational.common.Drools",
748 "type_version": "1.0.0",
749 "name": "operational.modifyconfig",
752 "policy-id": "operational.modifyconfig"
755 "id": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
758 "trigger": "unique-policy-id-1-modifyConfig",
761 "id": "unique-policy-id-1-modifyConfig",
762 "description": "Modify the packet generator",
765 "operation": "ModifyConfig",
769 "resourceID": "bbb3cefd-01c8-413c-9bdd-2b92f9ca3d38"
773 "streams": "{\"active-streams\": 5 }"
778 "success": "final_success",
779 "failure": "final_failure",
780 "failure_timeout": "final_failure_timeout",
781 "failure_retries": "final_failure_retries",
782 "failure_exception": "final_failure_exception",
783 "failure_guard": "final_failure_guard"
790 To provision the *operational.modifyconfig policy*, issue the following command:
794 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" https://localhost:9696/policy/pdp/engine/lifecycle/policies @usecases/policy.vfw.json
796 Verify that the policy shows with the telemetry tools:
800 docker exec -it PDPD bash -c "/opt/app/policy/bin/telemetry"
801 > get /policy/pdp/engine/lifecycle/policies
802 > get /policy/pdp/engine/controllers/usecases/drools/facts/usecases/controlloops
811 "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
812 "closedLoopAlarmStart": 1463679805324,
813 "closedLoopEventClient": "microservice.stringmatcher",
814 "closedLoopEventStatus": "ONSET",
815 "requestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
816 "target_type": "VNF",
817 "target": "generic-vnf.vnf-name",
819 "vserver.is-closed-loop-disabled": "false",
820 "vserver.prov-status": "ACTIVE",
821 "generic-vnf.vnf-name": "fw0002vm002fw002",
822 "vserver.vserver-name": "OzVServer"
829 To initiate a control loop transaction, simulate a DCAE ONSET to Policy:
833 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" PUT https://localhost:9696/policy/pdp/engine/topics/sources/noop/DCAE_TOPIC/events @dcae.vfw.onset.json Content-Type:'text/plain'
835 This will spawn a vFW control loop transaction in the PDP-D. Policy will send a *ModifyConfig* message over the
836 *APPC-CL* channel to APPC and wait for a response. This can be seen by searching the network.log for *APPC-CL*.
838 Note the *SubRequestId* field in the *ModifyConfig* message in the *APPC-CL* topic in the network.log
840 Send a simulated APPC response back to the PDP-D over the *APPC-CL* channel.
841 To do this, change the *REPLACEME* text in the *appc.vcpe.success.json* with this *SubRequestId*.
843 appc.vcpe.success.json
844 ~~~~~~~~~~~~~~~~~~~~~~
850 "TimeStamp": 1506051879001,
852 "RequestID": "c7c6a4aa-bb61-4a15-b831-ba1472dd4a65",
853 "SubRequestID": "REPLACEME",
862 "generic-vnf.vnf-id": "f17face5-69cb-4c88-9e0b-7426db7edddd"
868 http --verify=no -a "${TELEMETRY_USER}:${TELEMETRY_PASSWORD}" PUT https://localhost:9696/policy/pdp/engine/topics/sources/noop/APPC-CL/events @appc.vcpe.success.json Content-Type:'text/plain'
870 Verify in *$POLICY_LOGS/network.log* that a *FINAL: SUCCESS* notification is sent over the POLICY-CL-MGT channel,
871 and an entry is added to the *$POLICY_LOGS/audit.log* indicating successful completion.
874 Running PDP-D Control Loop Application with other components
875 ============================================================
877 The reader can also look at the `policy/docker repository <https://github.com/onap/policy-docker/tree/master/csit>`__.
878 More specifically, these directories have examples of other PDP-D Control Loop configurations:
880 * `plans <https://github.com/onap/policy-docker/tree/master/csit/drools-applications/plans>`__: startup & teardown scripts.
881 * `scripts <https://github.com/onap/policy-docker/blob/master/csit/docker-compose-all.yml>`__: docker-compose file.
882 * `tests <https://github.com/onap/policy-docker/tree/master/csit/drools-applications/tests>`__: test plan.
884 Additional information
885 ======================
887 For additional information, please see the
888 `Drools PDP Development and Testing (In Depth) <https://wiki.onap.org/display/DW/2020+Frankfurt+Tutorials>`__ page.