{% extends 'base/layout.html' %} {% load helpers %} {% block title %}Oxidized Config Search{% endblock %} {% block header %}

Oxidized Config Search

{% endblock header %} {% block content %}
Search Device Configurations
{% if query %} Clear {% endif %}
{% if error %} {% endif %} {% if query %}
Results for "{{ query }}"
{{ result_count }} device{{ result_count|pluralize }}
{% if results %}
{% for result in results %} {% endfor %}
Device Model Status Matches
{% if result.device_url %} {{ result.name }} {% else %} {{ result.name }} {% endif %} {{ result.model|default:"-" }} {% if result.status == "success" %} {{ result.status }} {% elif result.status == "no_connection" or result.status == "timeout" %} {{ result.status }} {% else %} {{ result.status|default:"unknown" }} {% endif %} {{ result.match_count }} match{{ result.match_count|pluralize:"es" }} {% if external_url %} {% endif %}
{% for line in result.matching_lines %}{{ line.number|stringformat:"4d" }} {{ line.text }}
{% endfor %}{% if result.match_count > 10 %}... and {{ result.match_count|add:"-10" }} more matches{% endif %}
{% else %}

No devices found matching "{{ query }}"

{% endif %}
{% endif %} {% endblock %}