mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 11:42:52 -06:00
Closes #12831: Include circuit description in cable trace SVG image
This commit is contained in:
parent
383285fb94
commit
4286c1cde2
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
### Enhancements
|
### 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
|
* [#13950](https://github.com/netbox-community/netbox/issues/13950) - Display custom choice field labels rather than values in UI
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
@ -160,6 +160,8 @@ class CableTraceSVG:
|
|||||||
elif instance._meta.model_name == 'circuit':
|
elif instance._meta.model_name == 'circuit':
|
||||||
labels[0] = f'Circuit {instance}'
|
labels[0] = f'Circuit {instance}'
|
||||||
labels.append(instance.provider)
|
labels.append(instance.provider)
|
||||||
|
if instance.description:
|
||||||
|
labels.append(instance.description)
|
||||||
elif instance._meta.model_name == 'circuittermination':
|
elif instance._meta.model_name == 'circuittermination':
|
||||||
if instance.xconnect_id:
|
if instance.xconnect_id:
|
||||||
labels.append(f'{instance.xconnect_id}')
|
labels.append(f'{instance.xconnect_id}')
|
||||||
|
Loading…
Reference in New Issue
Block a user