Update report resoure code and other files
[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_SERVICE_IP = '127.0.0.1'
23 AAI_SERVICE_PORT = '8443'
24 AAI_BASE_URL = "https://%s:%s/aai/v8" % (AAI_SERVICE_IP, AAI_SERVICE_PORT)
25 AAI_USER = "AAI"
26 AAI_PASSWORD = "AAI"
27 CLOUD_OWNER = "11"
28 CLOUD_REGION_ID = ""
29 TENANT_ID = ""
30
31 # [REDIS]
32 REDIS_HOST = '127.0.0.1'
33 REDIS_PORT = '6379'
34 REDIS_PASSWD = ''
35
36 # [mysql]
37 DB_IP = "127.0.0.1"
38 DB_PORT = 3306
39 DB_NAME = "gvnfm"
40 DB_USER = "gvnfm"
41 DB_PASSWD = "gvnfm"
42
43 # [register]
44 REG_TO_MSB_WHEN_START = True
45 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
46 REG_TO_MSB_REG_PARAM = {
47     "serviceName": "vnflcm",
48     "version": "v1",
49     "url": "/api/vnflcm/v1",
50     "protocol": "REST",
51     "visualRange": "1",
52     "nodes": [{
53         "ip": "127.0.0.1",
54         "port": "8801",
55         "ttl": 0
56     }]
57 }