Add distribution of policies to Policy Participant 81/122781/2
authorliamfallon <liam.fallon@est.tech>
Wed, 21 Jul 2021 10:31:14 +0000 (11:31 +0100)
committerliamfallon <liam.fallon@est.tech>
Wed, 21 Jul 2021 12:10:49 +0000 (13:10 +0100)
Currently, the Policy Participant only stores the policy to policy-api.
It does not distribute the policy.

This commit adds a parameter for the PDP group to the Policy Framework
Control Loop Element metadata.

Issue-ID: POLICY-3508
Change-Id: Ia182b4ea08ac1d3aec9cca4509f8e33723c80fc5
Signed-off-by: liamfallon <liam.fallon@est.tech>
common/src/main/resources/tosca/PolicyControlLoopElementType.yaml
common/src/test/resources/demo/Notes.txt

index e584c2f..bf66718 100644 (file)
@@ -31,3 +31,9 @@ node_types:
         description: The policy that this control loop element is managing, if the policy ID is specified, the policy
                      is either already in the Policy Framework database or is specified in the "policies" part of the
                      TOSCA service template of the Control Loop definition
+      pdpGroup:
+        type: string
+        required: false
+        default: defaultGroup
+        description: The PDP group to which the policy should be deployed. This parameter is used when the policy is
+                     deployed to PAP. The value defaults to the "defaultGroup", which always exists.
index 777cdc0..43b75e9 100644 (file)
@@ -6,9 +6,8 @@ $ docker run -p 3904:3904 --volume //c/Users/${USER}/Github/simulator/distributi
 
 Run DMaaP simulator using Maven
 Check out policy models
-Go to policy/models/models-sim/models-sim-dmaap
-mvn exec:java  -Dexec.mainClass=org.onap.policy.models.sim.dmaap.startstop.Main -Dexec.args="-c src/main/resources/etc/DefaultConfig.json"
-
+Go to policy/models/models-sim/policy-models-simulators
+mvn exec:java  -Dexec.mainClass=org.onap.policy.models.simulators.Main -Dexec.args="src/test/resources/simParameters.json"
 
 Run CL from command line
 Go to clamp/runtime-controlloop