{% extends 'generic/object.html' %} {% load helpers %} {% load plugins %} {% load i18n %} {% load static %} {% block extra_controls %} {% if perms.netbox_fms.add_fibercircuitpath and perms.netbox_fms.change_fibercircuit %} {% trans "Assign fibers" %} {% endif %} {% if object.is_broken and perms.netbox_fms.change_fibercircuitpath and perms.netbox_fms.change_fibercircuit %}
{% endif %} {% endblock extra_controls %} {% block content %}| {% trans "Name" %} | {{ object.name }} |
|---|---|
| {% trans "Circuit ID" %} | {% if object.cid %}{{ object.cid }}{% else %}—{% endif %} |
| {% trans "Status" %} | {% if object.status == 'active' %} {{ object.get_status_display }} {% elif object.status == 'planned' %} {{ object.get_status_display }} {% elif object.status == 'provisioning' %} {{ object.get_status_display }} {% elif object.status == 'decommissioning' or object.status == 'deprovisioning' %} {{ object.get_status_display }} {% else %} {{ object.get_status_display }} {% endif %} |
| {% trans "Broken" %} | {% if object.is_broken %}{% trans "Yes" %}{% else %}—{% endif %} |
| {% trans "Strand Count" %} | {{ object.strand_count }} |
| {% trans "Tenant" %} | {% if object.tenant %}{{ object.tenant|linkify }}{% else %}—{% endif %} |
| {% trans "Provider Circuits" %} |
{% for pc in object.provider_circuits.all %}
{{ pc|linkify }} ({{ pc.provider|linkify }}){% if not forloop.last %} {% endif %} {% empty %} — {% endfor %} |
| {% trans "Position" %} | {% trans "Fiber path" %} | {% trans "End A" %} | {% trans "End B" %} | {% trans "Completeness" %} | {% trans "Status" %} | {% trans "Calculated Loss (dB)" %} | {% trans "Actual Loss (dB)" %} | {% trans "Wavelength (nm)" %} | {% trans "Trace" %} |
|---|---|---|---|---|---|---|---|---|---|
| {{ path.position }} | {{ path.strand_path|linkify }} | {% if path.strand_path.end_a_port %}{{ path.strand_path.end_a_port|linkify }}{% else %}—{% endif %} | {% if path.strand_path.end_b_port %}{{ path.strand_path.end_b_port|linkify }}{% else %}—{% endif %} | {{ path.strand_path.get_completeness_display }} | {% include "netbox_fms/inc/assignment_status_badge.html" with assignment=path %} | {% with loss=path.get_calculated_loss_db %}{% if loss is not None %}{{ loss }}{% else %}—{% endif %}{% endwith %} | {% if path.actual_loss_db is not None %}{{ path.actual_loss_db }}{% else %}—{% endif %} | {% if path.wavelength_nm %}{{ path.wavelength_nm }}{% else %}—{% endif %} | {% trans "Trace" %} |
{% trans "No fiber paths assigned." %}
{% endif %}