{% extends 'base/layout.html' %} {% load helpers %} {% block title %}{{ record.device }} - Compliance{% endblock %} {% block content %} {% include 'config_officer/navi_panel.html' %}

{{ record.device }} - compliance status

Back to device
{# -- Summary card ----------------------------------------------------------- #}
Service compliance status
Device {{ record.device }}
Status {% if record.status == 'compliance' %} {{ record.status }} {% else %} {{ record.status }} {% endif %}
Notes {{ record.notes|default:"—" }}
Attached services {% for service in record.get_services %} {{ service.name }}
{% empty %} None {% endfor %}
Matched templates {% for template in record.get_device_templates %} {{ template.name }}
{% empty %} None {% endfor %}
{# -- Config diff card ------------------------------------------------------- #}
Configuration compliance
Generated config (from templates)
{{ record.get_generated_config|default:"—" }}
Diff (missing lines)
{{ record.diff|default:"—" }}
{# -- All matched templates --------------------------------------------------- #}
All matched templates
{% for template in record.get_device_templates %} {% empty %} {% endfor %}
Template Template text
{{ template }}
{{ template.configuration }}
No matched templates
{# -- Running config (collapsible) ------------------------------------------- #}
updated: {{ config_update_date }}
{{ record.device }} running configuration
{{ device_config|default:"Config file not found." }}
{% endblock %}