X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fcontrol%2Fcontrol.go;h=d213c65e1c1179a8261bb4abf43f924e4f9c7cf3;hb=refs%2Fchanges%2F95%2F395%2F1;hp=6c75063c74f7d83eb374c8aacb6c39821ecdfbc8;hpb=4511475f03107eb53c88545649898e3cfbcc2765;p=ric-plt%2Fsubmgr.git diff --git a/pkg/control/control.go b/pkg/control/control.go index 6c75063..d213c65 100644 --- a/pkg/control/control.go +++ b/pkg/control/control.go @@ -67,21 +67,29 @@ func (c *Control) rmrSend(datagram *RmrDatagram) (err error) { } func (c *Control) handleSubscriptionRequest(datagram *RmrDatagram) ( err error) { + /* TODO: removed to being able to integrate with UEMGR content, err := c.e2ap.GetPayloadContent(datagram.Payload) - xapp.Logger.Info("Subscription Request received: %v", content) + */ + xapp.Logger.Info("Subscription Request Message received with ID: %v", datagram.SubscriptionId) new_sub_id := c.registry.GetSubscriptionId() + /* TODO: removed to being able to integrate with UEMGR payload, err := c.e2ap.SetSubscriptionSequenceNumber(datagram.Payload, new_sub_id) if err != nil { xapp.Logger.Error("Unable to set Subscription Sequence Number in Payload due to: "+ err.Error()) return } - xapp.Logger.Info("New Subscription Accepted, Forwarding to E2T") - c.rmrSend(&RmrDatagram{C.RIC_SUB_REQ , new_sub_id, payload}) + */ + xapp.Logger.Info("New Subscription Registered, forwarding to E2T") + c.rmrSend(&RmrDatagram{C.RIC_SUB_REQ , new_sub_id, datagram.Payload}) return } func (c *Control) handleSubscriptionResponse(datagram *RmrDatagram) ( err error) { + /* TODO: removed to being able to integrate with UEMGR content, err := c.e2ap.GetPayloadContent(datagram.Payload) - xapp.Logger.Info("Subscription Response received: %v", content) + */ + xapp.Logger.Info("Subscription Response Message received with ID: %v", datagram.SubscriptionId) + xapp.Logger.Info("Subscription Response Registered, forwarding to Requestor") + c.rmrSend(&RmrDatagram{C.RIC_SUB_RESP , datagram.SubscriptionId, datagram.Payload}) return } \ No newline at end of file