Skip to content

Commit

Permalink
14405 render link_peer to CSV (#15201)
Browse files Browse the repository at this point in the history
* 14405 render link_peer to csv

* 14405 review changes
  • Loading branch information
arthanson authored Feb 20, 2024
1 parent cf3969b commit 17a321a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions netbox/dcim/tables/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 17a321a

Please sign in to comment.