Skip to content

Component Selector for InventoryItemTemplates does not filter to Target DeviceType #16236

Closed as not planned
@chadhpaine

Description

@chadhpaine

Deployment Type

Self-hosted

NetBox Version

v3.7.8

Python Version

3.10

Steps to Reproduce

  1. Start with a clean instance (for illustration purposes).
  2. Create a Device Type.
  3. Add an Interface Template to the Device Type from Step 1.
  4. Create another Device Type.
  5. Add an Interface Template to the Device Type from step 3.
    4a. For added effect, use the same name for this template as for the template from Step 2.
  6. Add an Inventory Item Template to one Device Type or the other.
    5a. Attempt to associate the Inventory Item Template to the Interface from the target device-type.
    5b. Observe that two Inventory Item Templates appear in the list.
    5bi. If Step 4a is observed, observe that both items in the list have the same name, but no other distinguishing features.

Expected Behavior

The Component Selector within the Inventory Item Template Create / Edit menus shows only components-templates associated with the target device.

Observed Behavior

The Component Selector within the Inventory Item Template Create / Edit menus shows component-templates from what appears to be every device-type registered to the instance.

image

Additional Information

Follows feature-availability introduced by #15759.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: 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