{% load i18n %} {% include "netbox_nsm/inc/nsm_ip_analyzer_applet_assets.html" %} {% if nsm_security_tab_mode %}
{% else %}
{{ nsm_panel_label }}{% if nsm_security_badge %} {{ nsm_security_badge }}{% endif %} {% if nsm_page_addr_analyzable %} {% endif %} {% trans "Assign" %}
{% endif %} {% if not nsm_link_table and not nsm_enforcement_point and not nsm_interface_analysis %}
{% trans "None" %}
{% endif %} {# ── Linked objects (object-type tabs + value sub-grouping + pagination) ─ #} {% include "netbox_nsm/inc/security_link_objects.html" %} {# ── Enforcement point: host / interface rulebook context ───────────── #} {% if nsm_enforcement_point %}
{% trans "Rulebooks" %} {{ nsm_enforcement_point.count }} {% if nsm_enforcement_point.add_url %} {% endif %}
{% for row in nsm_enforcement_point.rulebooks %} {% if row.delete_url %} {% endif %} {% endfor %}
{% endif %} {# ── Per-interface analysis (Device / VM only) ─────────────────────── #} {% if nsm_interface_analysis %}
{% for iface in nsm_interface_analysis %}
{% if iface.parent_url %} {{ iface.parent_name }} {% endif %} {% if iface.url %} {{ iface.name }} {% else %} {{ iface.name }} {% endif %} {{ iface.entry_count }}
{% if iface.link_rows %}
{% for link in iface.link_rows %} {{ link.type_label }}: {% if link.url %} {{ link.name|safe }} {% else %} {{ link.name|safe }} {% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% endif %}