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' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 34 | IP_ADDRESS = "ip_address" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 35 | |
| 36 | # Capabilities |
| 37 | DUPLEX_MODE_CAPABILITY = 'Duplex mode capability' |
| 38 | BAND_CAPABILITY = 'Band capability' |
| 39 | |
| 40 | # RF-related parameters |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 41 | EARFCNDL = 'earfcndl1' |
| 42 | EARFCNUL = 'earfcnul1' |
| 43 | EARFCNDL2 = 'earfcndl2' |
| 44 | EARFCNUL2 = 'earfcnul2' |
| 45 | EARFCNDL_LIST = 'earfcndl_list' |
| 46 | EARFCNUL_LIST = 'earfcnul_list' |
| 47 | |
| 48 | FREQ_BAND_1 = "freq_band_1" |
| 49 | FREQ_BAND_2 = "freq_band_2" |
| 50 | FREQ_BAND_LIST = "freq_band_list" |
| 51 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 52 | BAND = 'Band' |
| 53 | PCI = 'PCI' |
| 54 | DL_BANDWIDTH = 'DL bandwidth' |
| 55 | UL_BANDWIDTH = 'UL bandwidth' |
| 56 | SUBFRAME_ASSIGNMENT = 'Subframe assignment' |
| 57 | SPECIAL_SUBFRAME_PATTERN = 'Special subframe pattern' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 58 | TX_POWER = "tx_power" |
| 59 | TUNNEL_TYPE = "tunnel_type" |
| 60 | |
| 61 | # Radio Resource Management (RRM) parameters |
| 62 | CARRIER_AGG_ENABLE = "carrier_agg_enable" |
| 63 | CARRIER_NUMBER = "carrier_number" |
| 64 | CONTIGUOUS_CC = "contiguous_cc" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 65 | |
| 66 | # Other LTE parameters |
| 67 | ADMIN_STATE = 'Admin state' |
| 68 | OP_STATE = 'Opstate' |
| 69 | RF_TX_STATUS = 'RF TX status' |
| 70 | |
| 71 | # RAN parameters |
| 72 | CELL_RESERVED = 'Cell reserved' |
| 73 | CELL_BARRED = 'Cell barred' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 74 | PRIM_SOURCE = "prim_source" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 75 | |
| 76 | # Core network parameters |
| 77 | MME_IP = 'MME IP' |
| 78 | MME_PORT = 'MME port' |
| 79 | NUM_PLMNS = 'Num PLMNs' |
| 80 | PLMN = 'PLMN' |
| 81 | PLMN_LIST = 'PLMN List' |
| 82 | |
| 83 | # PLMN parameters |
| 84 | PLMN_N = 'PLMN %d' |
| 85 | PLMN_N_CELL_RESERVED = 'PLMN %d cell reserved' |
| 86 | PLMN_N_ENABLE = 'PLMN %d enable' |
| 87 | PLMN_N_PRIMARY = 'PLMN %d primary' |
| 88 | PLMN_N_PLMNID = 'PLMN %d PLMNID' |
| 89 | |
| 90 | # PLMN arrays are added below |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 91 | TAC = 'tac' |
| 92 | TAC2 = 'tac2' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 93 | IP_SEC_ENABLE = 'IPSec enable' |
| 94 | MME_POOL_ENABLE = 'MME pool enable' |
| 95 | |
| 96 | # Management server parameters |
| 97 | PERIODIC_INFORM_ENABLE = 'Periodic inform enable' |
| 98 | PERIODIC_INFORM_INTERVAL = 'Periodic inform interval' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 99 | ENABLE_CWMP = "enable_cwmp" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 100 | |
| 101 | # Performance management parameters |
| 102 | PERF_MGMT_ENABLE = 'Perf mgmt enable' |
| 103 | PERF_MGMT_UPLOAD_INTERVAL = 'Perf mgmt upload interval' |
| 104 | PERF_MGMT_UPLOAD_URL = 'Perf mgmt upload URL' |
| 105 | PERF_MGMT_USER = 'Perf mgmt username' |
| 106 | PERF_MGMT_PASSWORD = 'Perf mgmt password' |
| 107 | |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame^] | 108 | SAS_ENABLE = "sas_enabled" |
| 109 | SAS_SERVER_URL = "sas_server_url" |
| 110 | SAS_UID = "sas_uid" |
| 111 | SAS_CATEGORY = "sas_category" |
| 112 | SAS_CHANNEL_TYPE = "sas_channel_type" |
| 113 | SAS_CERT_SUBJECT = "sas_cert_subject" |
| 114 | SAS_IC_GROUP_ID = "sas_icg_group_id" |
| 115 | SAS_LOCATION = "sas_location" |
| 116 | SAS_HEIGHT_TYPE = "sas_height_type" |
| 117 | SAS_FCCID = "sas_fccid" |
| 118 | SAS_MEAS_CAPS = "sas_measure_capability" |
| 119 | SAS_MANU_ENABLE = "sas_manufacturer_prefix_enable" |
| 120 | |
| 121 | SAS_CPI_ENABLE = "sas_cpi_enable" |
| 122 | SAS_CPI_IPE = "sas_cpi_ipe" |
| 123 | SAS_CPI_NAME = "sas_cpi_name" |
| 124 | SAS_CPI_ID = "sas_cpi_id" |
| 125 | SAS_CPI_DATA = "sas_cpi_signature_data" |
| 126 | SAS_ANTA_AZIMUTH = "sas_antenna_azimuth" |
| 127 | SAS_ANTA_DOWNTILT = "sas_antenna_downtilt" |
| 128 | SAS_ANTA_GAIN = "sas_antenna_gain" |
| 129 | SAS_ANTA_BEAMWIDTH = "sas_antenna_beamwidth" |
| 130 | |
| 131 | FIRMWARE_VERSION = "firmware_version" |
| 132 | FIRMWARE_URL = "firmware_url" |
| 133 | FIRMWARE_SIZE = "firmware_size" |
| 134 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 135 | |
| 136 | class TrParameterType(): |
| 137 | BOOLEAN = 'boolean' |
| 138 | STRING = 'string' |
| 139 | INT = 'int' |
| 140 | UNSIGNED_INT = 'unsignedInt' |
| 141 | OBJECT = 'object' |