[RIC-432] - Support Update eNB REST API.
[ric-plt/e2mgr.git] / E2Manager / handlers / rmrmsghandlers / e2_setup_request_notification_handler.go
index c5f5e4a..0b8ce33 100644 (file)
@@ -72,10 +72,12 @@ func (h *E2SetupRequestNotificationHandler) Handle(request *models.NotificationR
        generalConfiguration, err := h.rNibDataService.GetGeneralConfiguration()
 
        if err != nil {
-               h.logger.Errorf("#E2SetupRequestNotificationHandler.Handle - Failed retrieving e2m general configuration. error: %s", err)
+               h.logger.Errorf("#E2SetupRequestNotificationHandler.Handle - Failed retrieving e2m general configuration - quitting e2 setup flow. error: %s", err)
                return
        }
 
+       h.logger.Infof("#E2SetupRequestNotificationHandler.Handle - got general configuration from rnib - enableRic: %t", generalConfiguration.EnableRic)
+
        if !generalConfiguration.EnableRic {
                cause := models.Cause{Misc: &models.CauseMisc{OmIntervention: &struct{}{}}}
                h.handleUnsuccessfulResponse(ranName, request, cause)
@@ -150,12 +152,6 @@ func (h *E2SetupRequestNotificationHandler) handleNewRan(ranName string, e2tIpAd
                return nil, err
        }
 
-       err = h.ranConnectStatusChangeManager.ChangeStatus(nodebInfo, entities.ConnectionStatus_CONNECTED)
-
-       if err != nil {
-               return nil, err
-       }
-
        return nodebInfo, nil
 }