Interface PoE type reference error #6956

Closed
opened 2025-12-29 19:47:09 +01:00 by adam · 2 comments
Owner

Originally created by @endreszabo on GitHub (Sep 9, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.3.2

Python version

3.10

Steps to Reproduce

When choosing interface PoE type, select Passive 48V (2-pair), option Passive 48V (4-pair) will be chosen instead.

PoE type of Passive 48V (2-pair) could not be selected as Passive 48V (4-pair) had the same key for that value.

Expected Behavior

Option Passive 48V (2-pair) should be selected.

Observed Behavior

Option Passive 48V (4-pair) will be chosen instead.

Originally created by @endreszabo on GitHub (Sep 9, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.3.2 ### Python version 3.10 ### Steps to Reproduce When choosing interface PoE type, select `Passive 48V (2-pair)`, option `Passive 48V (4-pair)` will be chosen instead. PoE type of `Passive 48V (2-pair)` could not be selected as `Passive 48V (4-pair)` had the same key for that value. ### Expected Behavior Option `Passive 48V (2-pair)` should be selected. ### Observed Behavior Option `Passive 48V (4-pair)` will be chosen instead.
adam added the type: bug label 2025-12-29 19:47:09 +01:00
adam closed this issue 2025-12-29 19:47:10 +01:00
Author
Owner

@endreszabo commented on GitHub (Sep 9, 2022):

The first item in the tuple is wrong here: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/choices.py#L1099

@endreszabo commented on GitHub (Sep 9, 2022): The first item in the tuple is wrong here: https://github.com/netbox-community/netbox/blob/develop/netbox/dcim/choices.py#L1099
Author
Owner

@arthanson commented on GitHub (Sep 9, 2022):

@endreszabo Thanks for tracking this down.

@arthanson commented on GitHub (Sep 9, 2022): @endreszabo Thanks for tracking this down.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6956