mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
14405 render link_peer to csv
This commit is contained in:
parent
056543e1d2
commit
ad1366d90d
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user