Code Review
/
ric-plt
/
rtmgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
go version updated from 1.12.1 to 1.13
[ric-plt/rtmgr.git]
/
cmd
/
rtmgr.go
diff --git
a/cmd/rtmgr.go
b/cmd/rtmgr.go
index
af0aba1
..
2d3d81e
100644
(file)
--- a/
cmd/rtmgr.go
+++ b/
cmd/rtmgr.go
@@
-49,6
+49,14
@@
import (
const SERVICENAME = "rtmgr"
const SERVICENAME = "rtmgr"
+/*type RMRUpdateType int
+
+const (
+ XappType = iota
+ SubsType
+ E2Type
+)*/
+
func SetupCloseHandler() {
c := make(chan os.Signal, 2)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
func SetupCloseHandler() {
c := make(chan os.Signal, 2)
signal.Notify(c, os.Interrupt, syscall.SIGTERM)
@@
-67,18
+75,19
@@
func main() {
rtmgr.Eps = make(rtmgr.Endpoints)
rtmgr.Mtype = make(rtmgr.MessageTypeList)
rtmgr.Rtmgr_ready = false
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()
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)
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()
xapp.Logger.Info("created dummy Wormhole ID for routingmanager and dummy_whid :%d", dummy_whid)
nbi.Serve()