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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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