parameters: (
      route_db: openr_types.RouteDatabase,
  )
return_statement: return (unicast_routes, mpls_routes)
docstring: Find all routes for each prefix in routeDb
  
      :param route_db: RouteDatabase
      :return (
          list of UnicastRoute of prefix & corresponding shortest nexthops
          list of MplsRoute of prefix & corresponding shortest nexthops
      )
docstring_summary: Find all routes for each prefix in routeDb
docstring_tokens: Find all routes for each prefix in routeDb
function: def get_routes(
      route_db: openr_types.RouteDatabase,
  ) -> Tuple[List[network_types.UnicastRoute], List[network_types.MplsRoute]]:
      """
      Find all routes for each prefix in routeDb
  
      :param route_db: RouteDatabase
      :return (
          list of UnicastRoute of prefix & corresponding shortest nexthops
          list of MplsRoute of prefix & corresponding shortest nexthops
      )
      """
  
      unicast_routes, mpls_routes = None, None
      unicast_routes = sorted(
          route_db.unicastRoutes, key=lambda x: x.dest.prefixAddress.addr
      )
      mpls_routes = sorted(route_db.mplsRoutes, key=lambda x: x.topLabel)
  
      return (unicast_routes, mpls_routes)
function_tokens: def get_routes ( route_db : openr_types . RouteDatabase , ) -> Tuple [ List [ network_types . UnicastRoute ] , List [ network_types . MplsRoute ] ] : unicast_routes , mpls_routes = None , None unicast_routes = sorted ( route_db . unicastRoutes , key = lambda x : x . dest . prefixAddress . addr ) mpls_routes = sorted ( route_db . mplsRoutes , key = lambda x : x . topLabel ) return ( unicast_routes , mpls_routes )