{% if object.links.exists %}
| Interface |
Appliance |
Relationship |
Status |
Peer Name |
Peer |
Ticket |
Actions |
{% for link in object.links.all %}
| {{ link.interface_id }} |
{{ link.core }} |
{% if link.relationship == 'CORE' %}
CORE
{% elif link.relationship == 'CHILD' %}
CHILD
{% elif link.relationship == 'PARENT' %}
PARENT
{% elif link.relationship == 'PEER' %}
PEER
{% else %}
{{ link.get_relationship_display }}
{% endif %}
|
{% if link.status %}
{% if link.status == 'ACTIVE' %}
Active
{% elif link.status == 'RESERVED' %}
Reserved
{% elif link.status == 'PLANNED' %}
Planned
{% else %}
{{ link.status }}
{% endif %}
{% endif %}
|
{{ link.peer_name }} |
{{ link.peer }} |
{% if link.ticket %}
{% with url=link.get_ticket_url %}
{% if url %}
{{ link.ticket }}
{% else %}
{{ link.ticket }}
{% endif %}
{% endwith %}
{% else %}
—
{% endif %}
|
|
{% endfor %}
{% else %}
None
{% endif %}