mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
15106 add wireless link length
This commit is contained in:
parent
f1eedfbc41
commit
75e6b4467e
@ -393,6 +393,8 @@ class CableTraceSVG:
|
|||||||
labels = [f"{cable}"] if len(links) > 2 else [f"Wireless {cable}", cable.get_status_display()]
|
labels = [f"{cable}"] if len(links) > 2 else [f"Wireless {cable}", cable.get_status_display()]
|
||||||
if cable.ssid:
|
if cable.ssid:
|
||||||
description.append(f"{cable.ssid}")
|
description.append(f"{cable.ssid}")
|
||||||
|
if cable.length and cable.length_unit:
|
||||||
|
description.append(f"{cable.length} {cable.get_length_unit_display()}")
|
||||||
near = [term for term in near_terminations if term.object == cable.interface_a]
|
near = [term for term in near_terminations if term.object == cable.interface_a]
|
||||||
far = [term for term in far_terminations if term.object == cable.interface_b]
|
far = [term for term in far_terminations if term.object == cable.interface_b]
|
||||||
if not (near and far):
|
if not (near and far):
|
||||||
|
@ -71,7 +71,7 @@ class WirelessLinkFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
|
|||||||
model = WirelessLink
|
model = WirelessLink
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
FieldSet('q', 'filter_id', 'tag'),
|
FieldSet('q', 'filter_id', 'tag'),
|
||||||
FieldSet('ssid', 'status', name=_('Attributes')),
|
FieldSet('ssid', 'status', 'length', 'length_unit', name=_('Attributes')),
|
||||||
FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
|
FieldSet('tenant_group_id', 'tenant_id', name=_('Tenant')),
|
||||||
FieldSet('auth_type', 'auth_cipher', 'auth_psk', name=_('Authentication')),
|
FieldSet('auth_type', 'auth_cipher', 'auth_psk', name=_('Authentication')),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user