fix: sync nbi cm

This commit is contained in:
simon
2025-04-29 11:52:49 +08:00
parent f1c7e4fc1f
commit 4c782f45ab
3 changed files with 11 additions and 11 deletions

View File

@@ -135,7 +135,7 @@ func (s *BarProcessor) SyncAmfNbiCM() error {
// 创建 EpRpDynN8Amf 记录
epRpDynN8Amf := amf.EpRpDynN8Amf{
Id: fmt.Sprintf("%s-%s-EpRpDynN8Amf-%d", ne.NeType, ne.NeId, timestamp), // 生成唯一ID
UserLabel: ne.NeName + "-N8",
UserLabel: ne.NeName + "-EpRpDynN8Amf",
LocIpAddrList: "[\"" + ne.Ip + "\"]",
FarIpSubnetworkList: "[\"10.10.0.0/16\"]",
}
@@ -167,7 +167,7 @@ func (s *BarProcessor) SyncAmfNbiCM() error {
// 创建 EpRpDynN11Amf 记录
epRpDynN11Amf := amf.EpRpDynN11Amf{
Id: fmt.Sprintf("%s-%s-EpRpDynN11Amf-%d", ne.NeType, ne.NeId, timestamp), // 生成唯一ID
UserLabel: ne.NeName + "-N11",
UserLabel: ne.NeName + "-EpRpDynN11Amf",
LocIpAddrList: "[\"" + ne.Ip + "\"]",
FarIpSubnetworkList: "[\"10.11.0.0/16\"]",
}
@@ -199,7 +199,7 @@ func (s *BarProcessor) SyncAmfNbiCM() error {
// 创建 EpRpDynN12Amf 记录
epRpDynN12Amf := amf.EpRpDynN12Amf{
Id: fmt.Sprintf("%s-%s-EpRpDynN12Amf-%d", ne.NeType, ne.NeId, timestamp), // 生成唯一ID
UserLabel: ne.NeName + "-N12",
UserLabel: ne.NeName + "-EpRpDynN12Amf",
LocIpAddrList: "[\"" + ne.Ip + "\"]",
FarIpSubnetworkList: "[\"10.12.0.0/16\"]",
}