Loading go-apps/meep-loc-serv/sbi/loc-serv-sbi.go +18 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,8 @@ func processActiveScenarioTerminate() { func processActiveScenarioUpdate() { log.Debug("processActiveScenarioUpdate") formerUeNameList := sbi.activeModel.GetNodeNames("UE") // Sync with active scenario store sbi.activeModel.UpdateScenario() Loading Loading @@ -161,6 +163,22 @@ func processActiveScenarioUpdate() { uePerNetLocMap[netLoc]++ } //only find UEs that were removed, check that former UEs are in new UE list foundOldInNewList := false for _, oldUe := range formerUeNameList { foundOldInNewList = false for _, newUe := range ueNameList { if newUe == oldUe { foundOldInNewList = true break } } if !foundOldInNewList { sbi.updateUserInfoCB(oldUe, "", "") log.Info("Ue removed : ", oldUe) } } // Update POA-CELL info poaNameList := sbi.activeModel.GetNodeNames("POA-CELL") for _, name := range poaNameList { Loading go-apps/meep-loc-serv/server/loc-serv.go +3 −8 Original line number Diff line number Diff line Loading @@ -321,7 +321,6 @@ func checkNotificationRegisteredUsers(oldZoneId string, newZoneId string, oldApI //check all that applies for subsId, value := range userSubscriptionMap { if value == userId { subsIdStr := strconv.Itoa(subsId) Loading @@ -339,7 +338,7 @@ func checkNotificationRegisteredUsers(oldZoneId string, newZoneId string, oldApI zonal.CallbackData = subscription.ClientCorrelator if newZoneId != oldZoneId { if userSubscriptionEnteringMap[subsId] != "" { if userSubscriptionEnteringMap[subsId] != "" && newZoneId != "" { zonal.ZoneId = newZoneId zonal.CurrentAccessPointId = newApId event := new(clientNotifOMA.UserEventType) Loading Loading @@ -1266,12 +1265,8 @@ func updateUserInfo(address string, zoneId string, accessPointId string) { oldZoneId = userInfo.ZoneId oldApId = userInfo.AccessPointId if zoneId != "" { userInfo.ZoneId = zoneId } if accessPointId != "" { userInfo.AccessPointId = accessPointId } //updateDB _ = rc.JSONSetEntry(baseKey+typeUser+":"+address, ".", convertUserInfoToJson(userInfo)) Loading go-apps/meep-rnis/sbi/rnis-sbi.go +19 −5 Original line number Diff line number Diff line Loading @@ -133,14 +133,13 @@ func processActiveScenarioTerminate() { } func processActiveScenarioUpdate() { log.Debug("processActiveScenarioUpdate") formerUeNameList := sbi.activeModel.GetNodeNames("UE") sbi.activeModel.UpdateScenario() processScenarioUpdate() } func processScenarioUpdate() { // Update scenario Name that needs to be accessed by the NBI scenarioName := sbi.activeModel.GetScenarioName() sbi.updateScenarioNameCB(scenarioName) Loading Loading @@ -172,13 +171,28 @@ func processScenarioUpdate() { cellId = domain.CellularDomainConfig.DefaultCellId } } sbi.updateUeEcgiInfoCB(name, mnc, mcc, cellId) } } } } //only find UEs that were removed, check that former UEs are in new UE list foundOldInNewList := false for _, oldUe := range formerUeNameList { foundOldInNewList = false for _, newUe := range ueNameList { if newUe == oldUe { foundOldInNewList = true break } } if !foundOldInNewList { sbi.updateUeEcgiInfoCB(oldUe, "", "", "") log.Info("Ue removed : ", oldUe) } } // Update Edge App info meAppNameList := sbi.activeModel.GetNodeNames("EDGE-APP") ueAppNameList := sbi.activeModel.GetNodeNames("UE-APP") Loading go-apps/meep-rnis/server/rnis.go +14 −5 Original line number Diff line number Diff line Loading @@ -159,7 +159,6 @@ func updateUeEcgiInfo(name string, mnc string, mcc string, cellId string) { oldPlmnMcc = ecgiInfo.Plmn.Mcc oldCellId = ecgiInfo.CellId[0] } //updateDB if changes occur if newEcgi.Plmn.Mnc != oldPlmnMnc || newEcgi.Plmn.Mcc != oldPlmnMcc || newEcgi.CellId[0] != oldCellId { //updateDB Loading Loading @@ -351,14 +350,24 @@ func checkNotificationRegisteredSubscriptions(appId string, assocId *AssociateId var newEcgi clientNotif.Ecgi var notifNewPlmn clientNotif.Plmn if newPlmn != nil { notifNewPlmn.Mnc = newPlmn.Mnc notifNewPlmn.Mcc = newPlmn.Mcc } else { notifNewPlmn.Mnc = "" notifNewPlmn.Mcc = "" } newEcgi.Plmn = ¬ifNewPlmn newEcgi.CellId = []string{newCellId} var oldEcgi clientNotif.Ecgi var notifOldPlmn clientNotif.Plmn if oldPlmn != nil { notifOldPlmn.Mnc = oldPlmn.Mnc notifOldPlmn.Mcc = oldPlmn.Mcc } else { notifOldPlmn.Mnc = "" notifOldPlmn.Mcc = "" } oldEcgi.Plmn = ¬ifOldPlmn oldEcgi.CellId = []string{oldCellId} Loading go-packages/meep-model/model.go +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ var redisTable = 0 const ( NodeTypePoa = "POA" NodeTypePoaCell = "POA CELLULAR" NodeTypePoaCell = "POA-CELL" NodeTypeUE = "UE" ) Loading Loading
go-apps/meep-loc-serv/sbi/loc-serv-sbi.go +18 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,8 @@ func processActiveScenarioTerminate() { func processActiveScenarioUpdate() { log.Debug("processActiveScenarioUpdate") formerUeNameList := sbi.activeModel.GetNodeNames("UE") // Sync with active scenario store sbi.activeModel.UpdateScenario() Loading Loading @@ -161,6 +163,22 @@ func processActiveScenarioUpdate() { uePerNetLocMap[netLoc]++ } //only find UEs that were removed, check that former UEs are in new UE list foundOldInNewList := false for _, oldUe := range formerUeNameList { foundOldInNewList = false for _, newUe := range ueNameList { if newUe == oldUe { foundOldInNewList = true break } } if !foundOldInNewList { sbi.updateUserInfoCB(oldUe, "", "") log.Info("Ue removed : ", oldUe) } } // Update POA-CELL info poaNameList := sbi.activeModel.GetNodeNames("POA-CELL") for _, name := range poaNameList { Loading
go-apps/meep-loc-serv/server/loc-serv.go +3 −8 Original line number Diff line number Diff line Loading @@ -321,7 +321,6 @@ func checkNotificationRegisteredUsers(oldZoneId string, newZoneId string, oldApI //check all that applies for subsId, value := range userSubscriptionMap { if value == userId { subsIdStr := strconv.Itoa(subsId) Loading @@ -339,7 +338,7 @@ func checkNotificationRegisteredUsers(oldZoneId string, newZoneId string, oldApI zonal.CallbackData = subscription.ClientCorrelator if newZoneId != oldZoneId { if userSubscriptionEnteringMap[subsId] != "" { if userSubscriptionEnteringMap[subsId] != "" && newZoneId != "" { zonal.ZoneId = newZoneId zonal.CurrentAccessPointId = newApId event := new(clientNotifOMA.UserEventType) Loading Loading @@ -1266,12 +1265,8 @@ func updateUserInfo(address string, zoneId string, accessPointId string) { oldZoneId = userInfo.ZoneId oldApId = userInfo.AccessPointId if zoneId != "" { userInfo.ZoneId = zoneId } if accessPointId != "" { userInfo.AccessPointId = accessPointId } //updateDB _ = rc.JSONSetEntry(baseKey+typeUser+":"+address, ".", convertUserInfoToJson(userInfo)) Loading
go-apps/meep-rnis/sbi/rnis-sbi.go +19 −5 Original line number Diff line number Diff line Loading @@ -133,14 +133,13 @@ func processActiveScenarioTerminate() { } func processActiveScenarioUpdate() { log.Debug("processActiveScenarioUpdate") formerUeNameList := sbi.activeModel.GetNodeNames("UE") sbi.activeModel.UpdateScenario() processScenarioUpdate() } func processScenarioUpdate() { // Update scenario Name that needs to be accessed by the NBI scenarioName := sbi.activeModel.GetScenarioName() sbi.updateScenarioNameCB(scenarioName) Loading Loading @@ -172,13 +171,28 @@ func processScenarioUpdate() { cellId = domain.CellularDomainConfig.DefaultCellId } } sbi.updateUeEcgiInfoCB(name, mnc, mcc, cellId) } } } } //only find UEs that were removed, check that former UEs are in new UE list foundOldInNewList := false for _, oldUe := range formerUeNameList { foundOldInNewList = false for _, newUe := range ueNameList { if newUe == oldUe { foundOldInNewList = true break } } if !foundOldInNewList { sbi.updateUeEcgiInfoCB(oldUe, "", "", "") log.Info("Ue removed : ", oldUe) } } // Update Edge App info meAppNameList := sbi.activeModel.GetNodeNames("EDGE-APP") ueAppNameList := sbi.activeModel.GetNodeNames("UE-APP") Loading
go-apps/meep-rnis/server/rnis.go +14 −5 Original line number Diff line number Diff line Loading @@ -159,7 +159,6 @@ func updateUeEcgiInfo(name string, mnc string, mcc string, cellId string) { oldPlmnMcc = ecgiInfo.Plmn.Mcc oldCellId = ecgiInfo.CellId[0] } //updateDB if changes occur if newEcgi.Plmn.Mnc != oldPlmnMnc || newEcgi.Plmn.Mcc != oldPlmnMcc || newEcgi.CellId[0] != oldCellId { //updateDB Loading Loading @@ -351,14 +350,24 @@ func checkNotificationRegisteredSubscriptions(appId string, assocId *AssociateId var newEcgi clientNotif.Ecgi var notifNewPlmn clientNotif.Plmn if newPlmn != nil { notifNewPlmn.Mnc = newPlmn.Mnc notifNewPlmn.Mcc = newPlmn.Mcc } else { notifNewPlmn.Mnc = "" notifNewPlmn.Mcc = "" } newEcgi.Plmn = ¬ifNewPlmn newEcgi.CellId = []string{newCellId} var oldEcgi clientNotif.Ecgi var notifOldPlmn clientNotif.Plmn if oldPlmn != nil { notifOldPlmn.Mnc = oldPlmn.Mnc notifOldPlmn.Mcc = oldPlmn.Mcc } else { notifOldPlmn.Mnc = "" notifOldPlmn.Mcc = "" } oldEcgi.Plmn = ¬ifOldPlmn oldEcgi.CellId = []string{oldCellId} Loading
go-packages/meep-model/model.go +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ var redisTable = 0 const ( NodeTypePoa = "POA" NodeTypePoaCell = "POA CELLULAR" NodeTypePoaCell = "POA-CELL" NodeTypeUE = "UE" ) Loading