Update license
[multicloud/framework.git] / multivimbroker / multivimbroker / pub / config / config.py
1 # Copyright (c) 2017 Wind River Systems, Inc.
2 # Copyright (c) 2017-2018 VMware, Inc.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at:
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
13 import os
14
15 # [MSB]
16 MSB_SERVICE_IP = '127.0.0.1'
17 MSB_SERVICE_PORT = '10080'
18
19
20 # [ESR]
21 # ESR_GET_VIM_URI = "/api/extsys/v1/vims"
22
23 # [A&AI]
24 AAI_ADDR = "aai.api.simpledemo.openecomp.org"
25 AAI_PORT = "8443"
26 AAI_SERVICE_URL = 'https://%s:%s/aai' % (AAI_ADDR, AAI_PORT)
27 AAI_SCHEMA_VERSION = "v11"
28 AAI_USERNAME = 'AAI'
29 AAI_PASSWORD = 'AAI'
30
31 # [IMAGE LOCAL PATH]
32 ROOT_PATH = os.path.dirname(
33     os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
34
35 # [REDIS]
36 REDIS_HOST = '127.0.0.1'
37 REDIS_PORT = '6379'
38 REDIS_PASSWD = ''
39
40 # [register]
41 REG_TO_MSB_WHEN_START = False
42 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
43 REG_TO_MSB_REG_PARAM = {
44     "serviceName": "multicloud",
45     "version": "v0",
46     "url": "/api/multicloud/v0",
47     "protocol": "REST",
48     "visualRange": "1",
49     "nodes": [{
50         "ip": "127.0.0.1",
51         "port": "9001",
52         "ttl": 0
53     }]
54 }