{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# "NSO — applied to devices" panel for netbox-routing route-policy objects. #} {% load helpers %} {% if nso_states %}
NSO — Applied to Devices
{% if propagation_devices %} {% endif %} {% for state in nso_states %} {% endfor %}
Device Status Capability Last apply
{{ state.management.device }} {% if state.status == "in_sync" or state.status == "imported" %} {{ state.get_status_display }} {% elif state.status == "changed" %} {{ state.get_status_display }} {% elif state.status == "conflict" %} {{ state.get_status_display }} {% elif state.status == "apply_failed" or state.status == "error" %} {{ state.get_status_display }} {% if state.last_apply_error %} {{ state.last_apply_error }} {% endif %} {% elif state.status == "deploying" %} {{ state.get_status_display }} {% else %} {{ state.get_status_display }} {% endif %} {% if state.capability.state == "supported" %} Fully supported {% elif state.capability.state == "partial" %} {{ state.capability.unsupported|length }} part{{ state.capability.unsupported|length|pluralize }} won't apply {% elif state.capability.state == "unassessed" %} Not assessed {% else %} Unknown {% endif %} {{ state.last_apply_at|placeholder }} Diff
{% endif %}