parameters: (
      caption: str,
      unicast_routes: Union[
          Sequence[network_types_py3.UnicastRoute], List[network_types.UnicastRoute]
      ],
      prefixes: Optional[List[str]] = None,
      element_prefix: str = ">",
      element_suffix: str = "",
      filter_exact_match: bool = False,
      timestamp: bool = False,
  )
docstring: Print unicast routes. Subset specified by prefixes will be printed if specified
          :param caption: Title of the table (a string).
          :param unicast_routes: Unicast routes
          :param prefixes: Optional prefixes/filter to print.
          :param element_prefix: Starting prefix for each item. (string)
          :param element_suffix: Ending/terminator for each item. (string)
          :param filter_exact_match: Indicate exact match or subnet match.
          :param timestamp: Prints time for each item. (bool)
docstring_summary: Print unicast routes. Subset specified by prefixes will be printed if specified
          :param caption: Title of the table (a string).
          :param unicast_routes: Unicast routes
          :param prefixes: Optional prefixes/filter to print.
          :param element_prefix: Starting prefix for each item. (string)
          :param element_suffix: Ending/terminator for each item. (string)
          :param filter_exact_match: Indicate exact match or subnet match.
          :param timestamp: Prints time for each item. (bool)
docstring_tokens: Print unicast routes . Subset specified by prefixes will be printed if specified : param caption : Title of the table ( a string ) . : param unicast_routes : Unicast routes : param prefixes : Optional prefixes / filter to print . : param element_prefix : Starting prefix for each item . ( string ) : param element_suffix : Ending / terminator for each item . ( string ) : param filter_exact_match : Indicate exact match or subnet match . : param timestamp : Prints time for each item . ( bool )
function: def print_unicast_routes(
      caption: str,
      unicast_routes: Union[
          Sequence[network_types_py3.UnicastRoute], List[network_types.UnicastRoute]
      ],
      prefixes: Optional[List[str]] = None,
      element_prefix: str = ">",
      element_suffix: str = "",
      filter_exact_match: bool = False,
      timestamp: bool = False,
  ) -> None:
      """
      Print unicast routes. Subset specified by prefixes will be printed if specified
          :param caption: Title of the table (a string).
          :param unicast_routes: Unicast routes
          :param prefixes: Optional prefixes/filter to print.
          :param element_prefix: Starting prefix for each item. (string)
          :param element_suffix: Ending/terminator for each item. (string)
          :param filter_exact_match: Indicate exact match or subnet match.
          :param timestamp: Prints time for each item. (bool)
      """
  
      networks = None
      if prefixes:
          networks = [ipaddress.ip_network(p) for p in prefixes]
  
      route_strs = []
      for route in unicast_routes:
          entry = build_unicast_route(route, filter_for_networks=networks)
          if entry:
              dest, nexthops = entry
              paths_str = "\n".join(["  via {}".format(nh) for nh in nexthops])
              route_strs.append([dest, paths_str])
  
      print(
          printing.render_vertical_table(
              route_strs,
              caption=caption,
              element_prefix=element_prefix,
              element_suffix=element_suffix,
              timestamp=timestamp,
          )
      )
function_tokens: def print_unicast_routes ( caption : str , unicast_routes : Union [ Sequence [ network_types_py3 . UnicastRoute ] , List [ network_types . UnicastRoute ] ] , prefixes : Optional [ List [ str ] ] = None , element_prefix : str = ">" , element_suffix : str = "" , filter_exact_match : bool = False , timestamp : bool = False , ) -> None : networks = None if prefixes : networks = [ ipaddress . ip_network ( p ) for p in prefixes ] route_strs = [ ] for route in unicast_routes : entry = build_unicast_route ( route , filter_for_networks = networks ) if entry : dest , nexthops = entry paths_str = "\n" . join ( [ "  via {}" . format ( nh ) for nh in nexthops ] ) route_strs . append ( [ dest , paths_str ] ) print ( printing . render_vertical_table ( route_strs , caption = caption , element_prefix = element_prefix , element_suffix = element_suffix , timestamp = timestamp , ) )