1 # Copyright 2017 ZTE Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 MSB_SERVICE_PROTOCOL = 'http'
17 MSB_SERVICE_IP = '127.0.0.1'
18 MSB_SERVICE_PORT = '80'
19 MSB_BASE_URL = "%s://%s:%s" % (MSB_SERVICE_PROTOCOL, MSB_SERVICE_IP, MSB_SERVICE_PORT)
24 DB_NAME = "etsicatalog"
25 DB_USER = "etsicatalog"
26 DB_PASSWD = "etsicatalog"
29 SERVICE_NAME = "catalog"
30 FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST",
31 "HTTP_X_FORWARDED_SERVER"]
34 REG_TO_MSB_WHEN_START = True
36 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
37 if SSL_ENABLED == "true":
41 REG_TO_MSB_REG_PARAM = [{
42 "serviceName": "catalog",
44 "enable_ssl": enable_ssl,
45 "url": "/api/catalog/v1",
56 "enable_ssl": enable_ssl,
66 "serviceName": "vnfpkgm",
68 "enable_ssl": enable_ssl,
69 "url": "/api/vnfpkgm/v1",
78 "serviceName": "parser",
80 "enable_ssl": enable_ssl,
81 "url": "/api/parser/v1",
90 MSB_SVC_CALALOG_URL = "/api/microservices/v1/services/catalog/version/v1"
91 MSB_SVC_NSD_URL = "/api/microservices/v1/services/nsd/version/v1"
92 MSB_SVC_VNFPKGM_URL = "/api/microservices/v1/services/vnfpkgm/version/v1"
93 MSB_SVC_PARSER_URL = "/api/microservices/v1/services/parser/version/v1"
95 # catalog path(values is defined in settings.py)
96 CATALOG_ROOT_PATH = None
97 CATALOG_URL_PATH = None
100 SDC_BASE_URL = MSB_BASE_URL + "/api"
101 SDC_USER = "modeling"
102 SDC_PASSWD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
105 DMAAP_MR_IP = MSB_SERVICE_IP
106 DMAAP_MR_PORT = '30226'
107 CONSUMER_GROUP = "consumerGroup"
108 CONSUMER_ID = "consumerId"
109 POLLING_INTERVAL = 15
111 VNFD_SCHEMA_VERSION_DEFAULT = "base"