summaryrefslogtreecommitdiffstats
path: root/policy-management/src/main/server-gen/bin/rest-add-controller
diff options
context:
space:
mode:
Diffstat (limited to 'policy-management/src/main/server-gen/bin/rest-add-controller')
-rw-r--r--policy-management/src/main/server-gen/bin/rest-add-controller10
1 files changed, 5 insertions, 5 deletions
diff --git a/policy-management/src/main/server-gen/bin/rest-add-controller b/policy-management/src/main/server-gen/bin/rest-add-controller
index 0dd82eec..98b5702b 100644
--- a/policy-management/src/main/server-gen/bin/rest-add-controller
+++ b/policy-management/src/main/server-gen/bin/rest-add-controller
@@ -4,7 +4,7 @@
# ============LICENSE_START=======================================================
# policy-management
# ================================================================================
-# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -25,12 +25,12 @@ source $POLICY_HOME/etc/profile.d/env.sh
json=$1-controller.rest.json
if [ -f ${json} ]; then
- if [[ -n ${ENGINE_MANAGEMENT_PASSWORD} ]]; then
- curl -k --silent --user ${ENGINE_MANAGEMENT_USER}:${ENGINE_MANAGEMENT_PASSWORD} -X POST --data @${json} --header "Content-Type: application/json" \
- https://localhost:${ENGINE_MANAGEMENT_PORT}/policy/pdp/engine/controllers
+ if [[ -n ${TELEMETRY_PASSWORD} ]]; then
+ curl -k --silent --user ${TELEMETRY_USER}:${TELEMETRY_PASSWORD} -X POST --data @${json} --header "Content-Type: application/json" \
+ https://localhost:${TELEMETRY_PORT}/policy/pdp/engine/controllers
else
curl -k --silent -X POST --data @${json} --header "Content-Type: application/json" \
- https://localhost:${ENGINE_MANAGEMENT_PORT}/policy/pdp/engine/controllers
+ https://localhost:${TELEMETRY_PORT}/policy/pdp/engine/controllers
fi
else
echo "Usage: rest-add-controller.sh closed-loop-sample|reporter|sepc|vsegw|.. (or any other config file ending with *-controller.rest.json)"