{% extends 'base/layout.html' %} {% load helpers %} {% block title %}Sync NetScaler VIPs{% endblock %} {% block content %}
{% include 'netbox_netscaler/_pairs.html' %}

Compares live NetScaler VIPs with NetBox IPAM. Nothing changes until you tick rows and click Apply selected. NetScaler itself is never changed. New and moved records attach to the current Primary's VM: {% for name, t in targets.items %}{{ name }} → {{ t.vm_name|default:"no NetBox VM" }} {% endfor %}

{% csrf_token %}
Create: UP VIPs missing from NetBox {{ plan.creates|length }}
{% if plan.creates %} {% for d in plan.creates %} {% endfor %}
PairAddressVserverStatusDNS nameAttach to
{{ d.pair }}{{ d.host }}/32{{ d.vserver }}
{{ d.description }}
{{ d.status }}{{ d.dns_name|default:"—" }} {% if d.interface_id %}{{ d.vm_name }}{% elif d.vm_name %}unassigned: {{ d.vm_name }} has no interface{% else %}unassigned: no NetBox VM{% endif %}
{% else %}

Every UP VIP already has a NetBox IP record.

{% endif %}
Update: VIP records out of date {{ plan.updates|length }}
{% if plan.updates %} {% for c in plan.updates %} {% endfor %}
RecordPair / vserverChanges (old → new)
{{ c.ip.address }} {{ c.desired.pair }}
{{ c.desired.vserver }}
{% for field, old, new in c.display %}
{{ field }}: {{ old|default:"—" }} → {{ new }}
{% endfor %}
{% else %}

All VIP records match NetScaler.

{% endif %}
Orphaned: VIP records not on any NetScaler {{ plan.orphans|length }}
{% if plan.orphans_suppressed %}
Not shown while a NetScaler pair is unavailable or returned no VIPs, so nothing gets deprecated because a box is unreachable or incomplete.
{% elif plan.orphans %}

Only records written by NetScaler sync (description starting "NetScaler VIP - ") are considered. Content-switching, VPN and non-NetScaler VIPs are not read, so they never appear here. The only action offered is setting the status to deprecated. Nothing is deleted.

{% for ip in plan.orphans %} {% endfor %}
RecordStatusDNS nameDescription
{{ ip.address }} {{ ip.status }}{{ ip.dns_name|default:"—" }}{{ ip.description }}
{% else %}

No orphaned VIP records.

{% endif %}
{% if plan.conflicts %}
Conflicts: non-VIP records at a VIP address (never changed) {{ plan.conflicts|length }}
{% for ip, d in plan.conflicts %} {% endfor %}
RecordRoleStatusVIP on NetScaler
{{ ip.address }}{{ ip.role|default:"—" }}{{ ip.status }}{{ d.pair }} {{ d.vserver }}
{% endif %} {% if can_add or can_change %} {% else %}
You can preview, but applying needs permission to add or change IP addresses.
{% endif %}
{% endblock %}