From 930db799fe886da7b2c80f89ed3f67c0433c4ed7 Mon Sep 17 00:00:00 2001 From: wahidw Date: Sat, 30 Oct 2021 16:16:01 +0000 Subject: [PATCH 1/1] Resetting E2Term connection flag after connection succes Signed-off-by: wahidw Change-Id: Ifa7bbc08f42e46171fb04c66f75a31a21de05742 --- pkg/nbi/httprestful.go | 1 + 1 file changed, 1 insertion(+) 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 } } -- 2.16.6