{% if object.segment_type == 'dark_fiber' %}
{% if object.dark_fiber_data %}
{% with data=object.dark_fiber_data %}
{% if data.fiber_mode %}
Fiber Mode
{{ data.get_fiber_mode_display }}
{% endif %}
{% if data.single_mode_subtype %}
Single-mode Subtype
{{ data.get_single_mode_subtype_display }}
{% endif %}
{% if data.multimode_subtype %}
Multimode Subtype
{{ data.get_multimode_subtype_display }}
{% endif %}
{% if data.jacket_type %}
Jacket Type
{{ data.get_jacket_type_display }}
{% endif %}
{% if data.fiber_attenuation_max %}
Fiber Attenuation (dB/km)
{{ data.fiber_attenuation_max }}
{% endif %}
{% if data.total_loss %}
Total Loss (dB)
{{ data.total_loss }}
{% endif %}
{% if data.total_length %}
Total Length (km)
{{ data.total_length }}
{% endif %}
{% if data.number_of_fibers %}
Number of Fibers
{{ data.number_of_fibers }}
{% endif %}
{% if data.connector_type_side_a %}
Connector Side A
{{ data.get_connector_type_side_a_display }}
{% endif %}
{% if data.connector_type_side_b %}
Connector Side B
{{ data.get_connector_type_side_b_display }}
{% endif %}
{% endwith %}
{% else %}
No dark fiber technical specifications configured.
Add Dark Fiber Data
{% endif %}
{% elif object.segment_type == 'optical_spectrum' %}
{% if object.optical_spectrum_data %}
{% with data=object.optical_spectrum_data %}
{% if data.wavelength %}
Wavelength (nm)
{{ data.wavelength }}
{% endif %}
{% if data.spectral_slot_width %}
Spectral Slot Width (GHz)
{{ data.spectral_slot_width }}
{% endif %}
{% if data.itu_grid_position %}
ITU Grid Position
{{ data.itu_grid_position }}
{% endif %}
{% if data.chromatic_dispersion %}
Chromatic Dispersion (ps/nm)
{{ data.chromatic_dispersion }}
{% endif %}
{% if data.pmd_tolerance %}
PMD Tolerance (ps)
{{ data.pmd_tolerance }}
{% endif %}
{% if data.modulation_format %}
Modulation Format
{{ data.get_modulation_format_display }}
{% endif %}
{% endwith %}
{% else %}
No optical spectrum technical specifications configured.
Add Optical Spectrum Data
{% endif %}
{% elif object.segment_type == 'ethernet_service' %}
{% if object.ethernet_service_data %}
{% with data=object.ethernet_service_data %}
{% if data.port_speed %}
Port Speed (Mbps)
{{ data.port_speed }}
{% endif %}
{% if data.vlan_id %}
VLAN ID
{{ data.vlan_id }}
{% endif %}
{% if data.vlan_tags %}
VLAN Tags
{{ data.vlan_tags }}
{% endif %}
{% if data.encapsulation_type %}
Encapsulation Type
{{ data.get_encapsulation_type_display }}
{% endif %}
{% if data.interface_type %}
Interface Type
{{ data.get_interface_type_display }}
{% endif %}
{% if data.mtu_size %}
MTU Size (bytes)
{{ data.mtu_size }}
{% endif %}
{% endwith %}
{% else %}
No ethernet service technical specifications configured.
Add Ethernet Service Data
{% endif %}
{% else %}
No technical specifications available for this segment type.
{% endif %}