{% extends 'generic/object.html' %} {% load helpers %} {% block title %}Import Preview - {{ pattern }}{% endblock %} {% block header %}

Import Preview: {{ pattern }}

{% endblock %} {% block content %}
{% if error %}
{{ error }}
Back to Search {% elif mode == "ip" %} {# Single IP Address Lookup #}
IP Address Lookup: {{ ip_address }}
{% if existing_ip %}
This IP address already exists in NetBox. View IP
{% endif %}
IP Address {{ ip_address }}
Object Name {{ qip_data.objectName|default:"-" }}
Domain {{ qip_data.domainName|default:"-" }}
DNS Name {% if dns_name %} {{ dns_name }} {% else %} - {% endif %}
Object Class {{ qip_data.objectClass|default:"-" }}
Config Type {% if qip_data.dynamicConfig == "Static" %} Static {% elif qip_data.dynamicConfig == "DHCP" %} DHCP {% elif qip_data.dynamicConfig %} {{ qip_data.dynamicConfig }} {% else %} - {% endif %}
Subnet {{ qip_data.subnetAddr|default:"-" }}
{% if can_import %}
{% csrf_token %} Back
{% else %} Back to Search {% endif %}
{% else %} {# Prefix/Network Search Results #} {% if total_count == 0 %}
No networks found in VitalQIP matching {{ pattern }}
Back to Search {% else %}
Summary for {{ pattern }}
{{ total_count }}
Total in QIP
{{ new_count }}
New (Not in NetBox)
{{ existing_count }}
Already in NetBox
{% if new_count > 0 %}
New Prefixes ({{ new_count }})
{% csrf_token %}
{% for network in new_networks %} {% endfor %}
Prefix Name (Description) Status
{{ network.prefix_str }} {{ network.name|default:"-" }} {% if "DISCONNECTED" in network.name|upper %} Disconnected {% else %} Active {% endif %}
Back
{% endif %} {% if existing_count > 0 %}
Already in NetBox ({{ existing_count }})
{% for network in existing_networks %} {% endfor %}
Prefix Name in QIP Status
{{ network.prefix_str }} Exists {{ network.name|default:"-" }} {% if "DISCONNECTED" in network.name|upper %} Disconnected {% else %} Active {% endif %}
{% endif %} {% endif %} {% endif %}
{% if mode == "ip" and can_import %} {% elif new_count > 0 %} {% endif %} {% endblock %}