X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=cmd%2Frtmgr.go;h=c8ad5c65e330a55889ec152044c337ba78913a88;hb=0770de6e47404e68fc9cbb59263648ac54864aef;hp=af0aba192604501548734f720cfc70026f14b810;hpb=bce67475ab8f92b42841dba561fff27b7d239820;p=ric-plt%2Frtmgr.git diff --git a/cmd/rtmgr.go b/cmd/rtmgr.go index af0aba1..c8ad5c6 100644 --- a/cmd/rtmgr.go +++ b/cmd/rtmgr.go @@ -67,18 +67,19 @@ func main() { rtmgr.Eps = make(rtmgr.Endpoints) rtmgr.Mtype = make(rtmgr.MessageTypeList) rtmgr.Rtmgr_ready = false + rtmgr.RMRConnStatus = make(map[string]bool) -// RMR thread is starting port: 4560 + // RMR thread is starting port: 4560 c := nbi.NewControl() go c.Run() -// Waiting for RMR to be ready + // Waiting for RMR to be ready time.Sleep(time.Duration(2) * time.Second) for xapp.Rmr.IsReady() == false { - time.Sleep(time.Duration(2) * time.Second) + time.Sleep(time.Duration(2) * time.Second) } - dummy_whid := int(xapp.Rmr.Openwh("localhost:4560")) + dummy_whid := int(xapp.Rmr.Openwh("rtmgr:4560")) xapp.Logger.Info("created dummy Wormhole ID for routingmanager and dummy_whid :%d", dummy_whid) nbi.Serve()