Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame^] | 1 | # SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 5 | |
| 6 | class ParameterName(): |
| 7 | # Top-level objects |
| 8 | DEVICE = 'Device' |
| 9 | FAP_SERVICE = 'FAPService' |
| 10 | |
| 11 | # Device info parameters |
| 12 | GPS_STATUS = 'GPS status' |
| 13 | PTP_STATUS = 'PTP status' |
| 14 | MME_STATUS = 'MME status' |
| 15 | REM_STATUS = 'REM status' |
| 16 | |
| 17 | LOCAL_GATEWAY_ENABLE = 'Local gateway enable' |
| 18 | GPS_ENABLE = 'GPS enable' |
| 19 | GPS_LAT = 'GPS lat' |
| 20 | GPS_LONG = 'GPS long' |
| 21 | SW_VERSION = 'SW version' |
| 22 | |
| 23 | SERIAL_NUMBER = 'Serial number' |
| 24 | CELL_ID = 'Cell ID' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 25 | IP_ADDRESS = "ip_address" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 26 | |
| 27 | # Capabilities |
| 28 | DUPLEX_MODE_CAPABILITY = 'Duplex mode capability' |
| 29 | BAND_CAPABILITY = 'Band capability' |
| 30 | |
| 31 | # RF-related parameters |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 32 | EARFCNDL = 'earfcndl1' |
| 33 | EARFCNUL = 'earfcnul1' |
| 34 | EARFCNDL2 = 'earfcndl2' |
| 35 | EARFCNUL2 = 'earfcnul2' |
| 36 | EARFCNDL_LIST = 'earfcndl_list' |
| 37 | EARFCNUL_LIST = 'earfcnul_list' |
| 38 | |
| 39 | FREQ_BAND_1 = "freq_band_1" |
| 40 | FREQ_BAND_2 = "freq_band_2" |
| 41 | FREQ_BAND_LIST = "freq_band_list" |
| 42 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 43 | BAND = 'Band' |
| 44 | PCI = 'PCI' |
| 45 | DL_BANDWIDTH = 'DL bandwidth' |
| 46 | UL_BANDWIDTH = 'UL bandwidth' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 47 | TX_POWER = "tx_power" |
| 48 | TUNNEL_TYPE = "tunnel_type" |
| 49 | |
| 50 | # Radio Resource Management (RRM) parameters |
| 51 | CARRIER_AGG_ENABLE = "carrier_agg_enable" |
| 52 | CARRIER_NUMBER = "carrier_number" |
| 53 | CONTIGUOUS_CC = "contiguous_cc" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 54 | |
| 55 | # Other LTE parameters |
| 56 | ADMIN_STATE = 'Admin state' |
| 57 | OP_STATE = 'Opstate' |
| 58 | RF_TX_STATUS = 'RF TX status' |
| 59 | |
| 60 | # RAN parameters |
| 61 | CELL_RESERVED = 'Cell reserved' |
| 62 | CELL_BARRED = 'Cell barred' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 63 | PRIM_SOURCE = "prim_source" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 64 | |
Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame^] | 65 | # Cell parameters |
| 66 | CELL_ENABLE64QAM = "cell_enable64qam" |
| 67 | SPECIAL_SUBFRAME_PATTERN = 'special_subframe_pattern' |
| 68 | SUBFRAME_ASSIGNMENT = 'subframe_assignment' |
| 69 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 70 | # Core network parameters |
| 71 | MME_IP = 'MME IP' |
| 72 | MME_PORT = 'MME port' |
| 73 | NUM_PLMNS = 'Num PLMNs' |
| 74 | PLMN = 'PLMN' |
| 75 | PLMN_LIST = 'PLMN List' |
| 76 | |
| 77 | # PLMN parameters |
| 78 | PLMN_N = 'PLMN %d' |
| 79 | PLMN_N_CELL_RESERVED = 'PLMN %d cell reserved' |
| 80 | PLMN_N_ENABLE = 'PLMN %d enable' |
| 81 | PLMN_N_PRIMARY = 'PLMN %d primary' |
| 82 | PLMN_N_PLMNID = 'PLMN %d PLMNID' |
| 83 | |
| 84 | # PLMN arrays are added below |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 85 | TAC = 'tac' |
| 86 | TAC2 = 'tac2' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 87 | IP_SEC_ENABLE = 'IPSec enable' |
| 88 | MME_POOL_ENABLE = 'MME pool enable' |
| 89 | |
| 90 | # Management server parameters |
| 91 | PERIODIC_INFORM_ENABLE = 'Periodic inform enable' |
| 92 | PERIODIC_INFORM_INTERVAL = 'Periodic inform interval' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 93 | ENABLE_CWMP = "enable_cwmp" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 94 | |
| 95 | # Performance management parameters |
| 96 | PERF_MGMT_ENABLE = 'Perf mgmt enable' |
| 97 | PERF_MGMT_UPLOAD_INTERVAL = 'Perf mgmt upload interval' |
| 98 | PERF_MGMT_UPLOAD_URL = 'Perf mgmt upload URL' |
| 99 | PERF_MGMT_USER = 'Perf mgmt username' |
| 100 | PERF_MGMT_PASSWORD = 'Perf mgmt password' |
| 101 | |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 102 | SAS_ENABLE = "sas_enabled" |
| 103 | SAS_SERVER_URL = "sas_server_url" |
| 104 | SAS_UID = "sas_uid" |
| 105 | SAS_CATEGORY = "sas_category" |
| 106 | SAS_CHANNEL_TYPE = "sas_channel_type" |
| 107 | SAS_CERT_SUBJECT = "sas_cert_subject" |
| 108 | SAS_IC_GROUP_ID = "sas_icg_group_id" |
| 109 | SAS_LOCATION = "sas_location" |
| 110 | SAS_HEIGHT_TYPE = "sas_height_type" |
| 111 | SAS_FCCID = "sas_fccid" |
| 112 | SAS_MEAS_CAPS = "sas_measure_capability" |
| 113 | SAS_MANU_ENABLE = "sas_manufacturer_prefix_enable" |
| 114 | |
| 115 | SAS_CPI_ENABLE = "sas_cpi_enable" |
| 116 | SAS_CPI_IPE = "sas_cpi_ipe" |
| 117 | SAS_CPI_NAME = "sas_cpi_name" |
| 118 | SAS_CPI_ID = "sas_cpi_id" |
| 119 | SAS_CPI_DATA = "sas_cpi_signature_data" |
| 120 | SAS_ANTA_AZIMUTH = "sas_antenna_azimuth" |
| 121 | SAS_ANTA_DOWNTILT = "sas_antenna_downtilt" |
| 122 | SAS_ANTA_GAIN = "sas_antenna_gain" |
| 123 | SAS_ANTA_BEAMWIDTH = "sas_antenna_beamwidth" |
| 124 | |
| 125 | FIRMWARE_VERSION = "firmware_version" |
| 126 | FIRMWARE_URL = "firmware_url" |
| 127 | FIRMWARE_SIZE = "firmware_size" |
| 128 | |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 129 | |
| 130 | class TrParameterType(): |
| 131 | BOOLEAN = 'boolean' |
| 132 | STRING = 'string' |
| 133 | INT = 'int' |
| 134 | UNSIGNED_INT = 'unsignedInt' |
| 135 | OBJECT = 'object' |