4 Commits

Author SHA1 Message Date
TsMask
54ed5c5e53 chore: 更新版本号 2.2410.4 2024-11-02 15:26:14 +08:00
1ed5e91aa8 Optimize the packaging process for BA 2024-11-01 17:14:31 +08:00
TsMask
b00bb1eec0 fix: SMSC安装时关联修改IMS和UDM配置 2024-10-31 15:23:13 +08:00
TsMask
a10052660f sql: 更新AMF/SMF参数配置项数据 2024-10-31 10:49:58 +08:00
14 changed files with 99 additions and 25 deletions

View File

@@ -1,5 +1,14 @@
# 版本发布日志
## 2.2410.4-20241102
- 新增 直连网元信息取得hostname/os属性值
- 新增 UDM鉴权签约imsi多查询
- 更新 更新系统菜单新增关键指标概览
- 更新 定时任务周期同步更新UDM用户数据
- 更新 AMF/SMF参数配置项数据
- 修复 SMSC安装时关联修改IMS和UDM配置
## 2.2410.3-20241018
- 新增 网元主机支持redis配置项

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project
PROJECT = OMC
VERSION = 2.2410.3
VERSION = 2.2410.4
PLATFORM = amd64
ARMPLATFORM = aarch64
BUILDDIR = ../../build

View File

@@ -80,6 +80,34 @@ amf:
filter: "0~64"
display: "PCF URI"
comment: ""
- name: "backupAusfUri"
type: "string"
value: "http://172.16.5.131:8080"
access: "read-write"
filter: "0~64"
display: "Backup AUSF URI"
comment: ""
- name: "backupUdmUri"
type: "string"
value: "http://172.16.5.141:8080"
access: "read-write"
filter: "0~64"
display: "Backup UDM URI"
comment: ""
- name: "backupSmfUri"
type: "string"
value: "http://172.16.5.151:8080"
access: "read-write"
filter: "0~64"
display: "Backup SMF URI"
comment: ""
- name: "backupPcfUri"
type: "string"
value: "http://172.16.5.161:8080"
access: "read-write"
filter: "0~64"
display: "Backup PCF URI"
comment: ""
- name: "lmfUri"
type: "string"
value: "http://172.16.5.200:8080"
@@ -471,4 +499,3 @@ amf:
filter: '{"0":"false","1":"true"}'
display: "statusReportEnabled"
comment: ""

View File

@@ -72,14 +72,14 @@ smf:
access: "read-write"
filter: ""
display: "PCF URI"
comment: ""
comment: "URI1;URI2"
- name: "udmUri"
type: "string"
value: "http://172.16.5.140:8080"
access: "read-write"
filter: ""
display: "UDM URI"
comment: ""
comment: "URI1;URI2"
- name: "chfEnable"
type: "bool"
value: "false"

View File

@@ -1,7 +1,7 @@
# Makefile for OMC-OMC-crontask project
PROJECT = OMC
VERSION = 2.2410.3
VERSION = 2.2410.4
LIBDIR = be.ems/lib
BINNAME = crontask

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project
PROJECT = OMC
VERSION = 2.2410.3
VERSION = 2.2410.4
RelDate = `date +%Y%m%d`
Release = $(RelDate)
RelVer = $(VERSION)-$(RelDate)

File diff suppressed because one or more lines are too long

View File

@@ -3,7 +3,7 @@
ProjectL = omc
ProjectU = OMC
PROJECT = $(ProjectL)
VERSION = 2.2410.3
VERSION = 2.2410.4
RelDate = `date +%Y%m%d`
Release = $(RelDate)
RelVer = $(VERSION)-$(RelDate)

View File

