diff --git a/config/param/mme_2_param_config.yaml b/config/param/mme_2_param_config.yaml index 17cfad02..c718ecf3 100644 --- a/config/param/mme_2_param_config.yaml +++ b/config/param/mme_2_param_config.yaml @@ -29,14 +29,14 @@ mme: type: "string" value: "192.168.8.220" access: "read-write" - filter: "IP" + filter: "0~64" display: "S1 Local Address" comment: "Local IP for S1 interface" - name: "s6a.local.address" type: "string" value: "172.16.5.220" access: "read-write" - filter: "IP" + filter: "0~64" display: "Local S6a IP" comment: "Local IP for Diameter S6a" - name: "s6a.local.host" @@ -57,13 +57,13 @@ mme: type: "string" value: "172.16.5.220" access: "read-write" - filter: "IP" + filter: "0~64" display: "Local S11 IP" - name: "n26.local.address" type: "string" value: "172.16.5.210" access: "read-write" - filter: "IP" + filter: "0~64" display: "Local N26 IP" - name: "t3402.value" type: "string" @@ -239,29 +239,18 @@ mme: - name: "address" type: "string" value: "172.16.5.221" - filter: "IP" + filter: "0~64" display: "HSS Address" - name: "priority" type: "int" value: "1" filter: "1~10" display: "Priority" - - name: "plmnList" - type: "array" - display: "PLMN IDs" - array: - - name: "index" - type: "int" - value: "0" - access: "read" - filter: "0~15" - display: "Index" - comment: "0~15" - - name: "plmnId" - type: "string" - value: ["00101"] - filter: "^[0-9]{5,6}$" - display: "PLMN ID" + - name: "plmnId" + type: "string" + value: "00101" + filter: "^[0-9]{5,6}$" + display: "PLMN ID" s11: display: "SGW List" sort: 9 @@ -276,34 +265,23 @@ mme: - name: "address" type: "string" value: "172.16.5.222" - filter: "IP" + filter: "0~64" display: "SGW Address" - name: "priority" type: "int" value: "1" filter: "1~10" display: "Priority" - - name: "tai" - type: "array" - display: "Tracking Areas" - array: - - name: "index" - type: "int" - value: "0" - access: "read" - filter: "0~15" - display: "Index" - comment: "0~15" - - name: "plmnId" - type: "string" - value: "00101" - filter: "^[0-9]{5,6}$" - display: "PLMN ID" - - name: "tac" - type: "int" - value: "1" - filter: "0~65535" - display: "TAC" + - name: "plmnId" + type: "string" + value: "00101" + filter: "^[0-9]{5,6}$" + display: "PLMN ID" + - name: "tac" + type: "int" + value: "1" + filter: "0~65535" + display: "TAC" s5s8: display: "PGW List" sort: 11 @@ -318,34 +296,23 @@ mme: - name: "address" type: "string" value: "172.16.5.223" - filter: "IP" + filter: "0~64" display: "PGW Address" - name: "priority" type: "int" value: "1" filter: "1~10" display: "Priority" - - name: "servedApn" - type: "array" - display: "Served APNs" - array: - - name: "index" - type: "int" - value: "0" - access: "read" - filter: "0~15" - display: "Index" - comment: "0~15" - - name: "plmnId" - type: "string" - value: "00101" - filter: "^[0-9]{5,6}$" - display: "PLMN ID" - - name: "apn" - type: "string" - value: "internet" - filter: "0~128" - display: "APN" + - name: "plmnId" + type: "string" + value: "00101" + filter: "^[0-9]{5,6}$" + display: "PLMN ID" + - name: "apn" + type: "string" + value: "internet" + filter: "0~128" + display: "APN" n26: display: "AMF List" sort: 13 @@ -360,34 +327,23 @@ mme: - name: "address" type: "string" value: "172.16.5.224" - filter: "IP" + filter: "0~64" display: "AMF Address" - name: "priority" type: "int" value: "1" filter: "1~10" display: "Priority" - - name: "tai" - type: "array" - display: "Tracking Areas" - array: - - name: "index" - type: "int" - value: "0" - access: "read" - filter: "0~15" - display: "Index" - comment: "0~15" - - name: "plmnId" - type: "string" - value: "00101" - filter: "^[0-9]{5,6}$" - display: "PLMN ID" - - name: "tac" - type: "int" - value: "1" - filter: "0~65535" - display: "TAC" + - name: "plmnId" + type: "string" + value: "00101" + filter: "^[0-9]{5,6}$" + display: "PLMN ID" + - name: "tac" + type: "int" + value: "1" + filter: "0~65535" + display: "TAC" enbList: display: "Enb List Config" sort: 19 diff --git a/database/common/ne_config.sql b/database/common/ne_config.sql index acefd402..853fbcad 100644 --- a/database/common/ne_config.sql +++ b/database/common/ne_config.sql @@ -54,14 +54,14 @@ INSERT INTO `ne_config` VALUES (68, 1760606422656, 'MME', '1', 'white_list', 'IM INSERT INTO `ne_config` VALUES (69, 1760606422661, 'MME', '1', 'enbList', 'Enb List Config', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~128\",\"display\":\"Index\",\"filter\":\"0~128\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"location description. Prohibition of spaces, length of text content 0-64\",\"display\":\"Position\",\"filter\":\"0~64\",\"name\":\"position\",\"type\":\"string\",\"value\":\"\"}]', 19, '', 'hide'); -- 更新 MME v2 配置 20251016 -INSERT INTO `ne_config` VALUES (80, 1760606510644, 'MME', '2', 'system', 'System Config', 'list', '[{\"display\":\"MME Name\",\"filter\":\"0~32\",\"name\":\"mmeName\",\"type\":\"string\",\"value\":\"MME1\"},{\"display\":\"Full Network Name\",\"filter\":\"0~64\",\"name\":\"networkName.full\",\"type\":\"string\",\"value\":\"EPC\"},{\"display\":\"Short Network Name\",\"filter\":\"0~16\",\"name\":\"networkName.short\",\"type\":\"string\",\"value\":\"Next\"},{\"access\":\"read-write\",\"comment\":\"Maximum Transmission Unit\",\"display\":\"MTU\",\"filter\":\"576~9000\",\"name\":\"s1.mtu\",\"type\":\"int\",\"value\":\"1500\"},{\"access\":\"read-write\",\"comment\":\"Local IP for S1 interface\",\"display\":\"S1 Local Address\",\"filter\":\"IP\",\"name\":\"s1.address\",\"type\":\"string\",\"value\":\"192.168.8.220\"},{\"access\":\"read-write\",\"comment\":\"Local IP for Diameter S6a\",\"display\":\"Local S6a IP\",\"filter\":\"IP\",\"name\":\"s6a.local.address\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"MME Diameter Host FQDN\",\"display\":\"Local Hostname\",\"filter\":\"0~128\",\"name\":\"s6a.local.host\",\"type\":\"string\",\"value\":\"mme.epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"comment\":\"Diameter Realm\",\"display\":\"Local Realm\",\"filter\":\"0~128\",\"name\":\"s6a.local.realm\",\"type\":\"string\",\"value\":\"epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"display\":\"Local S11 IP\",\"filter\":\"IP\",\"name\":\"s11.local.address\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"display\":\"Local N26 IP\",\"filter\":\"IP\",\"name\":\"n26.local.address\",\"type\":\"string\",\"value\":\"172.16.5.210\"},{\"display\":\"T3402 Timer\",\"filter\":\"1s~60m\",\"name\":\"t3402.value\",\"type\":\"string\",\"value\":\"12m\"},{\"display\":\"T3412 Timer\",\"name\":\"t3412.value\",\"type\":\"string\",\"value\":\"54m\"},{\"display\":\"T3423 Timer\",\"name\":\"t3423.value\",\"type\":\"string\",\"value\":\"12m\"},{\"display\":\"GTP Response Timeout\",\"name\":\"message.gtp.t3ResponseDuration\",\"type\":\"string\",\"value\":\"2s\"},{\"display\":\"GTP Response Retries\",\"name\":\"message.gtp.n3ResponseRcount\",\"type\":\"int\",\"value\":\"3\"},{\"display\":\"GTP Holding Duration\",\"name\":\"message.gtp.t3HoldingDuration\",\"type\":\"string\",\"value\":\"6s\"},{\"display\":\"GTP Holding Retries\",\"name\":\"message.gtp.n3HoldingRcount\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"S6a Timeout\",\"name\":\"message.s6a\",\"type\":\"string\",\"value\":\"3s\"},{\"display\":\"Handover Timeout\",\"name\":\"handover.value\",\"type\":\"string\",\"value\":\"300ms\"},{\"access\":\"read-write\",\"comment\":\"mme instance id for s1 flex\",\"display\":\"mme instance id for s1 flex\",\"filter\":\"0~2\",\"name\":\"s1Flex.instance\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"true|false\",\"display\":\"Enable Redis\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"redisDb.enable\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"Network type for Redis (tcp)\",\"display\":\"Network Type\",\"filter\":\"{\\\"tcp\\\":\\\"tcp\\\"}\",\"name\":\"redisDb.netType\",\"type\":\"string\",\"value\":\"tcp\"},{\"access\":\"read-write\",\"comment\":\"IP:Port format\",\"display\":\"Redis Master Address\",\"filter\":\"IP:Port\",\"name\":\"redisDb.addr\",\"type\":\"string\",\"value\":\"172.16.5.140:6379\"},{\"access\":\"read-write\",\"comment\":\"List of Redis slaves for replication\",\"display\":\"Redis Slave Addresses\",\"filter\":\"IP:Port\",\"name\":\"redisDb.slaveAddrList\",\"type\":\"string\",\"value\":\"172.16.5.148:6379\"},{\"access\":\"read-write\",\"comment\":\"Max Redis connection pool size\",\"display\":\"Connection Pool Size\",\"filter\":\"1~1000\",\"name\":\"redisDb.poolSize\",\"type\":\"int\",\"value\":\"10\"},{\"comment\":\"Used for load balancing among MMEs\",\"display\":\"MME Relative Capacity\",\"filter\":\"0~255\",\"name\":\"relativeCapacity\",\"type\":\"int\",\"value\":\"255\"},{\"access\":\"read-write\",\"comment\":\"Directory where log files will be stored\",\"display\":\"Log Directory\",\"filter\":\"0~128\",\"name\":\"logDir\",\"type\":\"string\",\"value\":\"/var/log/\"},{\"access\":\"read-write\",\"comment\":\"Maximum number of log files to retain\",\"display\":\"Log File Count\",\"filter\":\"1~100\",\"name\":\"logNum\",\"type\":\"int\",\"value\":\"10\"},{\"access\":\"read-write\",\"comment\":\"Max size per log file\",\"display\":\"Log File Size (MB)\",\"filter\":\"1~10000\",\"name\":\"logSize\",\"type\":\"int\",\"value\":\"200\"},{\"access\":\"read-write\",\"comment\":\"debug|info|warn|error\",\"display\":\"Log Level\",\"filter\":\"{\\\"debug\\\":\\\"debug\\\",\\\"info\\\":\\\"info\\\",\\\"warn\\\":\\\"warn\\\",\\\"error\\\":\\\"error\\\"}\",\"name\":\"logLevel\",\"type\":\"enum\",\"value\":\"debug\"}]', 1, '', 'public'); -INSERT INTO `ne_config` VALUES (81, 1760606510656, 'MME', '2', 'gummei', 'GUMMEI List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"display\":\"MME Group ID\",\"filter\":\"0~65535\",\"name\":\"mmeGid\",\"type\":\"int\",\"value\":\"2\"},{\"display\":\"MME Code\",\"filter\":\"0~255\",\"name\":\"mmeCode\",\"type\":\"int\",\"value\":\"1\"}]', 3, '', 'public'); -INSERT INTO `ne_config` VALUES (82, 1760606510661, 'MME', '2', 'servedTai', 'TAI List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}]', 4, '', 'public'); -INSERT INTO `ne_config` VALUES (83, 1760606510664, 'MME', '2', 's6a', 'HSS List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"HSS Address\",\"filter\":\"IP\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.221\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"array\":[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":[\"00101\"]}],\"display\":\"PLMN IDs\",\"name\":\"plmnList\",\"type\":\"array\"}]', 5, '', 'public'); -INSERT INTO `ne_config` VALUES (84, 1760606510667, 'MME', '2', 's11', 'SGW List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"SGW Address\",\"filter\":\"IP\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.222\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"array\":[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}],\"display\":\"Tracking Areas\",\"name\":\"tai\",\"type\":\"array\"}]', 9, '', 'public'); -INSERT INTO `ne_config` VALUES (85, 1760606510671, 'MME', '2', 's5s8', 'PGW List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PGW Address\",\"filter\":\"IP\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.223\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"array\":[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"APN\",\"filter\":\"0~128\",\"name\":\"apn\",\"type\":\"string\",\"value\":\"internet\"}],\"display\":\"Served APNs\",\"name\":\"servedApn\",\"type\":\"array\"}]', 11, '', 'public'); -INSERT INTO `ne_config` VALUES (86, 1760606510675, 'MME', '2', 'n26', 'AMF List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"AMF Address\",\"filter\":\"IP\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.224\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"array\":[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}],\"display\":\"Tracking Areas\",\"name\":\"tai\",\"type\":\"array\"}]', 13, '', 'public'); -INSERT INTO `ne_config` VALUES (87, 1760606510679, 'MME', '2', 'enbList', 'Enb List Config', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~128\",\"display\":\"Index\",\"filter\":\"0~128\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"location description. Prohibition of spaces, length of text content 0-64\",\"display\":\"Position\",\"filter\":\"0~64\",\"name\":\"position\",\"type\":\"string\",\"value\":\"\"}]', 19, '', 'hide'); +INSERT INTO `ne_config` VALUES (80, 1761029577543, 'MME', '2', 'system', 'System Config', 'list', '[{\"display\":\"MME Name\",\"filter\":\"0~32\",\"name\":\"mmeName\",\"type\":\"string\",\"value\":\"MME1\"},{\"display\":\"Full Network Name\",\"filter\":\"0~64\",\"name\":\"networkName.full\",\"type\":\"string\",\"value\":\"EPC\"},{\"display\":\"Short Network Name\",\"filter\":\"0~16\",\"name\":\"networkName.short\",\"type\":\"string\",\"value\":\"Next\"},{\"access\":\"read-write\",\"comment\":\"Maximum Transmission Unit\",\"display\":\"MTU\",\"filter\":\"576~9000\",\"name\":\"s1.mtu\",\"type\":\"int\",\"value\":\"1500\"},{\"access\":\"read-write\",\"comment\":\"Local IP for S1 interface\",\"display\":\"S1 Local Address\",\"filter\":\"0~64\",\"name\":\"s1.address\",\"type\":\"string\",\"value\":\"192.168.8.220\"},{\"access\":\"read-write\",\"comment\":\"Local IP for Diameter S6a\",\"display\":\"Local S6a IP\",\"filter\":\"0~64\",\"name\":\"s6a.local.address\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"comment\":\"MME Diameter Host FQDN\",\"display\":\"Local Hostname\",\"filter\":\"0~128\",\"name\":\"s6a.local.host\",\"type\":\"string\",\"value\":\"mme.epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"comment\":\"Diameter Realm\",\"display\":\"Local Realm\",\"filter\":\"0~128\",\"name\":\"s6a.local.realm\",\"type\":\"string\",\"value\":\"epc.mnc001.mcc001.3gppnetwork.org\"},{\"access\":\"read-write\",\"display\":\"Local S11 IP\",\"filter\":\"0~64\",\"name\":\"s11.local.address\",\"type\":\"string\",\"value\":\"172.16.5.220\"},{\"access\":\"read-write\",\"display\":\"Local N26 IP\",\"filter\":\"0~64\",\"name\":\"n26.local.address\",\"type\":\"string\",\"value\":\"172.16.5.210\"},{\"display\":\"T3402 Timer\",\"filter\":\"1s~60m\",\"name\":\"t3402.value\",\"type\":\"string\",\"value\":\"12m\"},{\"display\":\"T3412 Timer\",\"name\":\"t3412.value\",\"type\":\"string\",\"value\":\"54m\"},{\"display\":\"T3423 Timer\",\"name\":\"t3423.value\",\"type\":\"string\",\"value\":\"12m\"},{\"display\":\"GTP Response Timeout\",\"name\":\"message.gtp.t3ResponseDuration\",\"type\":\"string\",\"value\":\"2s\"},{\"display\":\"GTP Response Retries\",\"name\":\"message.gtp.n3ResponseRcount\",\"type\":\"int\",\"value\":\"3\"},{\"display\":\"GTP Holding Duration\",\"name\":\"message.gtp.t3HoldingDuration\",\"type\":\"string\",\"value\":\"6s\"},{\"display\":\"GTP Holding Retries\",\"name\":\"message.gtp.n3HoldingRcount\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"S6a Timeout\",\"name\":\"message.s6a\",\"type\":\"string\",\"value\":\"3s\"},{\"display\":\"Handover Timeout\",\"name\":\"handover.value\",\"type\":\"string\",\"value\":\"300ms\"},{\"access\":\"read-write\",\"comment\":\"mme instance id for s1 flex\",\"display\":\"mme instance id for s1 flex\",\"filter\":\"0~2\",\"name\":\"s1Flex.instance\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"true|false\",\"display\":\"Enable Redis\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"redisDb.enable\",\"type\":\"bool\",\"value\":\"false\"},{\"access\":\"read-write\",\"comment\":\"Network type for Redis (tcp)\",\"display\":\"Network Type\",\"filter\":\"{\\\"tcp\\\":\\\"tcp\\\"}\",\"name\":\"redisDb.netType\",\"type\":\"string\",\"value\":\"tcp\"},{\"access\":\"read-write\",\"comment\":\"IP:Port format\",\"display\":\"Redis Master Address\",\"filter\":\"IP:Port\",\"name\":\"redisDb.addr\",\"type\":\"string\",\"value\":\"172.16.5.140:6379\"},{\"access\":\"read-write\",\"comment\":\"List of Redis slaves for replication\",\"display\":\"Redis Slave Addresses\",\"filter\":\"IP:Port\",\"name\":\"redisDb.slaveAddrList\",\"type\":\"string\",\"value\":\"172.16.5.148:6379\"},{\"access\":\"read-write\",\"comment\":\"Max Redis connection pool size\",\"display\":\"Connection Pool Size\",\"filter\":\"1~1000\",\"name\":\"redisDb.poolSize\",\"type\":\"int\",\"value\":\"10\"},{\"comment\":\"Used for load balancing among MMEs\",\"display\":\"MME Relative Capacity\",\"filter\":\"0~255\",\"name\":\"relativeCapacity\",\"type\":\"int\",\"value\":\"255\"},{\"access\":\"read-write\",\"comment\":\"Directory where log files will be stored\",\"display\":\"Log Directory\",\"filter\":\"0~128\",\"name\":\"logDir\",\"type\":\"string\",\"value\":\"/var/log/\"},{\"access\":\"read-write\",\"comment\":\"Maximum number of log files to retain\",\"display\":\"Log File Count\",\"filter\":\"1~100\",\"name\":\"logNum\",\"type\":\"int\",\"value\":\"10\"},{\"access\":\"read-write\",\"comment\":\"Max size per log file\",\"display\":\"Log File Size (MB)\",\"filter\":\"1~10000\",\"name\":\"logSize\",\"type\":\"int\",\"value\":\"200\"},{\"access\":\"read-write\",\"comment\":\"debug|info|warn|error\",\"display\":\"Log Level\",\"filter\":\"{\\\"debug\\\":\\\"debug\\\",\\\"info\\\":\\\"info\\\",\\\"warn\\\":\\\"warn\\\",\\\"error\\\":\\\"error\\\"}\",\"name\":\"logLevel\",\"type\":\"enum\",\"value\":\"debug\"}]', 1, '', 'public'); +INSERT INTO `ne_config` VALUES (81, 1761029577582, 'MME', '2', 'gummei', 'GUMMEI List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"display\":\"MME Group ID\",\"filter\":\"0~65535\",\"name\":\"mmeGid\",\"type\":\"int\",\"value\":\"2\"},{\"display\":\"MME Code\",\"filter\":\"0~255\",\"name\":\"mmeCode\",\"type\":\"int\",\"value\":\"1\"}]', 3, '', 'public'); +INSERT INTO `ne_config` VALUES (82, 1761029577590, 'MME', '2', 'servedTai', 'TAI List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"regex\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}]', 4, '', 'public'); +INSERT INTO `ne_config` VALUES (83, 1761029577613, 'MME', '2', 's6a', 'HSS List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"HSS Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.221\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"}]', 5, '', 'public'); +INSERT INTO `ne_config` VALUES (84, 1761029577617, 'MME', '2', 's11', 'SGW List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"SGW Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.222\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}]', 9, '', 'public'); +INSERT INTO `ne_config` VALUES (85, 1761029577620, 'MME', '2', 's5s8', 'PGW List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"PGW Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.223\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"APN\",\"filter\":\"0~128\",\"name\":\"apn\",\"type\":\"string\",\"value\":\"internet\"}]', 11, '', 'public'); +INSERT INTO `ne_config` VALUES (86, 1761029577625, 'MME', '2', 'n26', 'AMF List', 'array', '[{\"access\":\"read\",\"comment\":\"0~15\",\"display\":\"Index\",\"filter\":\"0~15\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"display\":\"AMF Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"172.16.5.224\"},{\"display\":\"Priority\",\"filter\":\"1~10\",\"name\":\"priority\",\"type\":\"int\",\"value\":\"1\"},{\"display\":\"PLMN ID\",\"filter\":\"^[0-9]{5,6}$\",\"name\":\"plmnId\",\"type\":\"string\",\"value\":\"00101\"},{\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"}]', 13, '', 'public'); +INSERT INTO `ne_config` VALUES (87, 1761029577629, 'MME', '2', 'enbList', 'Enb List Config', 'array', '[{\"access\":\"read-only\",\"comment\":\"0~128\",\"display\":\"Index\",\"filter\":\"0~128\",\"name\":\"index\",\"type\":\"int\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Name\",\"filter\":\"0~64\",\"name\":\"name\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"text content length 0~64\",\"display\":\"ENB Address\",\"filter\":\"0~64\",\"name\":\"address\",\"type\":\"string\",\"value\":\"\"},{\"access\":\"read-write\",\"comment\":\"location description. Prohibition of spaces, length of text content 0-64\",\"display\":\"Position\",\"filter\":\"0~64\",\"name\":\"position\",\"type\":\"string\",\"value\":\"\"}]', 19, '', 'hide'); -- 更新 MOCNGW 配置 20250429 INSERT INTO `ne_config` VALUES (100, 1760606598717, 'MOCNGW', '2', 'system', 'System Config', 'list', '[{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"S1AP South Address\",\"filter\":\"0~64\",\"name\":\"s1apSouthAddr\",\"type\":\"string\",\"value\":\"192.168.7.163\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"S1AP North Address\",\"filter\":\"0~64\",\"name\":\"s1apNorthAddr\",\"type\":\"string\",\"value\":\"192.168.8.163\"},{\"access\":\"read-write\",\"comment\":\"0~65535\",\"display\":\"TAC\",\"filter\":\"0~65535\",\"name\":\"tac\",\"type\":\"int\",\"value\":\"1\"},{\"access\":\"read-write\",\"comment\":\"0~1048575\",\"display\":\"ENB ID\",\"filter\":\"0~1048575\",\"name\":\"enbId\",\"type\":\"int\",\"value\":\"24\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"User Plane Enabled\",\"filter\":\"{\\\"0\\\":\\\"false\\\",\\\"1\\\":\\\"true\\\"}\",\"name\":\"userPlaneEnabled\",\"type\":\"bool\",\"value\":\"0\"},{\"access\":\"read-write\",\"comment\":\"\",\"display\":\"PFCP Address\",\"filter\":\"0~64\",\"name\":\"pfcpAddr\",\"type\":\"string\",\"value\":\"192.168.7.163\"}]', 1, '', 'public'); diff --git a/src/modules/network_element/ne_config_test.go b/src/modules/network_element/ne_config_test.go index e1031b9d..87eca966 100644 --- a/src/modules/network_element/ne_config_test.go +++ b/src/modules/network_element/ne_config_test.go @@ -29,7 +29,7 @@ const ( // 配置文件路径 configParamDir = "../../../config/param" // configParamFile = "*" // 目录下全部更新 - configParamFile = "amf_param_config.yaml" // 单文件更新 + configParamFile = "mme_2_param_config.yaml" // 单文件更新 ) func TestConfig(t *testing.T) {