{% extends 'generic/object.html' %} {% load i18n %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% block content %}
{% trans "Custom Prefix" %}
{% if object.description %} {% endif %} {% if object.tenant %} {% endif %}
{% trans "Prefix" %} {{ object.prefix }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Tenant" %} {% if object.tenant.group %} {{ object.tenant.group|linkify }} / {% endif %} {{ object.tenant|linkify|placeholder }}
{% if address_assignments_table.rows|length == 1 %}

{% trans "Address Assignment" %}

{% else %}

{% trans "Address Assignments" %}

{% endif %}
{% render_table address_assignments_table 'inc/table.html' %}

{% trans "Security Policy Context" %}

{% if policy_context.policy_paths %} {% for row in policy_context.policy_paths %} {% endfor %}
{% trans "Address/Set" %} {% trans "Security Policy" %} {% trans "Policy Index" %} {% trans "Policy Actions" %} {% trans "Direction" %} {% trans "Security Zones" %}
{% if row.context_object %} {{ row.context_object|linkify }} {% elif row.address_list %} {{ row.address_list|linkify }} {% else %} - {% endif %} {{ row.policy|linkify }} {{ row.policy_index }} {% for action in row.policy_actions %} {{ action }} {% endfor %} {{ row.direction }} {{ row.source_zone|linkify }} → {{ row.destination_zone|linkify }}
{% elif policy_context.address_set_hierarchy_rows %} {% trans "No policy context found yet; showing Address Set hierarchy." %} {% elif policy_context.address_objects or policy_context.inherited_address_objects %} {% trans "No policy context found yet; showing Addresses." %} {% else %} {% trans "No policy context found for this object." %} {% endif %} {% if policy_context.inherited_address_objects %}

{% trans "Inherited Addresses (from parent prefixes)" %}

    {% for address in policy_context.inherited_address_objects %}
  • {{ address|linkify }}
  • {% endfor %}
{% endif %} {% if policy_context.address_set_hierarchy_rows %}

{% trans "Address Set Hierarchy" %}

    {% for row in policy_context.address_set_hierarchy_rows %}
  • {% for address_set in row.path %} {% if not forloop.first %} → {% endif %} {{ address_set|linkify }} {% endfor %} {% if row.address %} {% if row.path %} → {% endif %}[{{ row.address|linkify }}] {% endif %}
  • {% endfor %}
{% elif policy_context.address_objects %}

{% trans "Direct Addresses" %}

    {% for address in policy_context.address_objects %}
  • {{ address|linkify }}
  • {% endfor %}
{% endif %}
{% include 'inc/panels/custom_fields.html' %} {% plugin_left_page object %}
{% include 'inc/panels/comments.html' %} {% include 'inc/panels/tags.html' %} {% plugin_right_page object %}
{% plugin_full_width_page object %}
{% endblock %}