fix: update Fqdn
This commit is contained in:
@@ -3,6 +3,7 @@ package syncNbiNRM
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"be.ems/lib/dborm"
|
"be.ems/lib/dborm"
|
||||||
@@ -94,10 +95,10 @@ func (s *BarProcessor) SyncAmfNbiCM() error {
|
|||||||
AdministrativeState: adminState,
|
AdministrativeState: adminState,
|
||||||
OperationalState: operState,
|
OperationalState: operState,
|
||||||
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
||||||
Fqdn: "amf-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("%s%s.mnc000.mcc460.3gppnetwork.org", strings.ToLower(ne.NeType), ne.NeId),
|
||||||
SbiServiceList: "Namf_Communication,Namf_EventExposure,Namf_MT,Namf_Location",
|
SbiServiceList: "Namf_Communication,Namf_EventExposure,Namf_MT,Namf_Location",
|
||||||
AmfGuamiList: "[{\"mcc\":\"460\",\"mnc\":\"01\",\"amfId\":\"" + ne.NeId + "\"}]",
|
AmfGuamiList: "[{\"mcc\":\"460\",\"mnc\":\"000\",\"amfId\":\"" + ne.NeId + "\"}]",
|
||||||
SnssaiList: "[{\"sst\":1,\"sd\":\"010203\"}]",
|
SnssaiList: "[{\"sst\":1,\"sd\":\"000001\"}]",
|
||||||
MaxUser: 1000000,
|
MaxUser: 1000000,
|
||||||
RelativeCapacity: 30,
|
RelativeCapacity: 30,
|
||||||
MaxGnbNum: 100,
|
MaxGnbNum: 100,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package syncNbiNRM
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"be.ems/lib/dborm"
|
"be.ems/lib/dborm"
|
||||||
@@ -89,7 +90,7 @@ func (s *BarProcessor) SyncPcfNbiCM() error {
|
|||||||
AdministrativeState: adminState,
|
AdministrativeState: adminState,
|
||||||
OperationalState: operState,
|
OperationalState: operState,
|
||||||
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
||||||
Fqdn: "pcf-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("%s%s.mnc000.mcc460.3gppnetwork.org", strings.ToLower(ne.NeType), ne.NeId),
|
||||||
SbiServiceList: "Npcf_AMPolicyControl,Npcf_PolicyAuthorization,Npcf_SMPolicyControl,Npcf_BDTPolicyControl",
|
SbiServiceList: "Npcf_AMPolicyControl,Npcf_PolicyAuthorization,Npcf_SMPolicyControl,Npcf_BDTPolicyControl",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package syncNbiNRM
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"be.ems/lib/dborm"
|
"be.ems/lib/dborm"
|
||||||
@@ -89,11 +90,11 @@ func (s *BarProcessor) SyncSmfNbiCM() error {
|
|||||||
AdministrativeState: string(adminState),
|
AdministrativeState: string(adminState),
|
||||||
OperationalState: string(operState),
|
OperationalState: string(operState),
|
||||||
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
||||||
Fqdn: "smf-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("%s%s.mnc000.mcc460.3gppnetwork.org", strings.ToLower(ne.NeType), ne.NeId),
|
||||||
SbiServiceList: "Nsmf_PDUSession,Nsmf_EventExposure",
|
SbiServiceList: "Nsmf_PDUSession,Nsmf_EventExposure",
|
||||||
MaxPduSessions: 1000000,
|
MaxPduSessions: 1000000,
|
||||||
MaxQfi: 64,
|
MaxQfi: 64,
|
||||||
UpfList: "[\"UPF-1\",\"UPF-2\"]",
|
UpfList: "[\"UPF-001\",\"UPF-2\"]",
|
||||||
}
|
}
|
||||||
|
|
||||||
// 序列化为JSON
|
// 序列化为JSON
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package syncNbiNRM
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"be.ems/lib/dborm"
|
"be.ems/lib/dborm"
|
||||||
@@ -89,7 +90,7 @@ func (s *BarProcessor) SyncUdmNbiCM() error {
|
|||||||
AdministrativeState: string(adminState),
|
AdministrativeState: string(adminState),
|
||||||
OperationalState: string(operState),
|
OperationalState: string(operState),
|
||||||
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
VnfInstanceId: "vnf-" + ne.NeType + "-" + ne.NeId,
|
||||||
Fqdn: "udm-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("%s%s.mnc000.mcc460.3gppnetwork.org", ne.NeType, ne.NeId),
|
||||||
SbiServiceList: "Nudm_UEAuthentication,Nudm_SubscriberDataManagement,Nudm_UEContextManagement",
|
SbiServiceList: "Nudm_UEAuthentication,Nudm_SubscriberDataManagement,Nudm_UEContextManagement",
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,7 +127,7 @@ func (s *BarProcessor) SyncUdmNbiCM() error {
|
|||||||
AdministrativeState: string(adminState),
|
AdministrativeState: string(adminState),
|
||||||
OperationalState: string(operState),
|
OperationalState: string(operState),
|
||||||
VnfInstanceId: "vnf-UDR-" + ne.NeId,
|
VnfInstanceId: "vnf-UDR-" + ne.NeId,
|
||||||
Fqdn: "udr-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("%s%s.mnc000.mcc460.3gppnetwork.org", strings.ToLower(ne.NeType), ne.NeId),
|
||||||
SbiServiceList: "Nudr_DataRepository",
|
SbiServiceList: "Nudr_DataRepository",
|
||||||
MaxNumSupi: 800000,
|
MaxNumSupi: 800000,
|
||||||
MaxNumMsisdn: 800000,
|
MaxNumMsisdn: 800000,
|
||||||
@@ -163,7 +164,7 @@ func (s *BarProcessor) SyncUdmNbiCM() error {
|
|||||||
AdministrativeState: string(adminState),
|
AdministrativeState: string(adminState),
|
||||||
OperationalState: string(operState),
|
OperationalState: string(operState),
|
||||||
VnfInstanceId: "vnf-AUSF-" + ne.NeId,
|
VnfInstanceId: "vnf-AUSF-" + ne.NeId,
|
||||||
Fqdn: "ausf-" + ne.NeId + ".5gc.3gpp.org",
|
Fqdn: fmt.Sprintf("ausf%s.mnc000.mcc460.3gppnetwork.org", ne.NeId),
|
||||||
SbiServiceList: "Nausf_UEAuthentication,Nausf_SoRProtection",
|
SbiServiceList: "Nausf_UEAuthentication,Nausf_SoRProtection",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user