{% load i18n %} {% comment %} IPA cell row: CIDR + [ADDRESS name] + [ADDRESS_GROUP …] with links. link_mode: "anchor_stop" | "obj" | "span" Alias/dup peers render as compact secondary hints when ``cell_addresses_compact``. {% endcomment %} {% if node.prefix_display_cidr %} {% if node.ip_ref and node.ip_ref.url %} {{ node.prefix_display_cidr }} {% else %} {{ node.prefix_display_cidr }} {% endif %} {% elif node.ip_ref %} {% if node.ip_ref.str %} {% if node.ip_ref.url %} {{ node.ip_ref.str }} {% else %} {{ node.ip_ref.str }} {% endif %} {% endif %} {% endif %} {% if node.cell_pill_group %}ADDRESS_GROUP{% else %}ADDRESS{% endif %} {% if node.cell_addresses_compact and node.cell_address_primary %} {% if link_mode == "span" %} {{ node.cell_address_primary.name }} {% elif link_mode == "anchor_stop" %} {{ node.cell_address_primary.name }} {% else %} {{ node.cell_address_primary.name }} {% endif %} {% if node.cell_address_primary.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=node.cell_address_primary.status %}{% endif %} {% include "netbox_nsm/inc/ipa_cell_secondary_hints.html" %} {% elif node.cell_addresses_multi %} {% for addr in node.cell_addresses %} {% if link_mode == "span" %} {{ addr.name }} {% elif link_mode == "anchor_stop" %} {{ addr.name }} {% else %} {{ addr.name }} {% endif %} {% if addr.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=addr.status %}{% endif %} {% endfor %} {% elif link_mode == "span" %} {{ node.name }}{% if node.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=node.status %}{% endif %}{% include "netbox_nsm/inc/ipa_cell_secondary_hints.html" %} {% elif link_mode == "anchor_stop" %} {{ node.name }}{% if node.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=node.status %}{% endif %}{% include "netbox_nsm/inc/ipa_cell_secondary_hints.html" %} {% else %} {{ node.name }}{% if node.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=node.status %}{% endif %}{% include "netbox_nsm/inc/ipa_cell_secondary_hints.html" %} {% endif %} {% include "netbox_nsm/inc/ipa_cell_object_group_labels.html" %} {% if node.subnet_contained_in %} {% include "netbox_nsm/inc/ipa_subnet_containment_meta.html" with cidr=node.subnet_contained_in name=node.subnet_contained_in_name|default:"" url=node.subnet_contained_in_url|default:"" %} {% endif %}