Editing device with Manufacturer and Platform under same Manufacturer fail validation #6251

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

Originally created by @pradiptama on GitHub (Mar 23, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.8 and v3.1.9

Python version

3.8

Steps to Reproduce

  1. Create 2 Manufacturer (e.g. "Manufacturer A" and "Manufacturer B")
  2. Create 2 Device Type under those 2 Manufacturer (e.g. "Device Type C" under "Manufacturer A" and "Device Type D" under" Manufacturer B")
  3. Create 2 platform under those 2 Manufacturer (e.g. "Platform E" under "Manufacturer A" and "Platform F" under" Manufacturer B"
  4. Create a site (e.g. "Site G")
  5. Create Device role (e.g. "Role H")
  6. Create a Device with name "Test" with Device Role as "Role H", Manufacturer as "Manufacturer A", Device Type as "Device Type C", Site as "Site G", Platform as "Platform E"
  7. Edit the device "Test" and update Manufacturer as "Manufacturer B", Device Type as "Device Type D" and Platform as "Platform F" and try to Save

Expected Behavior

Allowed to save with new Platform and Manufacturer and Device Type

Observed Behavior

Platform

- Select a valid choice. That choice is not one of the available choices.
- The assigned platform is limited to Manufacturer A device types, but this device's type belongs to Manufacturer B.
Originally created by @pradiptama on GitHub (Mar 23, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.8 and v3.1.9 ### Python version 3.8 ### Steps to Reproduce 1. Create 2 Manufacturer (e.g. "Manufacturer A" and "Manufacturer B") 2. Create 2 Device Type under those 2 Manufacturer (e.g. "Device Type C" under "Manufacturer A" and "Device Type D" under" Manufacturer B") 3. Create 2 platform under those 2 Manufacturer (e.g. "Platform E" under "Manufacturer A" and "Platform F" under" Manufacturer B" 4. Create a site (e.g. "Site G") 5. Create Device role (e.g. "Role H") 6. Create a Device with name "Test" with Device Role as "Role H", Manufacturer as "Manufacturer A", Device Type as "Device Type C", Site as "Site G", Platform as "Platform E" 7. Edit the device "Test" and update Manufacturer as "Manufacturer B", Device Type as "Device Type D" and Platform as "Platform F" and try to Save ### Expected Behavior Allowed to save with new Platform and Manufacturer and Device Type ### Observed Behavior ``` Platform - Select a valid choice. That choice is not one of the available choices. - The assigned platform is limited to Manufacturer A device types, but this device's type belongs to Manufacturer B. ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:38:31 +01:00
adam closed this issue 2025-12-29 19:38:31 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6251