From: wahidw Date: Sat, 30 Oct 2021 16:16:01 +0000 (+0000) Subject: Resetting E2Term connection flag after connection succes X-Git-Tag: 0.8.2~5 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=930db799fe886da7b2c80f89ed3f67c0433c4ed7;p=ric-plt%2Frtmgr.git Resetting E2Term connection flag after connection succes Signed-off-by: wahidw Change-Id: Ifa7bbc08f42e46171fb04c66f75a31a21de05742 --- diff --git a/pkg/nbi/httprestful.go b/pkg/nbi/httprestful.go index ebbf050..8222e72 100644 --- a/pkg/nbi/httprestful.go +++ b/pkg/nbi/httprestful.go @@ -316,6 +316,7 @@ func CreateNewE2tHandleHandlerImpl(data *models.E2tData) error { time.Sleep(10 * time.Second) for ep, value := range rtmgr.RMRConnStatus { if ep == *data.E2TAddress && value == true { + rtmgr.RMRConnStatus[ep] = false //Reset to false incase of E2t restart scenario return nil } }