diff options
Diffstat (limited to 'config/pe')
-rw-r--r-- | config/pe/brmsgw.conf | 2 | ||||
-rw-r--r-- | config/pe/push-policies.sh | 43 |
2 files changed, 42 insertions, 3 deletions
diff --git a/config/pe/brmsgw.conf b/config/pe/brmsgw.conf index a14a03d6..01e59822 100644 --- a/config/pe/brmsgw.conf +++ b/config/pe/brmsgw.conf @@ -47,7 +47,7 @@ BRMS_UEB_URL= BRMS_UEB_TOPIC= BRMS_UEB_DELAY= BRMS_CLIENT_ID=python -BRMS_CLIENT_KEY=test +BRMS_CLIENT_KEY=dGVzdA== BRMS_UEB_API_KEY= BRMS_UEB_API_SECRET= diff --git a/config/pe/push-policies.sh b/config/pe/push-policies.sh index bd841f15..02d1f254 100644 --- a/config/pe/push-policies.sh +++ b/config/pe/push-policies.sh @@ -43,7 +43,28 @@ curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Acce sleep 2 -echo "pushPolicy : DELETE : com.BRMSParamvFWDemoPolicy.1.xml" +echo "deletePolicy : DELETE : com.vFirewall" +curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ +"pdpGroup": "default", +"policyComponent": "PDP", +"policyName": "com.vFirewall", +"policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/deletePolicy' + + +sleep 2 + +echo "deletePolicy : DELETE : com.vLoadBalancer" +curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ +"pdpGroup": "default", +"policyComponent": "PDP", +"policyName": "com.vLoadBalancer", +"policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/deletePolicy' + +sleep 2 + +echo "deletePolicy : DELETE : com.BRMSParamvFWDemoPolicy" curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", "policyComponent": "PDP", @@ -54,7 +75,7 @@ curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'A sleep 2 -echo "pushPolicy : DELETE : com.BRMSParamvLBDemoPolicy.1.xml" +echo "deletePolicy : DELETE : com.BRMSParamvLBDemoPolicy" curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", "policyComponent": "PDP", @@ -64,6 +85,24 @@ curl -v --silent -X DELETE --header 'Content-Type: application/json' --header 'A sleep 2 +echo "pushPolicy : PUT : com.vFirewall" +curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ + "pdpGroup": "default", + "policyName": "com.vFirewall", + "policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/pushPolicy' + +sleep 2 + +echo "pushPolicy : PUT : com.vLoadBalancer" +curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ + "pdpGroup": "default", + "policyName": "com.vLoadBalancer", + "policyType": "MicroService" +}' 'http://pdp:8081/pdp/api/pushPolicy' + +sleep 2 + echo "pushPolicy : PUT : com.BRMSParamvLBDemoPolicy" curl -v --silent -X PUT --header 'Content-Type: application/json' --header 'Accept: text/plain' --header 'ClientAuth: cHl0aG9uOnRlc3Q=' --header 'Authorization: Basic dGVzdHBkcDphbHBoYTEyMw==' --header 'Environment: TEST' -d '{ "pdpGroup": "default", |