Commit 261d0a0c authored by muhammadh's avatar muhammadh
Browse files

implement logic in meep-rnis to include _links attribute

parent 49a87a28
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1608,6 +1608,7 @@ func checkCcNotificationRegisteredSubscriptions(appId string, assocId *Associate
				notif.SrcEcgi = &oldEcgi
				notif.TrgEcgi = []Ecgi{newEcgi}
				notif.AssociateId = append(notif.AssociateId, notifAssociateId)
				notif.Links.Subscription.Href = hostUrl.String() + basePath + "subscriptions/" + subsIdStr

				sendCcNotification(subscription.CallbackReference, notif)
				log.Info("Cell_change Notification" + "(" + subsIdStr + ")")
@@ -1681,6 +1682,7 @@ func checkReNotificationRegisteredSubscriptions(appId string, assocId *Associate
				notif.Ecgi = &newEcgi
				notif.ErabQosParameters = &erabQos
				notif.AssociateId = append(notif.AssociateId, notifAssociateId)
				notif.Links.Subscription.Href = hostUrl.String() + basePath + "subscriptions/" + subsIdStr

				sendReNotification(subscription.CallbackReference, notif)
				log.Info("Rab_establishment Notification" + "(" + subsIdStr + ")")
@@ -1755,6 +1757,7 @@ func checkRrNotificationRegisteredSubscriptions(appId string, assocId *Associate
				notif.Ecgi = &oldEcgi
				notif.ErabReleaseInfo = &erabRelInfo
				notif.AssociateId = append(notif.AssociateId, notifAssociateId)
				notif.Links.Subscription.Href = hostUrl.String() + basePath + "subscriptions/" + subsIdStr

				sendRrNotification(subscription.CallbackReference, notif)
				log.Info("Rab_release Notification" + "(" + subsIdStr + ")")
@@ -1878,7 +1881,7 @@ func checkMrNotificationRegisteredSubscriptions(key string, jsonInfo string, ext
						}
					}
				}

				notif.Links.Subscription.Href = hostUrl.String() + basePath + "subscriptions/" + subsIdStr
				if parentMeasExists {
					log.Info("Sending RNIS notification ", subscription.CallbackReference)
					callbackReference := subscription.CallbackReference
@@ -2031,7 +2034,7 @@ func checkNrMrNotificationRegisteredSubscriptions(key string, jsonInfo string, e
				if report5GNeighborOnly {
					notif.EutraNeighCellMeasInfo = nil
				}

				notif.Links.Subscription.Href = hostUrl.String() + basePath + "subscriptions/" + subsIdStr
				if parentMeasExists {
					log.Info("Sending RNIS notification ", subscription.CallbackReference)
					callbackReference := subscription.CallbackReference