Status tab claims device is inactive #3189

Closed
opened 2025-12-29 18:26:28 +01:00 by adam · 1 comment
Owner

Originally created by @lukasjuhrich on GitHub (Jan 20, 2020).

Environment

  • Python version: 3.7.6
  • NetBox version: 2.7.1

Steps to Reproduce

  1. Have DCIM devices which are active (in the sense of the dcim_device.status column in the database) and have a valid database navigation
  2. Navigate to the device overview

Expected Behavior

The status tab should be enabled and clickable.

Observed Behavior

The status tab is not clickable, instead it reports device must be in active status.
However, manually navigating to status/ works perfectly fine and displays all desired data.

Probable reason

The template still checks device.status == 1 using the legacy numerical value (although this might be plain wrong because I don't know the codebase).

Originally created by @lukasjuhrich on GitHub (Jan 20, 2020). ### Environment * Python version: 3.7.6 * NetBox version: 2.7.1 ### Steps to Reproduce 1. Have DCIM devices which are `active` (in the sense of the `dcim_device.status` column in the database) and have a valid database navigation 2. Navigate to the device overview <!-- What did you expect to happen? --> ### Expected Behavior The `status` tab should be enabled and clickable. <!-- What happened instead? --> ### Observed Behavior The `status` tab is not clickable, instead it reports `device must be in active status`. However, manually navigating to `status/` works perfectly fine and displays all desired data. ### Probable reason The [template](https://github.com/netbox-community/netbox/blob/v2.7.1/netbox/templates/dcim/device.html#L87) still checks `device.status == 1` using the legacy numerical value (although this might be plain wrong because I don't know the codebase).
adam added the type: bugstatus: accepted labels 2025-12-29 18:26:28 +01:00
adam closed this issue 2025-12-29 18:26:28 +01:00
Author
Owner

@kobayashi commented on GitHub (Jan 21, 2020):

Confirmed and accepted this as bug.

@kobayashi commented on GitHub (Jan 21, 2020): Confirmed and accepted this as bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3189