- if err := h.ranReconnectionManager.ReconnectRan(nbIdentity.InventoryName); err != nil {
- h.logger.Errorf("#E2TermInitNotificationHandler.Handle - Ran name: %s - connection attempt failure, error: %s", (*nbIdentity).GetInventoryName(), err.Error())
- _, ok := err.(*common.ResourceNotFoundError)
- if !ok {
+ h.HandleExistingE2TInstance(e2tInstance)
+
+ h.logger.Infof("#E2TermInitNotificationHandler.Handle - Completed handling of E2_TERM_INIT")
+}
+
+func (h E2TermInitNotificationHandler) HandleExistingE2TInstance(e2tInstance *entities.E2TInstance) {
+
+ for _, ranName := range e2tInstance.AssociatedRanList {
+
+ if err := h.ranDisconnectionManager.DisconnectRan(ranName); err != nil {
+ if _, ok := err.(*common.ResourceNotFoundError); !ok {