X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fnbi%2Fcontrol.go;h=e31379d1373ec1a59ad560d0f685ec79996ace6a;hb=6a9ce4976c1fbbcb8d4a068f81e76515c99a9d3f;hp=885230fb47a55a4227df55a9d5e189e945f27d56;hpb=82c726627010dca2467989ec36cac6626ae9943a;p=ric-plt%2Frtmgr.git diff --git a/pkg/nbi/control.go b/pkg/nbi/control.go index 885230f..e31379d 100644 --- a/pkg/nbi/control.go +++ b/pkg/nbi/control.go @@ -144,14 +144,14 @@ func (c *Control) handleUpdateToRoutingManagerRequest(params *xapp.RMRParams) { return } - ep := sbiEngine.CreateEndpoint(string(params.Payload)) - if ep == nil { + ep,whid := sbiEngine.CreateEndpoint(string(params.Payload),msg.String()) + if ep == nil || whid < 0 { xapp.Logger.Error("Update Routing Table Request can't handle due to end point %s is not avail in complete ep list: ", string(params.Payload)) return } policies := rpeEngine.GeneratePolicies(rtmgr.Eps, data) - err = sbiEngine.DistributeToEp(policies, ep) + err = sbiEngine.DistributeToEp(policies, *ep, whid) if err != nil { xapp.Logger.Error("Routing table cannot be published due to: " + err.Error()) return