Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 1 | """ |
| 2 | Copyright 2020 The Magma Authors. |
| 3 | |
| 4 | This source code is licensed under the BSD-style license found in the |
| 5 | LICENSE file in the root directory of this source tree. |
| 6 | |
| 7 | Unless required by applicable law or agreed to in writing, software |
| 8 | distributed under the License is distributed on an "AS IS" BASIS, |
| 9 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 10 | See the License for the specific language governing permissions and |
| 11 | limitations under the License. |
| 12 | """ |
| 13 | |
| 14 | |
| 15 | class ParameterName(): |
| 16 | # Top-level objects |
| 17 | DEVICE = 'Device' |
| 18 | FAP_SERVICE = 'FAPService' |
| 19 | |
| 20 | # Device info parameters |
| 21 | GPS_STATUS = 'GPS status' |
| 22 | PTP_STATUS = 'PTP status' |
| 23 | MME_STATUS = 'MME status' |
| 24 | REM_STATUS = 'REM status' |
| 25 | |
| 26 | LOCAL_GATEWAY_ENABLE = 'Local gateway enable' |
| 27 | GPS_ENABLE = 'GPS enable' |
| 28 | GPS_LAT = 'GPS lat' |
| 29 | GPS_LONG = 'GPS long' |
| 30 | SW_VERSION = 'SW version' |
| 31 | |
| 32 | SERIAL_NUMBER = 'Serial number' |
| 33 | CELL_ID = 'Cell ID' |
| 34 | |
| 35 | # Capabilities |
| 36 | DUPLEX_MODE_CAPABILITY = 'Duplex mode capability' |
| 37 | BAND_CAPABILITY = 'Band capability' |
| 38 | |
| 39 | # RF-related parameters |
| 40 | EARFCNDL = 'EARFCNDL' |
| 41 | EARFCNUL = 'EARFCNUL' |
| 42 | BAND = 'Band' |
| 43 | PCI = 'PCI' |
| 44 | DL_BANDWIDTH = 'DL bandwidth' |
| 45 | UL_BANDWIDTH = 'UL bandwidth' |
| 46 | SUBFRAME_ASSIGNMENT = 'Subframe assignment' |
| 47 | SPECIAL_SUBFRAME_PATTERN = 'Special subframe pattern' |
| 48 | |
| 49 | # Other LTE parameters |
| 50 | ADMIN_STATE = 'Admin state' |
| 51 | OP_STATE = 'Opstate' |
| 52 | RF_TX_STATUS = 'RF TX status' |
| 53 | |
| 54 | # RAN parameters |
| 55 | CELL_RESERVED = 'Cell reserved' |
| 56 | CELL_BARRED = 'Cell barred' |
| 57 | |
| 58 | # Core network parameters |
| 59 | MME_IP = 'MME IP' |
| 60 | MME_PORT = 'MME port' |
| 61 | NUM_PLMNS = 'Num PLMNs' |
| 62 | PLMN = 'PLMN' |
| 63 | PLMN_LIST = 'PLMN List' |
| 64 | |
| 65 | # PLMN parameters |
| 66 | PLMN_N = 'PLMN %d' |
| 67 | PLMN_N_CELL_RESERVED = 'PLMN %d cell reserved' |
| 68 | PLMN_N_ENABLE = 'PLMN %d enable' |
| 69 | PLMN_N_PRIMARY = 'PLMN %d primary' |
| 70 | PLMN_N_PLMNID = 'PLMN %d PLMNID' |
| 71 | |
| 72 | # PLMN arrays are added below |
| 73 | TAC = 'TAC' |
| 74 | IP_SEC_ENABLE = 'IPSec enable' |
| 75 | MME_POOL_ENABLE = 'MME pool enable' |
| 76 | |
| 77 | # Management server parameters |
| 78 | PERIODIC_INFORM_ENABLE = 'Periodic inform enable' |
| 79 | PERIODIC_INFORM_INTERVAL = 'Periodic inform interval' |
| 80 | |
| 81 | # Performance management parameters |
| 82 | PERF_MGMT_ENABLE = 'Perf mgmt enable' |
| 83 | PERF_MGMT_UPLOAD_INTERVAL = 'Perf mgmt upload interval' |
| 84 | PERF_MGMT_UPLOAD_URL = 'Perf mgmt upload URL' |
| 85 | PERF_MGMT_USER = 'Perf mgmt username' |
| 86 | PERF_MGMT_PASSWORD = 'Perf mgmt password' |
| 87 | |
| 88 | |
| 89 | class TrParameterType(): |
| 90 | BOOLEAN = 'boolean' |
| 91 | STRING = 'string' |
| 92 | INT = 'int' |
| 93 | UNSIGNED_INT = 'unsignedInt' |
| 94 | OBJECT = 'object' |