1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up connection tables

This commit is contained in:
jeremystretch
2022-07-14 10:37:27 -04:00
parent 0615252e15
commit 29c81a788f
3 changed files with 15 additions and 29 deletions

View File

@@ -274,17 +274,17 @@ class CableTerminationTable(NetBoxTable):
verbose_name='Cable Color'
)
link_peer = columns.TemplateColumn(
accessor='_link_peer',
accessor='link_peers',
template_code=LINKTERMINATION,
orderable=False,
verbose_name='Link Peer'
verbose_name='Link Peers'
)
mark_connected = columns.BooleanColumn()
class PathEndpointTable(CableTerminationTable):
connection = columns.TemplateColumn(
accessor='_path__last_node',
accessor='_path__destinations',
template_code=LINKTERMINATION,
verbose_name='Connection',
orderable=False