summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
1f9fde9)
Change-Id: I6867304ec4f934a5dee274811000f1e4be365f73
Issue-ID: MODELING-372
Signed-off-by: dengyh <dengyuanhong@chinamobile.com>
# [register]
REG_TO_MSB_WHEN_START = True
# [register]
REG_TO_MSB_WHEN_START = True
REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
+if SSL_ENABLED == "true":
+ enable_ssl = "true"
+else:
+ enable_ssl = "false"
REG_TO_MSB_REG_PARAM = [{
"serviceName": "catalog",
"version": "v1",
REG_TO_MSB_REG_PARAM = [{
"serviceName": "catalog",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/catalog/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/catalog/v1",
"protocol": "REST",
"visualRange": "1",
}, {
"serviceName": "nsd",
"version": "v1",
}, {
"serviceName": "nsd",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/nsd/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/nsd/v1",
"protocol": "REST",
"visualRange": "1",
}, {
"serviceName": "vnfpkgm",
"version": "v1",
}, {
"serviceName": "vnfpkgm",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/vnfpkgm/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/vnfpkgm/v1",
"protocol": "REST",
"visualRange": "1",
}, {
"serviceName": "parser",
"version": "v1",
}, {
"serviceName": "parser",
"version": "v1",
+ "enable_ssl": enable_ssl,
"url": "/api/parser/v1",
"protocol": "REST",
"visualRange": "1",
"url": "/api/parser/v1",
"protocol": "REST",
"visualRange": "1",
sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" modeling/etsicatalog/catalog/pub/config/config.py
fi
sed -i "s|\"ip\": \".*\"|\"ip\": \"$SERVICE_IP\"|" modeling/etsicatalog/catalog/pub/config/config.py
fi
+
+if [ $SSL_ENABLED ]; then
+ sed -i "s|SSL_ENABLED.*|SSL_ENABLED = '$SSL_ENABLED'|" modeling/etsicatalog/catalog/pub/config/config.py
+fi
+
MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1`
MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2`
echo "MYSQL_ADDR=$MYSQL_ADDR"
MYSQL_IP=`echo $MYSQL_ADDR | cut -d: -f 1`
MYSQL_PORT=`echo $MYSQL_ADDR | cut -d: -f 2`
echo "MYSQL_ADDR=$MYSQL_ADDR"