Merge "[RIC-199] - e2_term_init_notification_handler - setup removed" into PI4
[ric-plt/e2mgr.git] / E2Manager / managers / ran_disconnection_manager.go
index 3c4479a..c34e528 100644 (file)
@@ -64,6 +64,8 @@ func (m *RanDisconnectionManager) DisconnectRan(inventoryName string) error {
                return nil
        }
 
+       nodebInfo.ConnectionAttempts = 0;
+
        if connectionStatus == entities.ConnectionStatus_SHUTTING_DOWN {
                return m.updateNodebInfo(nodebInfo, entities.ConnectionStatus_SHUT_DOWN)
        }
@@ -71,7 +73,7 @@ func (m *RanDisconnectionManager) DisconnectRan(inventoryName string) error {
        err = m.updateNodebInfo(nodebInfo, entities.ConnectionStatus_DISCONNECTED)
 
        if err != nil {
-               return err;
+               return err
        }
 
        e2tAddress := nodebInfo.AssociatedE2TInstanceAddress