Merge branch 'main-v2' into lite

This commit is contained in:
TsMask
2025-08-18 11:10:48 +08:00
358 changed files with 11898 additions and 36289 deletions

View File

@@ -7,32 +7,28 @@ serverVersion: "std"
# interface encryption, default false
# serverCryptoApi: false
# route service configuration
# service listen ipv4/v6 and port, support multiple routines
# ip: 0.0.0.0 or ::0, support IPv4/v6
server:
- ipv4: "0.0.0.0"
ipv6: ""
port: 33040 # http listen port
schema: http
- ipv4: "0.0.0.0"
ipv6: ""
port: 33443 # https listen port
schema: https
certFile: ./local/certs/www.omc.net.crt
keyFile: ./local/certs/www.omc.net.key
routeServer:
- addr: "0.0.0.0:33040" # route http port
schema: "http"
- addr: "0.0.0.0:33443" # route https port
schema: "https"
certFile: "./local/certs/www.omc.net.crt"
keyFile: "./local/certs/www.omc.net.key"
# web service configuration
# if you are using nginx to take over, you can disable the
webServer:
enabled: false # web server enabled, default false
rootDir: ./local/web
rootDir: /usr/local/etc/omc/web
listen:
- addr: "0.0.0.0:80"
schema: http
- addr: "0.0.0.0:443"
schema: https
certFile: ./local/certs/www.omc.net.crt
keyFile: ./local/certs/www.omc.net.key
- addr: "0.0.0.0:80" # web http port
schema: "http"
- addr: "0.0.0.0:443" # web https port
schema: "https"
certFile: "./local/certs/www.omc.net.crt"
keyFile: "./local/certs/www.omc.net.key"
# track configuration for NE signaling trace
# host fill in the specific IP address
@@ -41,46 +37,44 @@ trace:
host: "192.168.5.58" # trace host, default 127.0.0.1
port: 33033 # trace port, default 33033
# data sources
# data source
database:
dataSource:
# Default database instance
# std: standard
std:
type: "mysql"
host: "192.168.9.58"
port: 13306
username: "root"
password: "1000omc@kp!"
database: "omc_db_lite"
host: "192.168.9.58" # mysql host
port: 13306 # mysql port
username: "root" # mysql username
password: "1000omc@kp!" # mysql password
database: "omc_db_lite" # mysql database
logging: true
# SQLite database instance
# lite: lite
lite:
type: "sqlite"
database: "./local/omc_db.sqlite"
database: "./local/omc_db.sqlite" # sqlite database
logging: true
# used to specify the default data source for multiple data resourece
# default data source name
defaultDataSourceName: "std"
# redis cached data
redis:
dataSource:
default:
port: 16379 # port
host: "192.168.9.58" # host
password: "helloearth"
db: 10 # db_num
port: 16379 # redis port
host: "192.168.9.58" # redis host
password: "helloearth" # redis password
db: 10 # Redis db_num
# default data source name
defaultDataSourceName: "default"
# file: log file name
# level: /trace/debug/info/warn/error/fatal, default: debug
# duration: rotation time with xx hours, example: 1/12/24 hours
# count: rotation count of log, default is 30 rotation
# log
logger:
file: "C:/var/log/omc_restagent.log"
level: warn
duration: 24
count: 90
fileDir: "/var/log" # Log File Dir
fileName: "omc.log" # Log File Name
level: 0 # Log Level of 0:silent<1:info<2:warn<3:error
maxDay: 7 # Log retention Days
maxSize: 10 # Log File cutting by size
# prometheus metrics
metrics: true
@@ -98,125 +92,22 @@ staticFile:
prefix: "/upload"
dir: "C:/usr/local/omc/upload"
# sleep: time delay for after write buffer (millisecond)
# deadLine: timeout for io read and write (second)
mml:
sleep: 200
deadLine: 10
sizeRow: 600
sizeCol: 128
bufferSize: 65535
mmlHome: ./mmlhome
# NE config
ne:
user: omcuser
etcdir: /usr/local/etc
bindir: /usr/local/bin
omcdir: /usr/local/omc
scpdir: /tmp
licensedir: /usr/local/etc/{neType}/license
# backup etc list of IMS, does not contain spaces
etcListIMS: "{*.yaml,mmtel,vars.cfg}"
etcListDefault: "{*.yaml,*.conf,*.cfg}"
# true/false to overwrite config file when dpkg ne software
dpkgOverwrite: false
# dpkg timeout (second)
dpkgTimeout: 180
# chk2ne: true/false, if put OmcNeConfig parameters to NE
omc:
uriPrefix: "/omc/rest"
neType: OMC
neId: 001
rmUID: 4400HX101
neName: OMC
province: ""
vendor: ""
dn: ""
chk2ne: false
capability: 50
sn: "12345678"
expiryDate: "2099-12-31"
checksign: false
rootDir: /usr/local/omc
binDir: /usr/local/omc/bin
backup: /usr/local/omc/backup
upload: /usr/local/omc/upload
frontUpload: /usr/local/omc/htdocs/front/upload
frontTraceDir: /usr/local/omc/htdocs/front/trace
software: /usr/local/omc/software
license: /usr/local/omc/license
gtpUri: gtp:192.168.2.119:32152
checkContentType: false
testMode: false
rbacMode: true
runDir: /usr/local/omc/run
cmdTimeout: 120
# Alarm module setting
# Forward interface:
# TLS Skip verify: true/false
# email/sms
# smProxy: sms(Short Message Service)/smsc(SMS Centre)
# dataCoding: 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1,
# 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
alarm:
alarmEmailForward:
enable: false
emailList: ""
title: "Alarm from OMC"
smtp: mail.smtp.com
port: 25
user: smtpext@smtp.com
password: "1000smtp@omc!"
tlsSkipVerify: true
alarmSMSForward:
enable: false
mobileList: ""
smscAddr: "192.168.13.114:2775"
systemID: "omc"
password: "omc123"
systemType: "UTRAN"
dataCoding: 0
serviceNumber: "OMC"
sms:
apiURL: http://smsc.xxx.com/
accessKeyID: xxxx
accessKeySecret: xxxx
signName: xxx SMSC
templateCode: 1000
smProxy: smsc
# User authorized information
# crypt: mysql/md5/bcrypt
# token: true/false to check accessToken
# expires for session, unit: second
# Support single/multiple session of user
#
auth:
crypt: bcrypt
token: true
expires: 1800
session: multiple
publicKey: /usr/local/omc/etc/certs/omc
privateKey: /usr/local/omc/etc/certs/omc
# Parameter for limit number
# rmuid_maxnum: the max number of rmUID, default: 50
# alarmid_maxnum: the max number of AlarmID, default: 50
# pmid_maxnum: the max number of pmID, default: 50
# subid_maxnum: the max number of subscription ID, default: 20
# uri_maxlen: the max length of uri, default: 8192
# rmuid_regexp: regexp pattern of rmUID
params:
rmuidmaxnum: 50
alarmidmaxnum: 50
pmidmaxnum: 50
subidmaxnum: 20
urimaxlen: 2100000
rmuidregexp: "[0-9]{4}[A-Z]{2}[A-Z]{2}[0-9A-Z]{1}[0-9A-Z]{3}[0-9A-Z]{1,16}"
testConfig:
enabled: false
file: /usr/local/omc/etc/testconfig.yaml
# notification only alarm use
notification:
email:
enable: false # email enable
list: "" # toEmail,email,email
title: "Alarm from OMC" # email title
smtp: "mail.smtp.com" # email smtp
port: 25 # email port
user: "smtpext@smtp.com" # email user
password: "1000smtp@omc!" # email password
smsc:
enable: false # smsc enable
list: "" # toMobile,mobile,mobile
addr: "192.168.13.114:2775" # smsc addr
systemid: "omc" # smsc system id
systemtype: "UTRAN" # smsc system type
password: "omc123" # smsc password
coding: 0 # smsc codingMap 0:GSM7BIT, 1:ASCII, 2:BINARY8BIT1, 3:LATIN1, 4:BINARY8BIT2, 6:CYRILLIC, 7:HEBREW, 8:UCS2
servicenumber: "OMC" # smsc service number

