mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-22 23:46:44 -06:00
Fixes #9758
This commit is contained in:
parent
a6be8dccf5
commit
56c4c186ce
@ -576,6 +576,7 @@ class CablePath(models.Model):
|
|||||||
[object_to_path_node(circuit_termination)],
|
[object_to_path_node(circuit_termination)],
|
||||||
[object_to_path_node(circuit_termination.provider_network)],
|
[object_to_path_node(circuit_termination.provider_network)],
|
||||||
])
|
])
|
||||||
|
is_complete = True
|
||||||
break
|
break
|
||||||
elif circuit_termination.site and not circuit_termination.cable:
|
elif circuit_termination.site and not circuit_termination.cable:
|
||||||
# Circuit terminates to a Site
|
# Circuit terminates to a Site
|
||||||
|
@ -123,5 +123,5 @@ class CableTable(TenancyColumnsMixin, NetBoxTable):
|
|||||||
'length', 'tags', 'created', 'last_updated',
|
'length', 'tags', 'created', 'last_updated',
|
||||||
)
|
)
|
||||||
default_columns = (
|
default_columns = (
|
||||||
'pk', 'id', 'label', 'a_terminations', 'b_terminations', 'status', 'type',
|
'pk', 'id', 'label', 'device_a', 'a_terminations', 'device_b', 'b_terminations', 'status', 'type',
|
||||||
)
|
)
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
LINKTERMINATION = """
|
LINKTERMINATION = """
|
||||||
{% for termination in value %}
|
{% for termination in value %}
|
||||||
|
{% if termination.parent_object %}
|
||||||
|
<a href="{{ termination.parent_object.get_absolute_url }}">{{ termination.parent_object }}</a>
|
||||||
|
<i class="mdi mdi-chevron-right"></i>
|
||||||
|
{% endif %}
|
||||||
<a href="{{ termination.get_absolute_url }}">{{ termination }}</a>{% if not forloop.last %},{% endif %}
|
<a href="{{ termination.get_absolute_url }}">{{ termination }}</a>{% if not forloop.last %},{% endif %}
|
||||||
{% empty %}
|
{% empty %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
|
Loading…
Reference in New Issue
Block a user