Skip to content
Discussion options

You must be logged in to vote

No, it's not templated. For example, in order to get circuit descriptions added I needed to raise a feature request: #12831

Here's the code which labels a cable, in netbox/dcim/svg/cables.py:

        # If the cable count is higher than 2, collapse the description into a tooltip
        if cable_count > 2:
            ... snip
        else:
            labels = [
                f'Cable {cable}',
                cable.get_status_display()
            ]
            description = []
            if cable.type:
                labels.append(cable.get_type_display())
            if cable.length is not None and cable.length_unit:
                # Include the cable length in the tooltip
        …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by theredon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants