Merge "Bump minor version"
[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 # [register]
37 REG_TO_MSB_WHEN_START = True
38 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
39 REG_TO_MSB_REG_PARAM = {
40     "serviceName": "nslcm",
41     "version": "v1",
42     "url": "/api/nslcm/v1",
43     "protocol": "REST",
44     "visualRange": "1",
45     "nodes": [{
46         "ip": "127.0.0.1",
47         "port": "8403",
48         "ttl": 0
49     }]
50 }
51
52 # delete image from vim option when delete csar
53 IGNORE_DEL_IMG_WEHN_DEL_CSAR = True
54
55 # catalog path(values is defined in settings.py)
56 CATALOG_ROOT_PATH = None
57 CATALOG_URL_PATH = None
58
59 # [aai config]
60 AAI_BASE_URL = "http://%s:%s/aai/v11" % (MSB_SERVICE_IP, MSB_SERVICE_PORT)
61 AAI_USER = "AAI"
62 AAI_PASSWD = "AAI"
63 REPORT_TO_AAI = True
64
65 # [sdc config]
66 SDC_BASE_URL = "http://%s:%s/api" % (MSB_SERVICE_IP, MSB_SERVICE_PORT)
67 SDC_USER = "SDC"
68 SDC_PASSWD = "SDC"
69
70 # [workflow]
71 DEPLOY_WORKFLOW_WHEN_START = False
72 # Support option: activiti/wso2/buildin
73 WORKFLOW_OPTION = "buildin"