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

14405 render link_peer to CSV (#15201)

* 14405 render link_peer to csv

* 14405 review changes
This commit is contained in:
Arthur Hanson
2024-02-20 13:24:14 -08:00
committed by GitHub
parent cf3969bc6c
commit 17a321a340

View File

@ -359,6 +359,11 @@ class CableTerminationTable(NetBoxTable):
verbose_name=_('Mark Connected'), verbose_name=_('Mark Connected'),
) )
def value_link_peer(self, value):
return ', '.join([
f"{termination.parent_object} > {termination}" for termination in value
])
class PathEndpointTable(CableTerminationTable): class PathEndpointTable(CableTerminationTable):
connection = columns.TemplateColumn( connection = columns.TemplateColumn(