Skip to content

Commit

Permalink
Closes #12831: Include circuit description in cable trace SVG image
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Oct 6, 2023
1 parent 383285f commit 4286c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Enhancements

* [#12831](https://github.com/netbox-community/netbox/issues/12831) - Include circuit description in cable trace SVG image
* [#13950](https://github.com/netbox-community/netbox/issues/13950) - Display custom choice field labels rather than values in UI

### Bug Fixes
Expand Down
2 changes: 2 additions & 0 deletions netbox/dcim/svg/cables.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,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 4286c1c

Please sign in to comment.