{% load i18n %} {% comment %} IPA cell row: CIDR + [ADDRESS name] + [ADDRESS_GROUP …] with links. link_mode: "anchor_stop" | "obj" | "span" ADDRESS pill is orange only when ``cell_addresses_multi`` (≥2 object names). {% 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 %} ADDRESS {% if 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 %} {% 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 %} {% else %} {{ node.name }}{% if node.status %}{% include "netbox_nsm/inc/ipa_nsm_object_status_icon.html" with status=node.status %}{% endif %} {% 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" %} {% endif %}