Resetting E2Term connection flag after connection succes 71/6971/1
authorwahidw <abdulwahid.w@nokia.com>
Sat, 30 Oct 2021 16:16:01 +0000 (16:16 +0000)
committerwahidw <abdulwahid.w@nokia.com>
Sat, 30 Oct 2021 16:16:01 +0000 (16:16 +0000)
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
Change-Id: Ifa7bbc08f42e46171fb04c66f75a31a21de05742

pkg/nbi/httprestful.go

index ebbf050..8222e72 100644 (file)
@@ -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
                }
        }