@@ -68,6 +68,10 @@ case "${M_ARG}" in
done
cp -rf ${CustomizedDir}/logo/* ${OMCStaticDir}/logo
cp -rf ${CustomizedDir}/doc/* ${OMCStaticDir}/helpDoc
if [ "${C_ARG_LOWER}" == "ba" ]; then
rm -rf ${OMCStaticDir}/logo/zh_*
rm -rf ${OMCStaticDir}/helpDoc/zh_*
fi
#perl -0777 -i -pe 's/omcuser/bluearcus/g' ${OMCRootDir}/etc/default/restconf.yaml
#perl -0777 -i -pe 's/omcuser/bluearcus/g' ${OMCBinDir}/nehosts
if [ $? = 0 ]; then
@@ -91,6 +95,10 @@ case "${M_ARG}" in
done
cp -rf ${CustomizedDir}/logo/* ${OMCStaticDir}/logo
cp -rf ${CustomizedDir}/doc/* ${OMCStaticDir}/helpDoc
if [ "${C_ARG_LOWER}" == "ba" ]; then
rm -rf ${OMCStaticDir}/logo/zh_*
rm -rf ${OMCStaticDir}/helpDoc/zh_*
fi
if [ $? = 0 ]; then
echo "done"
fi

View File

@@ -2,7 +2,7 @@
ProcList="restagent crontask sshsvc captrace data2html"
ProjectL=omc
VERSION=2.2410.3
VERSION=2.2410.4
RelDate=`date +%Y%m%d`
Release=${RelDate}
RelVer=${VERSION}-${RelDate}

View File

@@ -1,7 +1,7 @@
# Makefile for rest agent project
PROJECT = OMC
VERSION = 2.2410.3
VERSION = 2.2410.4
PLATFORM = amd64
ARMPLATFORM = aarch64
BUILDDIR = ../../build

View File

@@ -1,7 +1,7 @@
# 项目信息
framework:
name: "OMC"
version: "2.2410.3"
version: "2.2410.4"
# 应用服务配置
server:

View File

@@ -657,11 +657,40 @@ func (r *NeVersion) operateDome(action string, neVersion model.NeVersion) error
if neInfo.NeId != neVersion.NeId {
return fmt.Errorf("error found neinfo")
}
// ========= 网元OAM配置文件 start ==========
if err := NewNeInfo.NeConfOAMWirteSync(neInfo, nil, true); err != nil {
return fmt.Errorf("error wirte OAM file info")
}
// ========= 网元OAM配置文件 end ===========
// SMSC配置修改IMS和UDM 配置
if neInfo.NeType == "SMSC" {
para5GData := NewNeInfo.Para5GData
mnc_mcc := fmt.Sprintf("mnc%s.mcc%s", para5GData["MNC_DOMAIN"], para5GData["MCC"])
smscHost := fmt.Sprintf("%s smsc.ims.%s.3gppnetwork.org", para5GData["SMSC_IP"], mnc_mcc)
smscHostCMD := fmt.Sprintf("grep -qxF '%s' /etc/hosts || echo '%s' | sudo tee -a /etc/hosts \n", smscHost, smscHost)
smscIPCMD := fmt.Sprintf("grep -qxF '%s smsc' /etc/hosts || echo '%s smsc' | sudo tee -a /etc/hosts \n", para5GData["SMSC_IP"], para5GData["SMSC_IP"])
// IMS 配置
imsNEs := NewNeInfo.SelectList(model.NeInfo{NeType: "IMS"}, false, false)
for _, v := range imsNEs {
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscIPCMD)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscHostCMD)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, "sudo sed -i '/^#!define WITH_SMS/ s/^/#/' /usr/local/etc/ims/vars.cfg")
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, "ims-stop || true && ims-start")
}
// UDM 配置
smscASName := fmt.Sprintf("sudo sed -i '/- name: sms_as/{n;s|serverName: .*|serverName: sip:%s:5060|}' /usr/local/etc/udm/as.yaml", para5GData["SMSC_IP"])
smscASAddress := fmt.Sprintf("sudo sed -i '/- name: sms_as/{n;s|diameterAddress: .*|diameterAddress: smsc.ims.%s.3gppnetwork.org|}' /usr/local/etc/udm/as.yaml", mnc_mcc)
udmNEs := NewNeInfo.SelectList(model.NeInfo{NeType: "UDM"}, false, false)
for _, v := range udmNEs {
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscIPCMD)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscHostCMD)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscASName)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, smscASAddress)
NewNeInfo.NeRunSSHCmd(v.NeType, v.NeId, "sudo service udm restart")
}
}
}
// 更新Version

View File

@@ -1,7 +1,7 @@
# Makefile for OMC-OMC-crontask project
PROJECT = OMC
VERSION = 2.2410.3
VERSION = 2.2410.4
LIBDIR = be.ems/lib
BINNAME = sshsvc