VintageNet.Interface.Classification.compute_metric

You're seeing just the function compute_metric, go back to VintageNet.Interface.Classification module for more information.
Link to this function

compute_metric(type, status, weight, prioritization)

View Source

Specs

compute_metric(interface_type(), connection_status(), weight(), [
  prioritization()
]) :: pos_integer() | :disabled

Compute the routing metric for an interface with a status

This uses the prioritization list to figure out what number should be used for the Linux routing table metric. It could also be :disabled to indicate that a route shouldn't be added to the Linux routing tables at all.