diff options
author | liamfallon <liam.fallon@est.tech> | 2021-07-21 11:31:14 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@est.tech> | 2021-07-21 13:10:49 +0100 |
commit | 66b7249d8304aedcea8b8d50f068aab8071ec81f (patch) | |
tree | fce2662d24004063d18b583e0c0826eb40cf59b9 /common/src | |
parent | f854e65fe950ef500215371cc47484147b739a31 (diff) |
Add distribution of policies to Policy Participant
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>
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/main/resources/tosca/PolicyControlLoopElementType.yaml | 6 | ||||
-rw-r--r-- | common/src/test/resources/demo/Notes.txt | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/common/src/main/resources/tosca/PolicyControlLoopElementType.yaml b/common/src/main/resources/tosca/PolicyControlLoopElementType.yaml index e584c2fce..bf66718ca 100644 --- a/common/src/main/resources/tosca/PolicyControlLoopElementType.yaml +++ b/common/src/main/resources/tosca/PolicyControlLoopElementType.yaml @@ -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. diff --git a/common/src/test/resources/demo/Notes.txt b/common/src/test/resources/demo/Notes.txt index 777cdc0e1..43b75e915 100644 --- a/common/src/test/resources/demo/Notes.txt +++ b/common/src/test/resources/demo/Notes.txt @@ -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 |