View File

@@ -10,13 +10,6 @@ cbc:
filter: "0~64"
display: "CBC Name"
comment: ""
- name: "instance"
type: "string"
value: "CBC-001"
access: "read-write"
filter: "0~64"
display: "NF Instance"
comment: ""
- name: "sbiIp"
type: "string"
value: "127.0.0.1"
@@ -37,7 +30,14 @@ cbc:
access: "read-write"
filter: '{"0":"http","1":"https"}'
display: "SBI Scheme"
comment: "http or https"
comment: ""
- name: "sbiTimeout"
type: "int"
value: "3"
access: "read-write"
filter: "0~65535"
display: "SBI Timeout"
comment: "0~65535"
amfProfile:
display: "AMF Profile"
@@ -50,6 +50,13 @@ cbc:
filter: "0~15"
display: "Index"
comment: "0~15"
- name: "enabled"
type: "bool"
value: "1"
access: "read-write"
filter: '{"0":"false","1":"true"}'
display: "Enable AMF"
comment: "apply the current AMF NF Profile"
- name: "name"
type: "string"
value: "AMF"
@@ -63,21 +70,43 @@ cbc:
access: "read-write"
filter: "0~64"
display: "AMF URI"
comment: ""
- name: "plmnId"
comment: "format: http://<IP>:<PORT> e.g: http://192.168.1.1:9090"
- name: "taiList"
type: "regex"
value: "00101"
value: ""
access: "read-write"
filter: "^[0-9]{5,6}$"
display: "PLMN ID"
comment: ""
- name: "tac"
type: "string"
value: "1"
access: "read-write"
filter: "0~8"
display: "TAC"
comment: "0~16777215"
filter: ""
display: "Tai List"
comment: "allow TaiList null or add more tai value"
array:
- name: "index"
type: "int"
value: "1"
access: "read-only"
filter: "1~32"
display: "Index"
comment: "1~32"
- name: "mcc"
type: "regex"
value: "460"
access: "read-write"
filter: '^\d{3,3}$'
display: "MCC"
comment: ""
- name: "mnc"
type: "regex"
value: "00"
access: "read-write"
filter: '^\d{2,3}$'
display: "MNC"
comment: ""
- name: "tac"
type: "regex"
value: "4388"
access: "read-write"
filter: '^(\d+(;\d+)*)?$'
display: "TAC"
comment: "(A).format is decimal string,e.g:43888 (B).Allow set multiple tac value by ; split, e:4388;4360 "
mmeProfile:
display: "MME Profile"
@@ -90,6 +119,13 @@ cbc:
filter: "0~15"
display: "Index"
comment: "0~15"
- name: "enabled"
type: "bool"
value: "1"
access: "read-write"
filter: '{"0":"false","1":"true"}'
display: "Enable MME"
comment: "apply the current MME NF Profile"
- name: "name"
type: "string"
value: "MME"
@@ -103,18 +139,40 @@ cbc:
access: "read-write"
filter: "0~64"
display: "MME URI"
comment: ""
- name: "plmnId"
comment: "format: sctp://<IP>:<PORT> e.g: sctp://192.168.1.1:9090"
- name: "taiList"
type: "regex"
value: "00101"
value: ""
access: "read-write"
filter: "^[0-9]{5,6}$"
display: "PLMN ID"
comment: ""
- name: "tac"
type: "string"
value: "1"
access: "read-write"
filter: "0~8"
display: "TAC"
comment: "0~16777215"
filter: ""
display: "Tai List"
comment: "allow TaiList null or add more tai value"
array:
- name: "index"
type: "int"
value: "1"
access: "read-only"
filter: "1~32"
display: "Index"
comment: "1~32"
- name: "mcc"
type: "regex"
value: "460"
access: "read-write"
filter: '^\d{3,3}$'
display: "MCC"
comment: ""
- name: "mnc"
type: "regex"
value: "00"
access: "read-write"
filter: '^\d{2,3}$'
display: "MNC"
comment: ""
- name: "tac"
type: "regex"
value: "4388"
access: "read-write"
filter: '^(\d+(;\d+)*)?$'
display: "TAC"
comment: "(A).format is decimal string,e.g:43888 (B).Allow set multiple tac value by ; split, e:4388;4360 "

