{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {# NSO compliance badge for Interface detail page. #} {% load helpers %} {% with device=object.device %} {% if device.nso_management %}
NSO-managed
{# G-activated banner — unconditional; edits become intent in Phase 2 #}
Local edits to description / enabled become intent and will be pushed to the device on the next apply.
{% if derived_intent_match %}
Description managed by derived intent auto: {{ derived_intent_match.sentinel }}
{% endif %} {% if nso_states %}
{% for attr, state in nso_states.items %} {% endfor %}
{{ attr }} {% include "netbox_nso_plugin/categories/_state_badge.html" with state=state status=state.status %} {% if state.status == "imported" or state.status == "changed" %}
{% csrf_token %}
{% endif %}
{% endif %}
{% endif %} {% endwith %}