Code Review
/
ric-plt
/
e2mgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[RICPLT-2523] Improvements...
[ric-plt/e2mgr.git]
/
E2Manager
/
handlers
/
httpmsghandlers
/
setup_request_handler.go
diff --git
a/E2Manager/handlers/httpmsghandlers/setup_request_handler.go
b/E2Manager/handlers/httpmsghandlers/setup_request_handler.go
index
981e9c6
..
e64347d
100644
(file)
--- a/
E2Manager/handlers/httpmsghandlers/setup_request_handler.go
+++ b/
E2Manager/handlers/httpmsghandlers/setup_request_handler.go
@@
-114,13
+114,12
@@
func (h *SetupRequestHandler) connectExistingRanWithoutAssociatedE2TAddress(node
if err != nil {
h.logger.Errorf("#SetupRequestHandler.connectExistingRanWithoutAssociatedE2TAddress - RAN name: %s - failed selecting E2T instance", nodebInfo.RanName)
if err != nil {
h.logger.Errorf("#SetupRequestHandler.connectExistingRanWithoutAssociatedE2TAddress - RAN name: %s - failed selecting E2T instance", nodebInfo.RanName)
- // TODO: reset connection attempts?
-
- if nodebInfo.ConnectionStatus == entities.ConnectionStatus_DISCONNECTED {
+ if nodebInfo.ConnectionStatus == entities.ConnectionStatus_DISCONNECTED && nodebInfo.ConnectionAttempts == 0 {
return err
}
nodebInfo.ConnectionStatus = entities.ConnectionStatus_DISCONNECTED
return err
}
nodebInfo.ConnectionStatus = entities.ConnectionStatus_DISCONNECTED
+ nodebInfo.ConnectionAttempts = 0
updateError := h.rNibDataService.UpdateNodebInfo(nodebInfo)
if updateError != nil {
updateError := h.rNibDataService.UpdateNodebInfo(nodebInfo)
if updateError != nil {