{% extends 'base/layout.html' %} {% load i18n %} {% load helpers %} {% block title %}Matching Rules — {{ object }}{% endblock %} {% block content %}

Matching Rules — {{ object }}

Back
{# Virtual combined label #}
Virtual Label (sorted)
{% for lbl in labels %} {{ lbl.name }} {% empty %} No labels assigned. {% endfor %} ({{ labels|length }} label{{ labels|length|pluralize }})
{# Source matching rules #}
Source Matching Rules {{ src_rules|length }} Rules where all device labels appear in Source
{% if src_rules %}
{% for rule in src_rules %} {% endfor %}
Rule Rulebook Source Labels Source Zones Destination Labels Destination Zones Action
{{ rule.name }} {% if rule.rulebook %} {{ rule.rulebook.name }} {% else %}—{% endif %} {% for obj in rule.custom_srcdst_objects.all %} {{ obj.name }} {% empty %}—{% endfor %} {% for z in rule.source_zones.all %} {{ z.name }} {% empty %}—{% endfor %} {% for obj in rule.destination_custom_objects.all %} {{ obj.name }} {% empty %}—{% endfor %} {% for z in rule.destination_zones.all %} {{ z.name }} {% empty %}—{% endfor %} {% for act in rule.custom_action_objects.all %} {{ act.name }} {% empty %}—{% endfor %}
{% else %}
No rules match all labels in Source.
{% endif %}
{# Destination matching rules #}
Destination Matching Rules {{ dst_rules|length }} Rules where all device labels appear in Destination
{% if dst_rules %}
{% for rule in dst_rules %} {% endfor %}
Rule Rulebook Source Labels Source Zones Destination Labels Destination Zones Action
{{ rule.name }} {% if rule.rulebook %} {{ rule.rulebook.name }} {% else %}—{% endif %} {% for obj in rule.custom_srcdst_objects.all %} {{ obj.name }} {% empty %}—{% endfor %} {% for z in rule.source_zones.all %} {{ z.name }} {% empty %}—{% endfor %} {% for obj in rule.destination_custom_objects.all %} {{ obj.name }} {% empty %}—{% endfor %} {% for z in rule.destination_zones.all %} {{ z.name }} {% empty %}—{% endfor %} {% for act in rule.custom_action_objects.all %} {{ act.name }} {% empty %}—{% endfor %}
{% else %}
No rules match all labels in Destination.
{% endif %}
{% endblock %}