IP address "role" isn't displayed as a label #5190

Closed
opened 2025-12-29 19:25:17 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Aug 17, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.11

Python version

3.6

Steps to Reproduce

  1. Find any IP address which has a "role" set (e.g. Loopback, VRRP etc)
  2. Browse to the IP address details page: /ipam/ip-addresses/<N>/

Expected Behavior

I expected both "Status" and "Role" to be displayed in their color 'label' form, consistent with how they are displayed in tables.

Observed Behavior

The "Status" is displayed as a label, but the "Role" is displayed as plain text.

image

I note that the "Role" is a hyperlink here (although the status isn't. Maybe the inconsistent rendering is to call out the fact that it is clickable.

However it can be made visually consistent by adding a class to the hyperlink, e.g. <a class="label label-success" href="..."> which renders as:

image

and is still clickable, albeit now not visually called out as a hyperlink.

Originally created by @candlerb on GitHub (Aug 17, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.11 ### Python version 3.6 ### Steps to Reproduce 1. Find any IP address which has a "role" set (e.g. Loopback, VRRP etc) 2. Browse to the IP address details page: `/ipam/ip-addresses/<N>/` ### Expected Behavior I expected both "Status" and "Role" to be displayed in their color 'label' form, consistent with how they are displayed in tables. ### Observed Behavior The "Status" is displayed as a label, but the "Role" is displayed as plain text. ![image](https://user-images.githubusercontent.com/44789/129708412-168f9423-5de3-4384-a7f5-180275fbccf1.png) I note that the "Role" is a hyperlink here (although the status isn't. Maybe the inconsistent rendering is to call out the fact that it is clickable. However it *can* be made visually consistent by adding a class to the hyperlink, e.g. `<a class="label label-success" href="...">` which renders as: ![image](https://user-images.githubusercontent.com/44789/129708900-59571217-5d8a-4fab-9030-21f3a9f868ec.png) and is still clickable, albeit now not visually called out as a hyperlink.
adam added the type: bugstatus: accepted labels 2025-12-29 19:25:17 +01:00
adam closed this issue 2025-12-29 19:25:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5190