Removed Book Keeping of RMR CTL ports. Route Distribution only on demand
Change-Id: If017b52f9bd26d2bf7b13c32eb35b047595dd0ca
Signed-off-by: wahidw <abdulwahid.w@nokia.com>
diff --git a/pkg/sbi/sbi.go b/pkg/sbi/sbi.go
index c576c34..21ff78e 100644
--- a/pkg/sbi/sbi.go
+++ b/pkg/sbi/sbi.go
@@ -176,7 +176,7 @@
}
}
-func (s *Sbi) createEndpoint(payload string,rmrsrc string, sbi Engine) *rtmgr.Endpoint {
+func (s *Sbi) createEndpoint(payload string,rmrsrc string, sbi Engine) (*string,int) {
xapp.Logger.Debug("CreateEndPoint %v", payload)
// stringSlice := strings.Split(payload, " ")
// uuid := stringSlice[0]
@@ -206,9 +206,10 @@
xapp.Logger.Info("Wormhole Id created is %d for EndPoint %s",Whid,srcStringSlice[1])
if Whid > 0 {
- rtmgr.RmrEp[srcStringSlice[1]] = Whid
+// rtmgr.RmrEp[srcStringSlice[1]] = Whid
xapp.Logger.Info("received %s and mapped to Whid = %d",srcStringSlice[1],Whid)
+ return &srcStringSlice[1],Whid
}
- return nil
+ return nil,Whid
}