14405 render link_peer to csv

This commit is contained in:
Arthur 2024-02-20 09:31:06 -08:00
parent 056543e1d2
commit ad1366d90d

View File

@ -359,6 +359,17 @@ class CableTerminationTable(NetBoxTable):
verbose_name=_('Mark Connected'), verbose_name=_('Mark Connected'),
) )
def value_link_peer(self, value):
string = ""
for termination in value:
if value and not str:
string += " "
if termination.parent_object:
string += f"{termination.parent_object} > "
string += str(termination)
return string
class PathEndpointTable(CableTerminationTable): class PathEndpointTable(CableTerminationTable):
connection = columns.TemplateColumn( connection = columns.TemplateColumn(