Handling e2 reset request & change status to reset
[ric-plt/e2mgr.git] / E2Manager / handlers / rmrmsghandlers / setup_response_notification_handler.go
index 30b1a37..1a7bb45 100644 (file)
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
+
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
+
 package rmrmsghandlers
 
 import (
@@ -70,7 +73,6 @@ func (h SetupResponseNotificationHandler) Handle(request *models.NotificationReq
                return
        }
 
-       nodebInfo.ConnectionAttempts = 0
        nbIdentity := &entities.NbIdentity{InventoryName: inventoryName}
        err := h.setupResponseManager.PopulateNodebByPdu(h.logger, nbIdentity, nodebInfo, request.Payload)
 
@@ -78,7 +80,7 @@ func (h SetupResponseNotificationHandler) Handle(request *models.NotificationReq
                return
        }
 
-       rnibErr = h.rnibDataService.SaveNodeb(nbIdentity, nodebInfo)
+       rnibErr = h.rnibDataService.SaveNodeb(nodebInfo)
 
        if rnibErr != nil {
                h.logger.Errorf("#SetupResponseNotificationHandler - RAN name: %s - Error saving RAN to rNib: %v", request.RanName, rnibErr)