blob: ee8bf31461b43535d62ff07c3dabb71353c76fde [file] [log] [blame]
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05001#! /bin/bash
Pamela Dragoshbed17e52018-04-16 14:15:46 -04002# Copyright 2018 AT&T Intellectual Property. All rights reserved
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050015
rb7147227bd092017-09-27 16:13:50 -040016#########################################Upload BRMS Param Template##########################################
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050017
rb7147227bd092017-09-27 16:13:50 -040018echo "Upload BRMS Param Template"
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050019
Jorge Hernandez54c5a682017-10-03 18:40:43 -050020sleep 2
21
Jorge Hernandez0fe9e2f2017-10-02 16:26:13 -050022wget -O cl-amsterdam-template.drl https://git.onap.org/policy/drools-applications/plain/controlloop/templates/archetype-cl-amsterdam/src/main/resources/archetype-resources/src/main/resources/__closedLoopControlName__.drl
23
Jorge Hernandez54c5a682017-10-03 18:40:43 -050024sleep 2
25
Michael Mokry2054f7b2018-08-29 16:43:17 -050026curl -k -v --silent -X POST --header 'Content-Type: multipart/form-data' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -F "file=@cl-amsterdam-template.drl" -F "importParametersJson={\"serviceName\":\"ClosedLoopControlName\",\"serviceType\":\"BRMSPARAM\"}" 'https://pdp:8081/pdp/api/policyEngineImport'
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050027
Pamela Dragoshca15b922017-10-10 16:18:27 -040028echo "PRELOAD_POLICIES is $PRELOAD_POLICIES"
29
30if [ "$PRELOAD_POLICIES" == "false" ]; then
31 exit 0
32fi
33
rb7147227bd092017-09-27 16:13:50 -040034#########################################Create BRMS Param policies##########################################
35
36echo "Create BRMSParam Operational Policies"
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050037
38sleep 2
39
rb7147227bd092017-09-27 16:13:50 -040040echo "Create BRMSParamvFirewall Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -050041curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -040042 "policyConfigType": "BRMS_PARAM",
43 "policyName": "com.BRMSParamvFirewall",
44 "policyDescription": "BRMS Param vFirewall policy",
45 "policyScope": "com",
46 "attributes": {
47 "MATCHING": {
48 "controller" : "amsterdam"
49 },
50 "RULE": {
51 "templateName": "ClosedLoopControlName",
52 "closedLoopControlName": "ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a",
rb7147e9c3f632017-10-17 09:29:49 -040053 "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a%0D%0A++trigger_policy%3A+unique-policy-id-1-modifyConfig%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-modifyConfig%0D%0A++++name%3A+modify+packet+gen+config%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+ModifyConfig%0D%0A++++target%3A%0D%0A++++++%23+TBD+-+Cannot+be+known+until+instantiation+is+done%0D%0A++++++resourceID%3A+Eace933104d443b496b8.nodes.heat.vpg%0D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+300%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
rb7147227bd092017-09-27 16:13:50 -040054 }
55 }
Michael Mokry18426fe2018-08-22 10:39:12 -050056}' 'https://pdp:8081/pdp/api/createPolicy'
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050057
58sleep 2
Jorge Hernandez0eab4f22017-06-20 17:32:25 -050059
rb7147227bd092017-09-27 16:13:50 -040060echo "Create BRMSParamvDNS Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -050061curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -040062 "policyConfigType": "BRMS_PARAM",
63 "policyName": "com.BRMSParamvDNS",
64 "policyDescription": "BRMS Param vDNS policy",
65 "policyScope": "com",
66 "attributes": {
67 "MATCHING": {
68 "controller" : "amsterdam"
69 },
70 "RULE": {
71 "templateName": "ClosedLoopControlName",
72 "closedLoopControlName": "ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3",
rb7147e9c3f632017-10-17 09:29:49 -040073 "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3%0D%0A++trigger_policy%3A+unique-policy-id-1-scale-up%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-scale-up%0D%0A++++name%3A+Create+a+new+VF+Module%0D%0A++++description%3A%0D%0A++++actor%3A+SO%0D%0A++++recipe%3A+VF+Module+Create%0D%0A++++target%3A%0D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
rb7147227bd092017-09-27 16:13:50 -040074 }
75 }
Michael Mokry18426fe2018-08-22 10:39:12 -050076}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -040077
78sleep 2
79
80echo "Create BRMSParamVOLTE Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -050081curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -040082 "policyConfigType": "BRMS_PARAM",
83 "policyName": "com.BRMSParamVOLTE",
84 "policyDescription": "BRMS Param VOLTE policy",
85 "policyScope": "com",
86 "attributes": {
87 "MATCHING": {
88 "controller" : "amsterdam"
89 },
90 "RULE": {
91 "templateName": "ClosedLoopControlName",
92 "closedLoopControlName": "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b",
rb7147e9c3f632017-10-17 09:29:49 -040093 "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+VFC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
rb7147227bd092017-09-27 16:13:50 -040094 }
95 }
Michael Mokry18426fe2018-08-22 10:39:12 -050096}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -040097
98sleep 2
99
100echo "Create BRMSParamvCPE Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500101curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -0400102 "policyConfigType": "BRMS_PARAM",
103 "policyName": "com.BRMSParamvCPE",
104 "policyDescription": "BRMS Param vCPE policy",
105 "policyScope": "com",
106 "attributes": {
107 "MATCHING": {
108 "controller" : "amsterdam"
109 },
110 "RULE": {
111 "templateName": "ClosedLoopControlName",
112 "closedLoopControlName": "ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e",
rb7147e9c3f632017-10-17 09:29:49 -0400113 "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+2.0.0%0D%0A++controlLoopName%3A+ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e%0D%0A++trigger_policy%3A+unique-policy-id-1-restart%0D%0A++timeout%3A+3600%0D%0A++abatement%3A+true%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-1-restart%0D%0A++++name%3A+Restart+the+VM%0D%0A++++description%3A%0D%0A++++actor%3A+APPC%0D%0A++++recipe%3A+Restart%0D%0A++++target%3A%0D%0A++++++type%3A+VM%0D%0A++++retry%3A+3%0D%0A++++timeout%3A+1200%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
rb7147227bd092017-09-27 16:13:50 -0400114 }
115 }
Michael Mokry18426fe2018-08-22 10:39:12 -0500116}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -0400117
Saravanan A62490d02018-09-18 14:53:45 +0530118sleep 2
119
120echo "Create BRMSParamvPCI Policy"
121curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/html' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
122 "policyConfigType": "BRMS_PARAM",
123 "policyName": "com.BRMSParamvPCI",
124 "policyDescription": "BRMS Param vPCI policy",
125 "policyScope": "com",
126 "attributes": {
127 "MATCHING": {
128 "controller" : "casablanca"
129 },
130 "RULE": {
131 "templateName": "ClosedLoopControlName",
132 "closedLoopControlName": "ControlLoop-vPCI-fb41f388-a5f2-11e8-98d0-529269fb1459",
133 "controlLoopYaml": "controlLoop%3A%0D%0A++version%3A+3.0.0%0D%0A++controlLoopName%3A+ControlLoop-vPCI-fb41f388-a5f2-11e8-98d0-529269fb1459%0D%0A++trigger_policy%3A+unique-policy-id-123-modifyconfig%0D%0A++timeout%3A+1200%0D%0A++abatement%3A+false%0D%0A+%0D%0Apolicies%3A%0D%0A++-+id%3A+unique-policy-id-123-modifyconfig%0D%0A++++name%3A+modify+PCI+config%0D%0A++++description%3A%0D%0A++++actor%3A+SDNR%0D%0A++++recipe%3A+ModifyConfig%0D%0A++++target%3A%0D%0A++++++%23+These+fields+are+not+used%0D%0A++++++resourceID%3A+Eace933104d443b496b8.nodes.heat.vpg%0D%0A++++++type%3A+VNF%0D%0A++++retry%3A+0%0D%0A++++timeout%3A+300%0D%0A++++success%3A+final_success%0D%0A++++failure%3A+final_failure%0D%0A++++failure_timeout%3A+final_failure_timeout%0D%0A++++failure_retries%3A+final_failure_retries%0D%0A++++failure_exception%3A+final_failure_exception%0D%0A++++failure_guard%3A+final_failure_guard"
134 }
135 }
136}' 'https://pdp:8081/pdp/api/createPolicy'
137
rb7147227bd092017-09-27 16:13:50 -0400138#########################################Create Micro Service Config policies##########################################
139
140echo "Create MicroService Config Policies"
141
142sleep 2
143
144echo "Create MicroServicevFirewall Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500145curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147079c0292017-10-26 14:42:29 -0400146 "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevFirewall\", \"description\": \"MicroService vFirewall Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"tca_policy\": { \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [{ \"eventName\": \"vFirewallBroadcastPackets\", \"controlLoopSchemaType\": \"VNF\", \"policyScope\": \"DCAE\", \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyVersion\": \"v0.0.1\", \"thresholds\": [{ \"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\", \"thresholdValue\": 300, \"direction\": \"LESS_OR_EQUAL\", \"severity\": \"MAJOR\", \"closedLoopEventStatus\": \"ONSET\" }, { \"closedLoopControlName\": \"ControlLoop-vFirewall-d0a1dfc6-94f5-4fd4-a5b5-4630b438850a\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\", \"thresholdValue\": 700, \"direction\": \"GREATER_OR_EQUAL\", \"severity\": \"CRITICAL\", \"closedLoopEventStatus\": \"ONSET\" } ] }] } } }",
rb7147227bd092017-09-27 16:13:50 -0400147 "policyConfigType": "MicroService",
148 "policyName": "com.MicroServicevFirewall",
149 "onapName": "DCAE"
Michael Mokry18426fe2018-08-22 10:39:12 -0500150}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -0400151
152
153sleep 2
154
155echo "Create MicroServicevDNS Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500156curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147079c0292017-10-26 14:42:29 -0400157 "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevDNS\", \"description\": \"MicroService vDNS Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"tca_policy\": { \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [{ \"eventName\": \"vLoadBalancer\", \"controlLoopSchemaType\": \"VM\", \"policyScope\": \"DCAE\", \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyVersion\": \"v0.0.1\", \"thresholds\": [{ \"closedLoopControlName\": \"ControlLoop-vDNS-6f37f56d-a87d-4b85-b6a9-cc953cf779b3\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.vNicUsageArray[*].receivedTotalPacketsDelta\", \"thresholdValue\": 300, \"direction\": \"GREATER_OR_EQUAL\", \"severity\": \"CRITICAL\", \"closedLoopEventStatus\": \"ONSET\" }] }] } } }",
rb7147227bd092017-09-27 16:13:50 -0400158 "policyConfigType": "MicroService",
159 "policyName": "com.MicroServicevDNS",
160 "onapName": "DCAE"
Michael Mokry18426fe2018-08-22 10:39:12 -0500161}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -0400162
163
164sleep 2
165
166echo "Create MicroServicevCPE Policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500167curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147079c0292017-10-26 14:42:29 -0400168 "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation\", \"uuid\": \"test\", \"policyName\": \"MicroServicevCPE\", \"description\": \"MicroService vCPE Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"tca_policy\": { \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [{ \"eventName\": \"Measurement_vGMUX\", \"controlLoopSchemaType\": \"VNF\", \"policyScope\": \"DCAE\", \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyVersion\": \"v0.0.1\", \"thresholds\": [{ \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": 0, \"direction\": \"EQUAL\", \"severity\": \"MAJOR\", \"closedLoopEventStatus\": \"ABATED\" }, { \"closedLoopControlName\": \"ControlLoop-vCPE-48f0c2c3-a172-4192-9ae3-052274181b6e\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.measurementsForVfScalingFields.additionalMeasurements[*].arrayOfFields[0].value\", \"thresholdValue\": 0, \"direction\": \"GREATER\", \"severity\": \"CRITICAL\", \"closedLoopEventStatus\": \"ONSET\" }] }] } } }",
rb7147227bd092017-09-27 16:13:50 -0400169 "policyConfigType": "MicroService",
170 "policyName": "com.MicroServicevCPE",
171 "onapName": "DCAE"
Michael Mokry18426fe2018-08-22 10:39:12 -0500172}' 'https://pdp:8081/pdp/api/createPolicy'
rb7147227bd092017-09-27 16:13:50 -0400173
Michael Mokry4959db72018-09-13 11:03:24 -0500174#########################################Create SDNC Naming Policies##########################################
rb7147227bd092017-09-27 16:13:50 -0400175
Michael Mokry4959db72018-09-13 11:03:24 -0500176echo "Create SDNC Naming Policies"
177
178sleep 2
179
180echo "Create SDNC vFW Naming Policy"
181curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
182 "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VFW_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vFW\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vFW\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}",
183 "policyName": "SDNC_Policy.ONAP_VFW_NAMING_TIMESTAMP",
184 "policyConfigType": "MicroService",
185 "onapName": "SDNC",
186 "riskLevel": "4",
187 "riskType": "test",
188 "guard": "false",
189 "priority": "4",
190 "description": "ONAP_VFW_NAMING_TIMESTAMP"
191 }' 'https://pdp:8081/pdp/api/createPolicy'
192
193 sleep 2
194
195 echo "Create SDNC vPG Naming Policy"
196 curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
197 "configBody": "{\"service\":\"SDNC-GenerateName\",\"version\":\"CSIT\",\"content\":{\"policy-instance-name\":\"ONAP_VPG_NAMING_TIMESTAMP\",\"naming-models\":[{\"naming-properties\":[{\"property-name\":\"AIC_CLOUD_REGION\"},{\"property-name\":\"nfRole\"},{\"property-name\":\"TIMESTAMP\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNF\",\"nfRole\":\"vPG\",\"naming-recipe\":\"AIC_CLOUD_REGION|DELIMITER|nfRole|DELIMITER|TIMESTAMP\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"ENTIRETY\",\"start-value\":\"001\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}},{\"property-name\":\"NFC_NAMING_CODE\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"VNFC\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|NFC_NAMING_CODE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"},{\"property-name\":\"VF_MODULE_LABEL\"},{\"property-name\":\"VF_MODULE_TYPE\"},{\"property-name\":\"SEQUENCE\",\"increment-sequence\":{\"max\":\"zzz\",\"scope\":\"PRECEEDING\",\"start-value\":\"01\",\"length\":\"3\",\"increment\":\"1\",\"sequence-type\":\"alpha-numeric\"}}],\"naming-type\":\"VF-MODULE\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|VF_MODULE_LABEL|DELIMITER|VF_MODULE_TYPE|DELIMITER|SEQUENCE\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"}],\"naming-type\":\"KEY\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"protected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"protected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"},{\"naming-properties\":[{\"property-name\":\"VNF_NAME\"},{\"property-value\":\"unprotected\",\"property-name\":\"CONSTANT\"},{\"property-value\":\"_\",\"property-name\":\"DELIMITER\"}],\"naming-type\":\"unprotected_private_net_id\",\"nfRole\":\"vPG\",\"naming-recipe\":\"VNF_NAME|DELIMITER|CONSTANT\"}]}}",
198 "policyName": "SDNC_Policy.ONAP_VPG_NAMING_TIMESTAMP",
199 "policyConfigType": "MicroService",
200 "onapName": "SDNC",
201 "riskLevel": "4",
202 "riskType": "test",
203 "guard": "false",
204 "priority": "4",
205 "description": "ONAP_VPG_NAMING_TIMESTAMP"
206 }' 'https://pdp:8081/pdp/api/createPolicy'
207
Saravanan Abcf5b152018-09-18 14:53:45 +0530208#########################################Creating OOF PCI Policies##########################################
209sleep 2
210
211echo "Create MicroServicevPCI Policy"
212curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
213 "configBody": "{ \"service\": \"tca_policy\", \"location\": \"SampleServiceLocation_pci\", \"uuid\": \"test_pci\", \"policyName\": \"MicroServicevPCI\", \"description\": \"MicroService vPCI Policy\", \"configName\": \"SampleConfigName\", \"templateVersion\": \"OpenSource.version.1\", \"version\": \"1.1.0\", \"priority\": \"1\", \"policyScope\": \"resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=ControlLoop-vPCI-fb41f388-a5f2-11e8-98d0-529269fb1459\", \"riskType\": \"SampleRiskType\", \"riskLevel\": \"1\", \"guard\": \"False\", \"content\": { \"tca_policy\": { \"domain\": \"measurementsForVfScaling\", \"metricsPerEventName\": [{ \"eventName\": \"vFirewallBroadcastPackets\", \"controlLoopSchemaType\": \"VNF\", \"policyScope\": \"DCAE\", \"policyName\": \"DCAE.Config_tca-hi-lo\", \"policyVersion\": \"v0.0.1\", \"thresholds\": [{ \"closedLoopControlName\": \"ControlLoop-vPCI-fb41f388-a5f2-11e8-98d0-529269fb1459\", \"version\": \"1.0.2\", \"fieldPath\": \"$.event.executePolicy\", \"thresholdValue\": 1, \"direction\": \"GREATER_OR_EQUAL\", \"severity\": \"MAJOR\", \"closedLoopEventStatus\": \"ONSET\" } ] }] } } }",
214 "policyConfigType": "MicroService",
215 "policyName": "com.MicroServicevPCI",
216 "onapName": "DCAE"
217}' 'https://pdp:8081/pdp/api/createPolicy'
218
219sleep 2
220
221echo "Create PCI MS Config Policy"
222curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
223 "policyName": "com.PCIMS_CONFIG_POLICY",
224 "configBody": "{ \"PCI_NEIGHBOR_CHANGE_CLUSTER_TIMEOUT_IN_SECS\":60, \"PCI_MODCONFIG_POLICY_NAME\":\"ControlLoop-vPCI-fb41f388-a5f2-11e8-98d0-529269fb1459\", \"PCI_OPTMIZATION_ALGO_CATEGORY_IN_OOF\":\"OOF-PCI-OPTIMIZATION\", \"PCI_SDNR_TARGET_NAME\":\"SDNR\" }",
225 "policyType": "Config",
226 "attributes" : { "matching" : { "key1" : "value1" } },
227 "policyConfigType": "Base",
228 "onapName": "DCAE",
229 "configName": "PCIMS_CONFIG_POLICY",
230 "configBodyType": "JSON"
231}' 'https://pdp:8081/pdp/api/createPolicy'
232
233sleep 2
234
235echo "Create OOF Config Policy"
236curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
237 "policyName": "com.OOF_PCI_CONFIG_POLICY",
238 "configBody": "{ \"ALGO_CATEGORY\":\"OOF-PCI-OPTIMIZATION\", \"PCI_OPTMIZATION_ALGO_NAME\":\"OOF-PCI-OPTIMIZATION-LEVEL1\", \"PCI_OPTIMIZATION_NW_CONSTRAINT\":\"MAX5PCICHANGESONLY\", \"PCI_OPTIMIZATION_PRIORITY\": 2, \"PCI_OPTIMIZATION_TIME_CONSTRAINT\":\"ONLYATNIGHT\" }",
239 "attributes" : { "matching" : { "key1" : "value1" } },
240 "policyType": "Config",
241 "policyConfigType": "Base",
242 "onapName": "DCAE",
243 "configName": "OOF_PCI_CONFIG_POLICY",
244 "configBodyType": "JSON"
245}' 'https://pdp:8081/pdp/api/createPolicy'
246
rb714743f490a2017-09-28 16:30:47 -0400247#########################################Creating Decision Guard policy#########################################
248
249sleep 2
250
251echo "Creating Decision Guard policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500252curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb714743f490a2017-09-28 16:30:47 -0400253 "policyClass": "Decision",
254 "policyName": "com.AllPermitGuard",
255 "policyDescription": "Testing all Permit YAML Guard Policy",
256 "ecompName": "PDPD",
257 "ruleProvider": "GUARD_YAML",
258 "attributes": {
259 "MATCHING": {
260 "actor": ".*",
261 "recipe": ".*",
262 "targets": ".*",
263 "clname": ".*",
264 "limit": "10",
265 "timeWindow": "1",
266 "timeUnits": "minute",
Tej, Tarun77a1ea92017-10-10 13:18:39 -0400267 "guardActiveStart": "00:00:01-05:00",
268 "guardActiveEnd": "00:00:00-05:00"
rb714743f490a2017-09-28 16:30:47 -0400269 }
270 }
Michael Mokry18426fe2018-08-22 10:39:12 -0500271}' 'https://pdp:8081/pdp/api/createPolicy'
rb714743f490a2017-09-28 16:30:47 -0400272
273#########################################Push Decision policy#########################################
274
275sleep 2
276
277echo "Push Decision policy"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500278curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb714743f490a2017-09-28 16:30:47 -0400279 "pdpGroup": "default",
280 "policyName": "com.AllPermitGuard",
281 "policyType": "DECISION"
Michael Mokry18426fe2018-08-22 10:39:12 -0500282}' 'https://pdp:8081/pdp/api/pushPolicy'
rb7147227bd092017-09-27 16:13:50 -0400283
284#########################################Pushing BRMS Param policies##########################################
285
286echo "Pushing BRMSParam Operational policies"
287
288sleep 2
289
290echo "pushPolicy : PUT : com.BRMSParamvFirewall"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500291curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500292 "pdpGroup": "default",
rb7147227bd092017-09-27 16:13:50 -0400293 "policyName": "com.BRMSParamvFirewall",
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500294 "policyType": "BRMS_Param"
Michael Mokry18426fe2018-08-22 10:39:12 -0500295}' 'https://pdp:8081/pdp/api/pushPolicy'
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500296
297sleep 2
298
rb7147227bd092017-09-27 16:13:50 -0400299echo "pushPolicy : PUT : com.BRMSParamvDNS"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500300curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500301 "pdpGroup": "default",
rb7147227bd092017-09-27 16:13:50 -0400302 "policyName": "com.BRMSParamvDNS",
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500303 "policyType": "BRMS_Param"
Michael Mokry18426fe2018-08-22 10:39:12 -0500304}' 'https://pdp:8081/pdp/api/pushPolicy'
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500305
306sleep 2
307
rb7147227bd092017-09-27 16:13:50 -0400308echo "pushPolicy : PUT : com.BRMSParamVOLTE"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500309curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb714716ca5982017-06-23 15:03:19 -0400310 "pdpGroup": "default",
rb7147227bd092017-09-27 16:13:50 -0400311 "policyName": "com.BRMSParamVOLTE",
312 "policyType": "BRMS_Param"
Michael Mokry18426fe2018-08-22 10:39:12 -0500313}' 'https://pdp:8081/pdp/api/pushPolicy'
rb7147227bd092017-09-27 16:13:50 -0400314
315sleep 2
316
317echo "pushPolicy : PUT : com.BRMSParamvCPE"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500318curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -0400319 "pdpGroup": "default",
320 "policyName": "com.BRMSParamvCPE",
321 "policyType": "BRMS_Param"
Michael Mokry18426fe2018-08-22 10:39:12 -0500322}' 'https://pdp:8081/pdp/api/pushPolicy'
rb7147227bd092017-09-27 16:13:50 -0400323
Saravanan A62490d02018-09-18 14:53:45 +0530324sleep 2
325
326echo "pushPolicy : PUT : com.BRMSParamvPCI"
327curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
328 "pdpGroup": "default",
329 "policyName": "com.BRMSParamvPCI",
330 "policyType": "BRMS_Param"
331}' 'https://pdp:8081/pdp/api/pushPolicy'
332
rb7147227bd092017-09-27 16:13:50 -0400333#########################################Pushing MicroService Config policies##########################################
334
335echo "Pushing MicroService Config policies"
336
337sleep 2
338
339echo "pushPolicy : PUT : com.MicroServicevFirewall"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500340curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb7147227bd092017-09-27 16:13:50 -0400341 "pdpGroup": "default",
342 "policyName": "com.MicroServicevFirewall",
rb714716ca5982017-06-23 15:03:19 -0400343 "policyType": "MicroService"
Michael Mokry18426fe2018-08-22 10:39:12 -0500344}' 'https://pdp:8081/pdp/api/pushPolicy'
rb714716ca5982017-06-23 15:03:19 -0400345
Jorge Hernandez887bb7e2017-11-09 11:20:06 -0600346sleep 10
rb714716ca5982017-06-23 15:03:19 -0400347
rb7147227bd092017-09-27 16:13:50 -0400348echo "pushPolicy : PUT : com.MicroServicevDNS"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500349curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
rb714716ca5982017-06-23 15:03:19 -0400350 "pdpGroup": "default",
rb7147227bd092017-09-27 16:13:50 -0400351 "policyName": "com.MicroServicevDNS",
rb714716ca5982017-06-23 15:03:19 -0400352 "policyType": "MicroService"
Michael Mokry18426fe2018-08-22 10:39:12 -0500353}' 'https://pdp:8081/pdp/api/pushPolicy'
rb714716ca5982017-06-23 15:03:19 -0400354
Jorge Hernandez887bb7e2017-11-09 11:20:06 -0600355sleep 10
rb714716ca5982017-06-23 15:03:19 -0400356
rb7147227bd092017-09-27 16:13:50 -0400357echo "pushPolicy : PUT : com.MicroServicevCPE"
Michael Mokry2054f7b2018-08-29 16:43:17 -0500358curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
Pamela Dragoshd1728dc2017-02-14 19:57:17 -0500359 "pdpGroup": "default",
rb7147227bd092017-09-27 16:13:50 -0400360 "policyName": "com.MicroServicevCPE",
361 "policyType": "MicroService"
Michael Mokry18426fe2018-08-22 10:39:12 -0500362}' 'https://pdp:8081/pdp/api/pushPolicy'
Michael Mokry4959db72018-09-13 11:03:24 -0500363
364#########################################Pushing SDNC Naming Policies##########################################
365echo "Pushing SDNC Naming Policies"
366
367sleep 2
368
369echo "pushPolicy : PUT : SDNC_Policy.ONAP_VFW_NAMING_TIMESTAMP"
370curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
371 "pdpGroup": "default",
372 "policyName": "SDNC_Policy.ONAP_VFW_NAMING_TIMESTAMP",
373 "policyType": "MicroService"
374}' 'https://pdp:8081/pdp/api/pushPolicy'
375
376sleep 10
377
378echo "pushPolicy : PUT : SDNC_Policy.ONAP_VPG_NAMING_TIMESTAMP"
379curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
380 "pdpGroup": "default",
381 "policyName": "SDNC_Policy.ONAP_VPG_NAMING_TIMESTAMP",
382 "policyType": "MicroService"
383}' 'https://pdp:8081/pdp/api/pushPolicy'
Saravanan Abcf5b152018-09-18 14:53:45 +0530384
385
386#########################################Pushing OOF PCI Policies##########################################
387sleep 10
388
389echo "pushPolicy : PUT : com.MicroServicevPCI"
390curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
391 "pdpGroup": "default",
392 "policyName": "com.MicroServicevPCI",
393 "policyType": "MicroService"
394}' 'https://pdp:8081/pdp/api/pushPolicy'
395
396sleep 10
397
398echo "pushPolicy : PUT : com.PCIMS_CONFIG_POLICY"
399curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
400 "pdpGroup": "default",
401 "policyName": "com.PCIMS_CONFIG_POLICY",
402 "policyType": "Base"
403}' 'https://pdp:8081/pdp/api/pushPolicy'
404
405sleep 10
406
407echo "pushPolicy : PUT : com.OOF_PCI_CONFIG_POLICY"
408curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{
409 "pdpGroup": "default",
410 "policyName": "com.OOF_PCI_CONFIG_POLICY",
411 "policyType": "Base"
412}' 'https://pdp:8081/pdp/api/pushPolicy'