blob: 5aac383d90b06285f270ee96a1248c0a37210911 [file] [log] [blame]
Enbo Wang818f76a2020-03-04 00:42:31 +08001# ============LICENSE_START=======================================================
2# ONAP - SO
3# ================================================================================
4# Copyright (C) 2020 Huawei Technologies Co., Ltd. All rights reserved.
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=========================================================
Enbo Wang6ab8b622019-04-23 13:42:21 +000018
19import sys
Enbo Wang818f76a2020-03-04 00:42:31 +080020import os
Enbo Wang6ab8b622019-04-23 13:42:21 +000021
22SWM_DIR = sys.path[0]
23
Enbo Wang818f76a2020-03-04 00:42:31 +080024LOGGER_FORMAT = "[%(asctime)-15s] %(levelname)s [%(name)s]: %(message)s"
25LOGGER_FILE_DIR = os.path.join(SWM_DIR, "log")
26
27NE_INFO_TABLE = os.path.join(SWM_DIR, "ems_db", "ne_info_table.json")
28SW_SERVER_SIMULATOR = os.path.join(SWM_DIR, "sw_server_simulator")
29PNF_SIMULATORS_DIR = os.path.join(SWM_DIR, "pnf_simulators")
30COMMON_PATH = "opt"
31PNF_SW_DOWNLOAD_DIR = "download"
32PNF_SW_INSTALL_DIR = "install"
Enbo Wang6ab8b622019-04-23 13:42:21 +000033MANIFEST_FILE = "manifest.json"
Enbo Wang818f76a2020-03-04 00:42:31 +080034INSTALLED_SW_FILE = "installed_sw.json"
Enbo Wang6ab8b622019-04-23 13:42:21 +000035CURRENT_VERSION_DIR = "current"
36NOTIFICATION_DIR = "/tmp"
37
38MAX_INT = (2**32) - 1
39
Enbo Wang818f76a2020-03-04 00:42:31 +080040OBJECT_CLASS = "NRCellDU"
41OBJECT_INSTANCE = "DC=com, SubNetwork=1, ManagedElement=123, GNBDUFunction=1, NRCellDU=1"
42SYSTEM_DN = "DC=com, SubNetwork=1, ManagedElement=123"
43
Enbo Wang6ab8b622019-04-23 13:42:21 +000044STATUS_DOWNLOADING = "Downloading"
45STATUS_INSTALLING = "Installing"
46STATUS_ACTIVATING = "Activating"
47STATUS_ACTIVATED = "Activated"
48
49STATUS_PRECHECKED = "PreChecked"
50STATUS_POSTCHECKED = "PostChecked"
51
52REQ_SUCCESS = "requestAccepted"
53REQ_FAILURE = "requestFailed"
54
55RET_CODE_SUCCESS = 0
56RET_CODE_FAILURE = 1
57
58RESULT_SUCCESS = "Success"
59RESULT_FAILURE = "Failure"
60RESULT_PARTLY = "Partly successful"