{% load i18n %} {% include "netbox_nsm/inc/nsm_ip_analyzer_applet_assets.html" %}
{{ nsm_panel_label }}{% if nsm_security_badge %} {{ nsm_security_badge }}{% endif %} {% if nsm_page_addr_analyzable %} {% endif %} {% trans "Assign" %}
{% if not nsm_rulebook_groups and not nsm_link_type_groups %}
{% trans "None" %}
{% endif %} {# ── Rulebook section ──────────────────────────────────────────────── #} {% if nsm_rulebook_groups %}
{% for group in nsm_rulebook_groups %} {% with rb=group.rulebook %}
{% for fg in group.field_groups %}
{% if fg.filter_url %} {{ fg.field.name }} {% else %}
{{ fg.field.name }}
{% endif %} {% for rule in fg.rules %} {% endfor %}
{{ rule.name }}
{% endfor %}
{% endwith %} {% endfor %} {# sentinel for infinite scroll #}
{% endif %} {# ── ObjectLink type groups ──────────────────────────────────────── #} {% for group in nsm_link_type_groups %}
15 %}style="max-height:420px;overflow-y:auto;"{% endif %}> {% for linked in group.objects %} {% if group.show_comment %}{% endif %} {% if group.show_actions %}{% endif %} {% endfor %}
{% endfor %} {# ── Enforced Rulebooks (Device / VM / VDC only) ───────────────────── #} {% if nsm_enforcer_assignments %}
{% for assignment in nsm_enforcer_assignments %} {% endfor %}
{{ assignment.rulebook.name }} {{ assignment.rulebook.get_rulebook_type_display }}
{% endif %}