summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Mokry <michael.mokry@att.com>2018-11-13 09:33:51 -0600
committerMichael Mokry <michael.mokry@att.com>2018-11-14 15:09:14 +0000
commita72ccecc581896f88a8f5ac0ce45bfcae74da6de (patch)
tree8c712733964aafc1ab1edc8676712bfe551a7b46
parent8b2837109495afab4b31e39c1e70a266ece3ceba (diff)
Fix bug in Guard policies for Docker1.3.4
Modified push-policies.sh to fix pre-loaded guard policies Change-Id: I8716079d6abb0b1ac2872c55b4450bf69842c163 Issue-ID: POLICY-1257 Signed-off-by: Michael Mokry <michael.mokry@att.com> (cherry picked from commit 5c2b280fbc04014a120c516e4b9531f15380e8e8)
-rwxr-xr-xconfig/pe/push-policies.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh
index a07f8869..094fe9ba 100755
--- a/config/pe/push-policies.sh
+++ b/config/pe/push-policies.sh
@@ -253,7 +253,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"policyClass": "Decision",
"policyName": "com.AllPermitGuard",
"policyDescription": "Testing all Permit YAML Guard Policy",
- "ecompName": "PDPD",
+ "onapName": "PDPD",
"ruleProvider": "GUARD_YAML",
"attributes": {
"MATCHING": {
@@ -265,7 +265,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"timeWindow": "1",
"timeUnits": "minute",
"guardActiveStart": "00:00:01-05:00",
- "guardActiveEnd": "00:00:00-05:00"
+ "guardActiveEnd": "23:59:59-05:00"
}
}
}' 'https://pdp:8081/pdp/api/createPolicy'
@@ -277,7 +277,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"policyClass": "Decision",
"policyName": "com.vDNS_Frequency",
"policyDescription": "Limit vDNS Scale Up over time period",
- "ecompName": "PDPD",
+ "onapName": "PDPD",
"ruleProvider": "GUARD_YAML",
"attributes": {
"MATCHING": {
@@ -289,7 +289,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"timeWindow": "10",
"timeUnits": "minute",
"guardActiveStart": "00:00:01-05:00",
- "guardActiveEnd": "00:00:00-05:00"
+ "guardActiveEnd": "23:59:59-05:00"
}
}
}' 'https://pdp:8081/pdp/api/createPolicy'
@@ -301,7 +301,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"policyClass": "Decision",
"policyName": "com.vDNS_MinMax",
"policyDescription": "Ensure number of instances within a range",
- "ecompName": "PDPD",
+ "onapName": "SampleDemo",
"ruleProvider": "GUARD_MIN_MAX",
"attributes": {
"MATCHING": {
@@ -312,7 +312,7 @@ curl -k -v --silent -X PUT --header 'Content-Type: application/json' --header 'A
"min": "1",
"max": "5",
"guardActiveStart": "00:00:01-05:00",
- "guardActiveEnd": "00:00:00-05:00"
+ "guardActiveEnd": "23:59:59-05:00"
}
}
}' 'https://pdp:8081/pdp/api/createPolicy'