func (handler E2TermInitNotificationHandler) Handle(logger *logger.Logger, e2Sessions sessions.E2Sessions,
request *models.NotificationRequest, messageChannel chan<- *models.NotificationResponse) {
- nbIdentityList, err := handler.rnibReaderProvider().GetListNodebIds()
+ logger.Infof("#E2TermInitNotificationHandler.Handle - Handling E2_TERM_INIT")
+ nbIdentityList, err := handler.rnibReaderProvider().GetListNodebIds()
if err != nil {
logger.Errorf("#E2TermInitNotificationHandler.Handle - Failed to get nodes list from RNIB. Error: %s", err.Error())
return
if err := handler.ranReconnectionManager.ReconnectRan(nbIdentity.InventoryName); err != nil {
logger.Errorf("#E2TermInitNotificationHandler.Handle - Ran name: %s - connection attempt failure, error: %s", (*nbIdentity).GetInventoryName(), err.Error())
- rNibError, ok := err.(common.IRNibError)
- if !ok || rNibError.GetCode() != common.RESOURCE_NOT_FOUND {
+ _, ok := err.(*common.ResourceNotFoundError)
+ if !ok {
break
}
}
}
+
logger.Infof("#E2TermInitNotificationHandler.Handle - Completed handling of E2_TERM_INIT")
}