X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Fhttpmsghandlers%2Fsetup_request_handler.go;h=dae75a9015a59c2632dcde7c5b5877df45c9bdf5;hb=a07b8597afc9d063a7f37a376a5bcf29ba29b557;hp=51e579b173273dab82bb55a14bc696237bb27b5b;hpb=1f62f4c6e2746153275b6c3b1e24a705e25b90c0;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/httpmsghandlers/setup_request_handler.go b/E2Manager/handlers/httpmsghandlers/setup_request_handler.go index 51e579b..dae75a9 100644 --- a/E2Manager/handlers/httpmsghandlers/setup_request_handler.go +++ b/E2Manager/handlers/httpmsghandlers/setup_request_handler.go @@ -102,7 +102,6 @@ func createInitialNodeInfo(requestDetails *models.SetupRequest, protocol entitie ConnectionStatus: entities.ConnectionStatus_CONNECTING, E2ApplicationProtocol: protocol, RanName: requestDetails.RanName, - ConnectionAttempts: 0, } nbIdentity := &entities.NbIdentity{ @@ -118,12 +117,11 @@ func (h *SetupRequestHandler) connectExistingRanWithoutAssociatedE2TAddress(node if err != nil { h.logger.Errorf("#SetupRequestHandler.connectExistingRanWithoutAssociatedE2TAddress - RAN name: %s - failed selecting E2T instance", nodebInfo.RanName) - if nodebInfo.ConnectionStatus == entities.ConnectionStatus_DISCONNECTED && nodebInfo.ConnectionAttempts == 0 { + if nodebInfo.ConnectionStatus == entities.ConnectionStatus_DISCONNECTED{ return err } nodebInfo.ConnectionStatus = entities.ConnectionStatus_DISCONNECTED - nodebInfo.ConnectionAttempts = 0 updateError := h.rNibDataService.UpdateNodebInfo(nodebInfo) if updateError != nil { @@ -151,7 +149,6 @@ func (h *SetupRequestHandler) connectExistingRanWithAssociatedE2TAddress(nodebIn if nodebInfo.ConnectionStatus == entities.ConnectionStatus_CONNECTED { status = nodebInfo.ConnectionStatus } - nodebInfo.ConnectionAttempts = 0 err := h.rNibDataService.UpdateNodebInfo(nodebInfo) if err != nil {