sql: 更新MME2的参数配置数据

This commit is contained in:
TsMask
2025-10-21 14:56:08 +08:00
parent 10723d9568
commit 5191d1bca1
3 changed files with 52 additions and 96 deletions

View File

@@ -29,14 +29,14 @@ mme:
type: "string" type: "string"
value: "192.168.8.220" value: "192.168.8.220"
access: "read-write" access: "read-write"
filter: "IP" filter: "0~64"
display: "S1 Local Address" display: "S1 Local Address"
comment: "Local IP for S1 interface" comment: "Local IP for S1 interface"
- name: "s6a.local.address" - name: "s6a.local.address"
type: "string" type: "string"
value: "172.16.5.220" value: "172.16.5.220"
access: "read-write" access: "read-write"
filter: "IP" filter: "0~64"
display: "Local S6a IP" display: "Local S6a IP"
comment: "Local IP for Diameter S6a" comment: "Local IP for Diameter S6a"
- name: "s6a.local.host" - name: "s6a.local.host"
@@ -57,13 +57,13 @@ mme:
type: "string" type: "string"
value: "172.16.5.220" value: "172.16.5.220"
access: "read-write" access: "read-write"
filter: "IP" filter: "0~64"
display: "Local S11 IP" display: "Local S11 IP"
- name: "n26.local.address" - name: "n26.local.address"
type: "string" type: "string"
value: "172.16.5.210" value: "172.16.5.210"
access: "read-write" access: "read-write"
filter: "IP" filter: "0~64"
display: "Local N26 IP" display: "Local N26 IP"
- name: "t3402.value" - name: "t3402.value"
type: "string" type: "string"
@@ -239,27 +239,16 @@ mme:
- name: "address" - name: "address"
type: "string" type: "string"
value: "172.16.5.221" value: "172.16.5.221"
filter: "IP" filter: "0~64"
display: "HSS Address" display: "HSS Address"
- name: "priority" - name: "priority"
type: "int" type: "int"
value: "1" value: "1"
filter: "1~10" filter: "1~10"
display: "Priority" 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" - name: "plmnId"
type: "string" type: "string"
value: ["00101"] value: "00101"
filter: "^[0-9]{5,6}$" filter: "^[0-9]{5,6}$"
display: "PLMN ID" display: "PLMN ID"
s11: s11:
@@ -276,24 +265,13 @@ mme:
- name: "address" - name: "address"
type: "string" type: "string"
value: "172.16.5.222" value: "172.16.5.222"
filter: "IP" filter: "0~64"
display: "SGW Address" display: "SGW Address"
- name: "priority" - name: "priority"
type: "int" type: "int"
value: "1" value: "1"
filter: "1~10" filter: "1~10"
display: "Priority" 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" - name: "plmnId"
type: "string" type: "string"
value: "00101" value: "00101"
@@ -318,24 +296,13 @@ mme:
- name: "address" - name: "address"
type: "string" type: "string"
value: "172.16.5.223" value: "172.16.5.223"
filter: "IP" filter: "0~64"
display: "PGW Address" display: "PGW Address"
- name: "priority" - name: "priority"
type: "int" type: "int"
value: "1" value: "1"
filter: "1~10" filter: "1~10"
display: "Priority" 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" - name: "plmnId"
type: "string" type: "string"
value: "00101" value: "00101"
@@ -360,24 +327,13 @@ mme:
- name: "address" - name: "address"
type: "string" type: "string"
value: "172.16.5.224" value: "172.16.5.224"
filter: "IP" filter: "0~64"
display: "AMF Address" display: "AMF Address"
- name: "priority" - name: "priority"
type: "int" type: "int"
value: "1" value: "1"
filter: "1~10" filter: "1~10"
display: "Priority" 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" - name: "plmnId"
type: "string" type: "string"
value: "00101" value: "00101"

File diff suppressed because one or more lines are too long

View File

@@ -29,7 +29,7 @@ const (
// 配置文件路径 // 配置文件路径
configParamDir = "../../../config/param" configParamDir = "../../../config/param"
// configParamFile = "*" // 目录下全部更新 // configParamFile = "*" // 目录下全部更新
configParamFile = "amf_param_config.yaml" // 单文件更新 configParamFile = "mme_2_param_config.yaml" // 单文件更新
) )
func TestConfig(t *testing.T) { func TestConfig(t *testing.T) {