{% load thresholds %} {% with port.get_port_metrics|find_rules|dictsort:"suffix" as metrics %} {% if metrics|length %} {% for metric in metrics %} {% endfor %}
Counters
  Metric Threshold
Graph {{ metric.suffix }} {% if metric.thresholds %} {% for rule in metric.thresholds %} {{ rule.alert }}{% if not forloop.last %},{% endif %} {% endfor %} {% else %} {% endif %}
{% else %}

No metrics for this interface

{% endif %} {% endwith %}