From 17a321a340f539fda87ad27c5e9647d0e36ca46e Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Tue, 20 Feb 2024 13:24:14 -0800 Subject: [PATCH] 14405 render link_peer to CSV (#15201) * 14405 render link_peer to csv * 14405 review changes --- netbox/dcim/tables/devices.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index 4c863e12a..d4c9641b6 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -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(