Enbo Wang | 6ab8b62 | 2019-04-23 13:42:21 +0000 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | import sys |
| 4 | |
| 5 | SWM_DIR = sys.path[0] |
| 6 | |
| 7 | NE_INFO_TABLE = SWM_DIR + "/ems_db/ne_info_table.json" |
| 8 | SW_SERVER_SIMULATOR = SWM_DIR + "/sw_server_simulator" |
| 9 | PNF_SIMULATORS_DIR = SWM_DIR + "/pnf_simulators" |
| 10 | PNF_SW_DOWNLOAD_DIR = "/opt/download" |
| 11 | PNF_SW_INSTALL_DIR = "/opt/install" |
| 12 | PNF_SW_FALLBACK_DIR = "/opt/fallback" |
| 13 | MANIFEST_FILE = "manifest.json" |
| 14 | INSTALLED_SW = "installed_sw.json" |
| 15 | CURRENT_VERSION_DIR = "current" |
| 16 | NOTIFICATION_DIR = "/tmp" |
| 17 | |
| 18 | MAX_INT = (2**32) - 1 |
| 19 | |
| 20 | STATUS_DOWNLOADING = "Downloading" |
| 21 | STATUS_INSTALLING = "Installing" |
| 22 | STATUS_ACTIVATING = "Activating" |
| 23 | STATUS_ACTIVATED = "Activated" |
| 24 | |
| 25 | STATUS_PRECHECKED = "PreChecked" |
| 26 | STATUS_POSTCHECKED = "PostChecked" |
| 27 | |
| 28 | REQ_SUCCESS = "requestAccepted" |
| 29 | REQ_FAILURE = "requestFailed" |
| 30 | |
| 31 | RET_CODE_SUCCESS = 0 |
| 32 | RET_CODE_FAILURE = 1 |
| 33 | |
| 34 | RESULT_SUCCESS = "Success" |
| 35 | RESULT_FAILURE = "Failure" |
| 36 | RESULT_PARTLY = "Partly successful" |
| 37 | |