+### v0.4.7
+* Check DNS lookup for E2T address, RED Button and KEEP alive message routes added for new E2T Address
+
### v0.4.6
* Static platform routes can be configured via configuration file
# By default this file is in the docker build directory,
# but the location can configured in the JJB template.
---
-tag: 0.4.6
+tag: 0.4.7
"github.com/go-openapi/loads"
"github.com/go-openapi/runtime/middleware"
"net/url"
+ "net"
"os"
"routing-manager/pkg/models"
"routing-manager/pkg/restapi"
return fmt.Errorf("E2T E2TAddress is not a proper format like ip:port, %v", e2taddress_key )
}
+ _, err := net.LookupIP(stringSlice[0])
+ if err != nil {
+ return fmt.Errorf("E2T E2TAddress DNS look up failed, E2TAddress: %v", stringSlice[0])
+ }
+
if checkValidaE2TAddress(e2taddress_key) {
return fmt.Errorf("E2TAddress already exist!!!, E2TAddress: %v",e2taddress_key)
}
case "A1MEDIATOR":
Ep = a1mediatorEp
}
- if routes.EndPoint == "E2TERMINST" && len(e2TermEp) > 0 {
- r.addRoute_rx_list(routes.MessageType, sendEp, e2TermEp, routeTable, routes.SubscriptionId, routes.Meid)
- continue
- }
+
r.addRoute(routes.MessageType, sendEp, Ep, routeTable, routes.SubscriptionId, routes.Meid)
}
+
+ 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, "")
+ }
}
func (r *Rpe) generateRouteTable(endPointList rtmgr.Endpoints) *rtmgr.RouteTable {