Router ID must be set in every RouteCalculationService of the router model. That includes OSPF and BGP among others.