{% extends "template.html" %}
{% load tags %}
{% block breadcrumbs %}{{block.super}}
VRF: {{vrf.name}}
{% endblock %}
{% block content %}
{% if can_allocate %}
{% endif %}
{% if prefixes %}
Allocated blocks
Prefix | VRF | Description | VC | TT | Tags |
{%for p in prefixes %}
{{p.prefix}} |
{{p.vrf.name}} |
{{p.description}} |
{% if p.vc %}{{p.vc}}{% endif %} |
{%if p.tt %}#{{p.tt}}{%endif%} |
{% tags p %} |
{%endfor%}
{% endif %}
{% if has_children %}
{%if orphaned_addresses%}
Orphaned addresses
IP | FQDN | Description | TT |
{% for a in orphaned_addresses %}
{% if can_allocate %}{{a.ip}}{%else%}{{a.ip}}{%endif%} |
{{a.fqdn}} |
{{a.description}} |
{%if a.tt %}#{{a.tt}}{%endif%} |
{% endfor %}
{% endif %}
{% else %}
Assigned addresses Show Free Addresses
| IP | FQDN | Description | TT | Tags |
{% for r,a in all_addresses %}
{% if a.ip %}
|
{% if can_allocate %}
{{a.ip}}
{%else%}
{{a.ip}}
{%endif%}
|
{{a.fqdn}} |
{{a.description}} |
{%if a.tt %}#{{a.tt}}{%endif%} |
{% tags a %} |
{% else %}
|
{% if can_allocate %}
{{a}}
{%else%}
{{a}}
{% endif %}
|
Free |
|
|
{% endif %}
{% endfor %}
{% if ranges %}
Address Ranges
| Name | From IP | To IP | Locked | Description |
{% for r in ranges %}
|
{{r.name}} |
{{r.from_ip}} |
{{r.to_ip}} |
 |
{{r.description}} |
{% endfor %}
{% endif %}
{% endif %}
{{prefix.prefix}} info
{% if prefix.tags %}
Tags |
{%tags prefix%} |
{% endif %}
VC |
{% if prefix.vc %}{{prefix.vc}}{% endif %}
{% if can_allocate %}
{%if prefix.vc%}Change{%else%}Bind{%endif%}...
{% endif %}
|
Maintainers |
{{prefix.maintainers|join:", "}} {%if can_allocate%}Add...{%endif%} |
{% for k,v in block_info %}
{{k}} | {{v}} |
{% endfor %}
{% endblock %}