From ad1366d90dc8f3d422290556fc1c971d9c3b0aaa Mon Sep 17 00:00:00 2001 From: Arthur Date: Tue, 20 Feb 2024 09:31:06 -0800 Subject: [PATCH] 14405 render link_peer to csv --- netbox/dcim/tables/devices.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/netbox/dcim/tables/devices.py b/netbox/dcim/tables/devices.py index 4c863e12a..90e6b4863 100644 --- a/netbox/dcim/tables/devices.py +++ b/netbox/dcim/tables/devices.py @@ -359,6 +359,17 @@ class CableTerminationTable(NetBoxTable): 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): connection = columns.TemplateColumn(