Change gvnfm-vnflcm aai config
[vfc/gvnfm/vnflcm.git] / lcm / lcm / 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 import os
16
17 # [MSB]
18 MSB_SERVICE_IP = '127.0.0.1'
19 MSB_SERVICE_PORT = '80'
20
21 # [AAI]
22 AAI_BASE_URL = "https://127.0.0.1:8443/aai/v11"
23 AAI_USER = "AAI"
24 AAI_PASSWORD = "AAI"
25 REPORT_TO_AAI = False
26
27
28 # [REDIS]
29 REDIS_HOST = '127.0.0.1'
30 REDIS_PORT = '6379'
31 REDIS_PASSWD = ''
32
33 # [mysql]
34 DB_IP = "127.0.0.1"
35 DB_PORT = 3306
36 DB_NAME = "gvnfm"
37 DB_USER = "gvnfm"
38 DB_PASSWD = "gvnfm"
39
40 # [register]
41 REG_TO_MSB_WHEN_START = True
42 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
43 REG_TO_MSB_REG_PARAM = {
44     "serviceName": "vnflcm",
45     "version": "v1",
46     "url": "/api/vnflcm/v1",
47     "protocol": "REST",
48     "visualRange": "1",
49     "nodes": [{
50         "ip": "127.0.0.1",
51         "port": "8801",
52         "ttl": 0
53     }]
54 }