View File

@@ -14,17 +14,17 @@ omc:
type: "ipv4"
value: "172.16.5.100"
access: "read-write"
filter: '0~128'
filter: "0~128"
display: "Host"
comment: "NE signaling trace host address"
- name: "port"
type: "int"
value: "33033"
access: "read-write"
filter: '3000~65530'
filter: "3000~65530"
display: "Port"
comment: "NE signaling trace port"
alarmEmailForward:
notificationEmail:
display: "Alarm Email Forward Interface"
sort: 3
list:
@@ -32,9 +32,16 @@ omc:
type: "bool"
value: "true"
access: "rw"
filter: "true;false"
filter: '{"0":"false","1":"true"}'
display: "Enable"
comment: "Is it enabled forward alarm with Email interface"
- name: "list"
type: "string"
value: ""
access: "rw"
filter: ""
display: "Email List"
comment: ""
- name: "title"
type: "string"
value: ""
@@ -42,13 +49,6 @@ omc:
filter: ""
display: "Email Title"
comment: "string, no variable support"
- name: "emailList"
type: "string"
value: ""
access: "rw"
filter: ""
display: "Email List"
comment: ""
- name: "smtp"
type: "string"
value: ""
@@ -77,14 +77,7 @@ omc:
filter: ""
display: "Password"
comment: ""
- name: "tlsSkipVerify"
type: "bool"
value: "true"
access: "rw"
filter: "true;false"
display: "TLS Skip Verify"
comment: "If skip TLS verify (true/false)"
alarmSMSForward:
notificationSMSC:
display: "Alarm SMS Forward Interface"
sort: 4
list:
@@ -95,27 +88,34 @@ omc:
filter: "true;false"
display: "Enable"
comment: "Is it enabled forward alarm with SMS interface"
- name: "mobileList"
- name: "list"
type: "string"
value: ""
access: "rw"
filter: ""
display: "Mobile List"
comment: "Multiple mobile separated by commas"
- name: "smscAddr"
- name: "addr"
type: "string"
value: ""
access: "rw"
filter: ""
display: "SMSC Address"
comment: "The SMSC SMPP Address"
- name: "systemID"
- name: "systemid"
type: "string"
value: ""
access: "rw"
filter: ""
display: "System ID"
comment: ""
- name: "systemtype"
type: "string"
value: ""
access: "rw"
filter: ""
display: "System Type"
comment: ""
- name: "password"
type: "string"
value: ""
@@ -123,21 +123,14 @@ omc:
filter: ""
display: "Password"
comment: ""
- name: "systemType"
type: "string"
value: ""
access: "rw"
filter: ""
display: "System Type"
comment: ""
- name: "dataCoding"
- name: "coding"
type: "enum"
value: "GSM7BIT"
access: "rw"
filter: '{"0":"GSM7BIT","1":"ASCII","2":"BINARY8BIT1","3":"LATIN1","4":"BINARY8BIT2","6":"CYRILLIC","7":"HEBREW","8":"UCS2"}'
display: "Data Coding"
comment: "Short message coding type"
- name: "serviceNumber"
- name: "servicenumber"
type: "string"
value: "OMC"
access: "rw"

View File

@@ -256,7 +256,7 @@ udm:
comment: ""
- name: "name"
type: "string"
value: "def_ambr"
value: "lab_sar"
access: "read-write"
filter: "^.{1,32}$"
display: "Name"