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 |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 12 | GPS_STATUS = 'gps_status' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 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 | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 32 | EARFCNDL = 'earfcn_downlink1' |
| 33 | EARFCNUL = 'earfcn_uplink1' |
| 34 | EARFCNDL2 = 'earfcn_downlink2' |
| 35 | EARFCNUL2 = 'earfcn_uplink2' |
| 36 | EARFCNDL_LIST = 'earfcn_downlink_list' |
| 37 | EARFCNUL_LIST = 'earfcn_uplink_list' |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 38 | |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 39 | FREQ_BAND_1 = "frequency_band_1" |
| 40 | FREQ_BAND_2 = "frequency_band_2" |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 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' |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 45 | DL_BANDWIDTH = 'downlink_bandwidth' |
| 46 | UL_BANDWIDTH = 'uplink_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" |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 53 | CONTIGUOUS_CC = "is_ca_frequency_contiguous" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 54 | |
| 55 | # Other LTE parameters |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 56 | ADMIN_STATE = 'admin_state' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 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 | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 63 | PRIM_SOURCE = "primary_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 |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 66 | CELL_ENABLE64QAM = "enable64qam" |
| 67 | SPECIAL_SUBFRAME_PATTERN = 'subframe_configuration' |
Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 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 | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 87 | IP_SEC_ENABLE = 'ipsec_enable' |
| 88 | MME_POOL_ENABLE = 'mme_pool_enable' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 89 | |
| 90 | # Management server parameters |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 91 | PERIODIC_INFORM_ENABLE = 'periodic_inform_enable' |
| 92 | PERIODIC_INFORM_INTERVAL = 'periodic_inform_interval' |
| 93 | CWMP_ENABLE = "cwmp_enable" |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 94 | |
| 95 | # Performance management parameters |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 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' |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 101 | |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 102 | SAS_ENABLE = "sas_enable" |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 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" |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 113 | SAS_MANU_ENABLE = "manufacturer_prefix_enable" |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 114 | |
Wei-Yu Chen | b91af85 | 2022-03-15 22:24:49 +0800 | [diff] [blame^] | 115 | SAS_CPI_ENABLE = "cpi_enable" |
Wei-Yu Chen | 678f0a5 | 2021-12-21 13:50:52 +0800 | [diff] [blame] | 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' |