b9afbe6427c7d93c8fc92ced5a1303f0c624d957
[vfc/nfvo/lcm.git] / lcm / pub / config / config.py
1 # Copyright 2016 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 import os
15
16 # [MSB]
17 MSB_SERVICE_IP = '127.0.0.1'
18 MSB_SERVICE_PORT = '80'
19
20 # [IMAGE LOCAL PATH]
21 ROOT_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
22 IMAGE_ROOT_PATH = os.path.join(ROOT_PATH, "/VmNfvo/VnfProduct")
23
24 # [REDIS]
25 REDIS_HOST = '127.0.0.1'
26 REDIS_PORT = '6379'
27 REDIS_PASSWD = ''
28
29 # [mysql]
30 DB_IP = "127.0.0.1"
31 DB_PORT = 3306
32 DB_NAME = "vfcnfvolcm"
33 DB_USER = "vfcnfvolcm"
34 DB_PASSWD = "vfcnfvolcm"
35
36 # [MDC]
37 SERVICE_NAME = "nslcm"
38 FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST",
39                         "HTTP_X_FORWARDED_SERVER"]
40
41 # [register]
42 REG_TO_MSB_WHEN_START = True
43 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
44 REG_TO_MSB_REG_PARAM = {
45     "serviceName": "nslcm",
46     "version": "v1",
47     "url": "/api/nslcm/v1",
48     "protocol": "REST",
49     "visualRange": "1",
50     "nodes": [{
51         "ip": "127.0.0.1",
52         "port": "8403",
53         "ttl": 0
54     }]
55 }
56
57 # delete image from vim option when delete csar
58 IGNORE_DEL_IMG_WEHN_DEL_CSAR = True
59
60 # catalog path(values is defined in settings.py)
61 CATALOG_ROOT_PATH = None
62 CATALOG_URL_PATH = None
63
64 # [aai config]
65 AAI_BASE_URL = "http://127.0.0.1:80/aai/v11"
66 AAI_USER = "AAI"
67 AAI_PASSWD = "AAI"
68 REPORT_TO_AAI = True
69
70 # [sdc config]
71 SDC_BASE_URL = "http://127.0.0.1:80/api"
72 SDC_USER = "SDC"
73 SDC_PASSWD = "SDC"
74
75 # [workflow]
76 DEPLOY_WORKFLOW_WHEN_START = False
77 # Support option: activiti/wso2/buildin
78 WORKFLOW_OPTION = "buildin"