Skip to content

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

@pradiptama

Description

@pradiptama

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.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions