Skip to content

Commit

Permalink
Closes: #11671 - Add position display to cable trace
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSheps committed Oct 2, 2024
1 parent 5b2f2e1 commit b992de3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netbox/dcim/svg/cables.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def _get_labels(cls, instance):
location_label += f' / {instance.location}'
if instance.rack:
location_label += f' / {instance.rack}'
if instance.position:
location_label += f' / {instance.get_face_display()}'
location_label += f' / U{instance.position}'
labels.append(location_label)
elif instance._meta.model_name == 'circuit':
labels[0] = f'Circuit {instance}'
Expand Down

0 comments on commit b992de3

Please sign in to comment.