rename package name
[modeling/etsicatalog.git] / catalog / pub / config / config.py
1 # Copyright 2017 ZTE Corporation.
2 #
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
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14
15 # [MSB]
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)
20
21 # [mysql]
22 DB_IP = "127.0.0.1"
23 DB_PORT = 3306
24 DB_NAME = "etsicatalog"
25 DB_USER = "etsicatalog"
26 DB_PASSWD = "etsicatalog"
27
28 # [MDC]
29 SERVICE_NAME = "catalog"
30 FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST",
31                         "HTTP_X_FORWARDED_SERVER"]
32
33 # [register]
34 REG_TO_MSB_WHEN_START = True
35 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
36 REG_TO_MSB_REG_PARAM = [{
37     "serviceName": "catalog",
38     "version": "v1",
39     "url": "/api/catalog/v1",
40     "protocol": "REST",
41     "visualRange": "1",
42     "nodes": [{
43         "ip": "127.0.0.1",
44         "port": "8806",
45         "ttl": 0
46     }]
47 }, {
48     "serviceName": "nsd",
49     "version": "v1",
50     "url": "/api/nsd/v1",
51     "protocol": "REST",
52     "visualRange": "1",
53     "nodes": [{
54         "ip": "127.0.0.1",
55         "port": "8806",
56         "ttl": 0
57     }]
58 }, {
59     "serviceName": "vnfpkgm",
60     "version": "v1",
61     "url": "/api/vnfpkgm/v1",
62     "protocol": "REST",
63     "visualRange": "1",
64     "nodes": [{
65         "ip": "127.0.0.1",
66         "port": "8806",
67         "ttl": 0
68     }]
69 }, {
70     "serviceName": "parser",
71     "version": "v1",
72     "url": "/api/parser/v1",
73     "protocol": "REST",
74     "visualRange": "1",
75     "nodes": [{
76         "ip": "127.0.0.1",
77         "port": "8806",
78         "ttl": 0
79     }]
80 }]
81 MSB_SVC_CALALOG_URL = "/api/microservices/v1/services/catalog/version/v1"
82 MSB_SVC_NSD_URL = "/api/microservices/v1/services/nsd/version/v1"
83 MSB_SVC_VNFPKGM_URL = "/api/microservices/v1/services/vnfpkgm/version/v1"
84 MSB_SVC_PARSER_URL = "/api/microservices/v1/services/parser/version/v1"
85
86 # catalog path(values is defined in settings.py)
87 CATALOG_ROOT_PATH = None
88 CATALOG_URL_PATH = None
89
90 # [sdc config]
91 SDC_BASE_URL = "https://msb-iag/api"
92 SDC_USER = "modeling"
93 SDC_PASSWD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
94
95 # [dmaap config]
96 DMAAP_MR_IP = '127.0.0.1'
97 DMAAP_MR_PORT = '3904'
98 CONSUMER_GROUP = "consumerGroup"
99 CONSUMER_ID = "consumerId"
100 POLLING_INTERVAL = 15
101
102 VNFD_SCHEMA_VERSION_DEFAULT = "base"