e0bad35de75f4e093174f32663fcfe1e31b0be21
[demo.git] / tutorials / ApacheCNF / automation / onap_settings.py
1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Orange
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 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16 # ============LICENSE_END=========================================================
17
18 """Global settings module."""  # pylint: disable=bad-whitespace
19 # uncomment if socks is used
20 #from onapsdk.onap_service import OnapService
21
22 ######################
23 #                    #
24 # ONAP SERVICES URLS #
25 #                    #
26 ######################
27
28 AAI_URL         = "https://aai.api.sparky.simpledemo.onap.org:30233"
29 AAI_API_VERSION = "v23"
30 AAI_AUTH        = "Basic QUFJOkFBSQ=="
31 CDS_URL         = "http://portal.api.simpledemo.onap.org:30449"
32 CDS_AUTH        = ("ccsdkapps", "ccsdkapps")
33 MSB_URL         = "https://msb.api.simpledemo.onap.org:30283"
34 SDC_BE_URL      = "https://sdc.api.be.simpledemo.onap.org:30204"
35 SDC_FE_URL      = "https://sdc.api.fe.simpledemo.onap.org:30207"
36 SDC_AUTH        = "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
37 SDNC_URL        = "https://sdnc.api.simpledemo.onap.org:30267"
38 SDNC_AUTH       = "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
39 SO_URL          = "http://so.api.simpledemo.onap.org:30277"
40 SO_API_VERSION  = "v7"
41 SO_AUTH         = "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
42 SO_CAT_DB_AUTH  = "Basic YnBlbDpwYXNzd29yZDEk"
43 VID_URL         = "https://vid.api.simpledemo.onap.org:30200"
44 VID_API_VERSION = "/vid"
45 CLAMP_URL       = "https://clamp.api.simpledemo.onap.org:30258"
46 CLAMP_AUTH      = "Basic ZGVtb0BwZW9wbGUub3NhYWYub3JnOmRlbW8xMjM0NTYh"
47 VES_URL         = "http://ves.api.simpledemo.onap.org:30417"
48 DMAAP_URL       = "http://dmaap.api.simpledemo.onap.org:3904"
49 NBI_URL         = "https://nbi.api.simpledemo.onap.org:30274"
50 NBI_API_VERSION = "/nbi/api/v4"
51 DCAEMOD_URL = ""
52 HOLMES_URL = "https://aai.api.sparky.simpledemo.onap.org:30293"
53 POLICY_URL = ""
54
55 ## GUI
56 AAI_GUI_URL = "https://aai.api.sparky.simpledemo.onap.org:30220"
57 AAI_GUI_SERVICE = f"{AAI_GUI_URL}/services/aai/webapp/index.html#/browse"
58 CDS_GUI_SERVICE = f"{CDS_URL}/"
59 SO_MONITOR_GUI_SERVICE = f"{SO_URL}/"
60 SDC_GUI_SERVICE = f"{SDC_FE_URL}/sdc1/portal"
61 SDNC_DG_GUI_SERVICE = f"{SDNC_URL}/nifi/"
62 SDNC_ODL_GUI_SERVICE = f"{SDNC_URL}/odlux/index.html"
63
64 DCAEMOD_GUI_SERVICE = f"{DCAEMOD_URL}/"
65 HOLMES_GUI_SERVICE = f"{HOLMES_URL}/iui/holmes/default.html"
66 POLICY_GUI_SERVICE = f"{POLICY_URL}/onap/login.html"
67 POLICY_CLAMP_GUI_SERVICE = f"{CLAMP_URL}/"
68
69 # uncomment if socks is used
70 #OnapService.set_proxy({'http': 'socks5h://127.0.0.1:8081', 'https': 'socks5h://127.0.0.1:8081'})
71
72 # execute in the shell to apply these settings
73 # export ONAP_PYTHON_SDK_SETTINGS="onap_settings"