{% extends 'generic/object.html' %} {% load helpers %} {% block title %}Catalyst Center Config Diff{% endblock %} {% block header %}

Catalyst Center Config Diff

{% endblock %} {% block content %}
Compare Device Configurations
{% if error %} {% endif %} {% if device_a and device_b %}
{{ device_a_name }} vs {{ device_b_name }}
{% if catalyst_url %} {{ device_a_name }} {{ device_b_name }} {% endif %}
{% if diff_html %} {# Unified diff view #}
{% for line in diff_html.splitlines %}{% if line|slice:":3" == "---" %}{{ line }}
{% elif line|slice:":3" == "+++" %}{{ line }}
{% elif line|slice:":2" == "@@" %}{{ line }}
{% elif line|slice:":1" == "-" %}{{ line }}
{% elif line|slice:":1" == "+" %}{{ line }}
{% else %}{{ line }}
{% endif %}{% endfor %}
{# Side-by-side view (hidden by default) #} {% elif config_a and config_b %}

Configurations are identical

{% else %}

Could not load configurations for comparison

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