Get VIM info from A&AI
[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
19 # [ESR]
20 # ESR_GET_VIM_URI = "/api/extsys/v1/vims"
21
22 # [A&AI]
23 AAI_ADDR = "aai.api.simpledemo.openecomp.org"
24 AAI_PORT = "8443"
25 AAI_SERVICE_URL = 'https://%s:%s/aai' % (AAI_ADDR, AAI_PORT)
26 AAI_SCHEMA_VERSION = "v11"
27 AAI_USERNAME = 'AAI'
28 AAI_PASSWORD = 'AAI'
29
30 # [IMAGE LOCAL PATH]
31 ROOT_PATH = os.path.dirname(
32     os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
33
34 # [REDIS]
35 REDIS_HOST = '127.0.0.1'
36 REDIS_PORT = '6379'
37 REDIS_PASSWD = ''
38
39 # [register]
40 REG_TO_MSB_WHEN_START = False
41 REG_TO_MSB_REG_URL = "/api/microservices/v1/services"
42 REG_TO_MSB_REG_PARAM = {
43     "serviceName": "multivim",
44     "version": "v1",
45     "url": "/api/multicloud/v0",
46     "protocol": "REST",
47     "visualRange": "1",
48     "nodes": [{
49         "ip": "127.0.0.1",
50         "port": "9001",
51         "ttl": 0
52     }]
53 }