openoptics.utils.tor_table_routing_source#
- openoptics.utils.tor_table_routing_source(entry: TimeFlowEntry, nb_time_slices=None) List[TableEntry][source]#
Generate table entries for source routing.
- Parameters:
entry – TimeFlowEntry object containing routing information
nb_time_slices – Number of time slices. Required when arrival_ts is None (wildcard), to generate one entry per time slice.
- Returns:
List of TableEntry objects. action_params[“hops”] is a list of (cur_node, send_ts, send_port) tuples.