update the namespace for multicloud/framework
[multicloud/framework.git] / multivimbroker / multivimbroker / pub / config / config.py
1 # Copyright (c) 2017 Wind River Systems, Inc.
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 #       http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
12 import os
13
14 # [MSB]
15 MSB_SERVICE_IP = '127.0.0.1'
16 MSB_SERVICE_PORT = '10080'
17
18 # [ESR]
19 ESR_GET_VIM_URI = "/api/extsys/v1/vims"
20
21 # [IMAGE LOCAL PATH]
22 ROOT_PATH = os.path.dirname(
23     os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
24
25 # [REDIS]
26 REDIS_HOST = '127.0.0.1'
27 REDIS_PORT = '6379'
28 REDIS_PASSWD = ''
29
30 # [mysql]
31 DB_IP = "127.0.0.1"
32 DB_PORT = 3306
33 DB_NAME = "multivimbroker"
34 DB_USER = "root"
35 DB_PASSWD = "password"
36
37 # [register]
38 REG_TO_MSB_WHEN_START = True
39 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
40 REG_TO_MSB_REG_PARAM = {
41     "serviceName": "multivim",
42     "version": "v1",
43     "url": "/api/multicloud/v0",
44     "protocol": "REST",
45     "visualRange": "1",
46     "nodes": [{
47         "ip": "127.0.0.1",
48         "port": "9001",
49         "ttl": 0
50     }]
51 }