X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Fenb_load_information_to_protobuf.go;h=f40fa0ef7ef13d31f73fc3e2f03b7b916510f5bb;hb=refs%2Fchanges%2F50%2F750%2F1;hp=7427c74d34eb35773e7bd0e959252603950ebd83;hpb=19bf35ea1556e746bbcbcaa8090033bd38fe71b7;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/enb_load_information_to_protobuf.go b/E2Manager/handlers/enb_load_information_to_protobuf.go index 7427c74..f40fa0e 100644 --- a/E2Manager/handlers/enb_load_information_to_protobuf.go +++ b/E2Manager/handlers/enb_load_information_to_protobuf.go @@ -12,7 +12,7 @@ import ( ) const ( - MaxCellineNb = 256 + MaxCellsInEnb = 256 MaxNoOfPrbs = 110 NaxNoOfCompHypothesisSet = 256 NaxNoOfCompCells = 32 @@ -64,7 +64,7 @@ func extractPduCellInformationItemIEs(pdu *C.E2AP_PDU_t) ([]*C.CellInformation_I loadInformationCellListCount := loadInformationCellList.list.count - if loadInformationCellListCount == 0 || loadInformationCellListCount > MaxCellineNb { + if loadInformationCellListCount == 0 || loadInformationCellListCount > MaxCellsInEnb { return nil, fmt.Errorf("#extractPduCellInformationItemIEs - Invalid CellInformation list count") } @@ -265,7 +265,7 @@ func extractPduUlHighInterferenceIndicationInfoItems(cellId string, cellInformat pduUlHighInterferenceIndicationInfoListCount := pduUlHighInterferenceIndicationInfo.list.count - if pduUlHighInterferenceIndicationInfoListCount == 0 || pduUlHighInterferenceIndicationInfoListCount > MaxCellineNb { + if pduUlHighInterferenceIndicationInfoListCount == 0 || pduUlHighInterferenceIndicationInfoListCount > MaxCellsInEnb { return nil, fmt.Errorf("#extractPduUlHighInterferenceIndicationInfoItems - cellId: %s - Invalid UL High Interference Indication info list count", cellId) } @@ -406,7 +406,7 @@ func extractPaListFromDynamicNaicsInformation(cellId string, dynamicNAICSInforma extendedUlInterferenceOverLoadIndicationList := (*[1 << 30]*C.long)(unsafe.Pointer(dynamicNAICSInformation.pA_list.list.array))[:int(paListCount):int(paListCount)] if (extendedUlInterferenceOverLoadIndicationList == nil) { - return nil, fmt.Errorf("#extractPaListFromDynamicNaicsInformation - cellId: %s - Extended Ul Interference OverLoad Indication List is nil") + return nil, fmt.Errorf("#extractPaListFromDynamicNaicsInformation - cellId: %s - Extended Ul Interference OverLoad Indication List is nil", cellId) } return extendedUlInterferenceOverLoadIndicationList, nil @@ -496,7 +496,7 @@ func buildCompHypothesisSets(cellId string, pduCompInformationItemMember *C.CoMP pduCompHypothesisSetItemsListCount := pduCompInformationItemMember.coMPHypothesisSet.list.count if pduCompHypothesisSetItemsListCount == 0 || pduCompHypothesisSetItemsListCount > NaxNoOfCompCells { - return nil, fmt.Errorf("#buildCompHypothesisSets - cellId: %s - Invalid Comp Hypothesis Set Items list count") + return nil, fmt.Errorf("#buildCompHypothesisSets - cellId: %s - Invalid Comp Hypothesis Set Items list count", cellId) } pduCompHypothesisSetItems := (*[1 << 30]*C.CoMPHypothesisSetItem_t)(unsafe.Pointer(pduCompInformationItemMember.coMPHypothesisSet.list.array))[:int(pduCompHypothesisSetItemsListCount):int(pduCompHypothesisSetItemsListCount)]