Reverting the code after releasing the image
[ric-plt/rtmgr.git] / pkg / rpe / rpe.go
index 1c006b4..d26a704 100644 (file)
@@ -137,7 +137,10 @@ func (r *Rpe) addRoute_rx_list(messageType string, tx *rtmgr.Endpoint, rx []rtmg
        }
 
        if rx != nil {
-               rxList = []rtmgr.EndpointList{rx}
+               for _, item := range rx {
+                       ep := []rtmgr.Endpoint{item}
+                       rxList = append(rxList, ep)
+               }
        }
 
        messageId := strconv.Itoa(xapp.RICMessageTypes[messageType])
@@ -241,6 +244,8 @@ func (r *Rpe) generatePlatformRoutes(e2TermEp []rtmgr.Endpoint, subManEp *rtmgr.
        if len(e2TermEp) > 0 {
                r.addRoute_rx_list("RIC_SCTP_CLEAR_ALL", e2ManEp, e2TermEp, routeTable, -1, "")
                r.addRoute_rx_list("E2_TERM_KEEP_ALIVE_REQ", e2ManEp, e2TermEp, routeTable, -1, "")
+               r.addRoute_rx_list("RIC_E2_SETUP_RESP", e2ManEp, e2TermEp, routeTable, -1, "")
+               r.addRoute_rx_list("RIC_E2_SETUP_FAILURE", e2ManEp, e2TermEp, routeTable, -1, "")
        }
 }