Skip to content

Commit

Permalink
Add description to Circuit objects in cable trace
Browse files Browse the repository at this point in the history
  • Loading branch information
candlerb committed Jun 7, 2023
1 parent 9fb52be commit 10a9323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netbox/dcim/svg/cables.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def _get_labels(cls, instance):
elif instance._meta.model_name == 'circuit':
labels[0] = f'Circuit {instance}'
labels.append(instance.provider)
if instance.description:
labels.append(instance.description)
elif instance._meta.model_name == 'circuittermination':
if instance.xconnect_id:
labels.append(f'{instance.xconnect_id}')
Expand Down

0 comments on commit 10a9323

Please sign in to comment.