{% extends 'base/layout.html' %} {% block title %}{{ prefix }} - Permissions Synchronization{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block content %}

Prefix Information

Prefix:{{ prefix.prefix }}
Tenant:{% if prefix.tenant_name %}{{ prefix.tenant_name }}{% else %}None{% endif %}
Tenant Permissions (RW): {% if prefix.tenant_permissions %}{{ prefix.tenant_permissions }}{% else %}Not set{% endif %}
Tenant Permissions (RO): {% if prefix.tenant_permissions_ro %}{{ prefix.tenant_permissions_ro }}{% else %}Not set{% endif %}
{% if vlan %}

Assigned VLAN Permissions

{% if vlan.vid %}

VLAN: {{ vlan.name }} (VID {{ vlan.vid }})

{% else %}

VLAN: {{ vlan.name }}

{% endif %} {% if not vlan_needs_sync %}
VLAN permissions are already synchronized with the prefix.
{% else %}
VLAN permissions differ from the prefix and will be synchronized when you click "Sync All IPs" (or "Sync VLAN" below).
{% endif %}
Current VLAN Tenant:{% if vlan.tenant_name %}{{ vlan.tenant_name }}{% else %}None{% endif %}
Current VLAN Permissions (RW): {% if vlan.tenant_permissions %}{{ vlan.tenant_permissions }}{% else %}Not set{% endif %}
Current VLAN Permissions (RO): {% if vlan.tenant_permissions_ro %}{{ vlan.tenant_permissions_ro }}{% else %}Not set{% endif %}
{% endif %}

IP Addresses Status

Total IP Addresses in Prefix: {{ ips_total }}

IP Addresses needing synchronization: {{ ips_to_sync|length }}

IP Addresses already synchronized: {{ ips_synced|length }}

{% if ips_to_sync %}

IP Addresses Needing Synchronization

{% for ip in ips_to_sync %} {% endfor %}
IP Address Current Tenant Current Permissions (RW) Current Permissions (RO) Status
{{ ip.address }} {% if ip.tenant_name %}{{ ip.tenant_name }}{% else %}None{% endif %} {% if ip.tenant_permissions %}{{ ip.tenant_permissions }}{% else %}Not set{% endif %} {% if ip.tenant_permissions_ro %}{{ ip.tenant_permissions_ro }}{% else %}Not set{% endif %} Mismatch
{% csrf_token %}
{% else %}
All IP addresses are already synchronized with the prefix permissions!
{% if vlan and vlan_needs_sync %}

VLAN Needs Synchronization

The VLAN permissions differ from the prefix. You can synchronize the VLAN now (no IP changes will be made).

{% csrf_token %}
{% endif %} {% endif %} {% if ips_synced %}

Already Synchronized IP Addresses

{% for ip in ips_synced %} {% endfor %}
IP Address Tenant Permissions (RW) Permissions (RO) Status
{{ ip.address }} {% if ip.tenant_name %}{{ ip.tenant_name }}{% else %}None{% endif %} {% if ip.tenant_permissions %}{{ ip.tenant_permissions }}{% else %}Not set{% endif %} {% if ip.tenant_permissions_ro %}{{ ip.tenant_permissions_ro }}{% else %}Not set{% endif %} Synchronized
{% endif %} {% endblock %}