API validation for power-outlets and console-server-ports #1349

Closed
opened 2025-12-29 16:31:41 +01:00 by adam · 0 comments
Owner

Originally created by @Gelob on GitHub (Oct 24, 2017).

Issue type

[ ] Feature request
[ X ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: 2.2.2

Description

I have a device type that is marked False for Console Server & PDU, but is marked True for Network Device
screen shot 2017-10-24 at 10 01 14 am

If i POST to /api/dcim/power-outlets/ I receive a 201 and a power outlet is created on my device who us using the above device type. I'd expect to receive an error about that device not supporting power outlets. The same is true for /api/dcim/console-server-ports/

screen shot 2017-10-24 at 10 07 11 am

Originally created by @Gelob on GitHub (Oct 24, 2017). ### Issue type [ ] Feature request <!-- Requesting the implementation of a new feature --> [ X ] Bug report <!-- Reporting unexpected or erroneous behavior --> [ ] Documentation <!-- Proposing a modification to the documentation --> <!-- Please describe the environment in which you are running NetBox. (Be sure to verify that you are running the latest stable release of NetBox before submitting a bug report.) --> ### Environment * Python version: 2.7.5 * NetBox version: 2.2.2 ### Description I have a device type that is marked False for Console Server & PDU, but is marked True for Network Device ![screen shot 2017-10-24 at 10 01 14 am](https://user-images.githubusercontent.com/422752/31950903-47d3e344-b8a2-11e7-9102-72d0048041c6.png) If i POST to /api/dcim/power-outlets/ I receive a 201 and a power outlet is created on my device who us using the above device type. I'd expect to receive an error about that device not supporting power outlets. The same is true for /api/dcim/console-server-ports/ ![screen shot 2017-10-24 at 10 07 11 am](https://user-images.githubusercontent.com/422752/31951229-22507bcc-b8a3-11e7-9612-4809c4b1b5aa.png)
adam added the type: bug label 2025-12-29 16:31:41 +01:00
adam closed this issue 2025-12-29 16:31:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1349