traffic_matrix#

eclypse.policies.workload.traffic_matrix(matrix, *, asset='traffic', additive=False)[source]#

Apply edge traffic values from a source-target matrix.

Parameters:
  • matrix (dict[tuple[str, str], float]) – Mapping from (source, target) edge id to traffic value.

  • asset (str) – Edge asset written by the policy.

  • additive (bool) – Whether to add to existing traffic instead of replacing it.

Returns:

Policy that writes traffic values onto matching edges.

Return type:

UpdatePolicy