Add Components to Module Types not working as expected? #6996

Closed
opened 2025-12-29 19:47:35 +01:00 by adam · 1 comment
Owner

Originally created by @bdangus on GitHub (Sep 16, 2022).

NetBox version

V3.3.3

Python version

3.10

Steps to Reproduce

I'm reluctant to label this as a bug, because I may be doing something wrong, but I'm not sure what? In any event, here are the details...

I'm doing this all from the demo application: (https://demo.netbox.dev/)
I'm trying to add an interface component to a module type.

Create a Module Type
Choose Add Components... Interfaces
The "Add a new interface template" form appears:

  • Device type* is "-----" (I'm not sure what to put here since I don't think it's relevant in this context)
  • Module type is pre-selected based on the module type I am adding an interface to
  • I choose an interface Type (e.g. 100BASE-TX)
    If I leave Device Type* blank, I get "Device Type field is required" message underneath the Device Type field
    If I select a Device Type (just to try it), I get "A Component template cannot be associated with both a device type and a module type" message in red in the bottom right.

I also tried adding a Power Port component and ran into the same thing.

Expected Behavior

I'm expecting that I won't need to select a Device Type when adding a Component to Module Type.

Observed Behavior

I'm being forced to select a Device Type when adding a Component to Module Type. If I do, I get "A Component template cannot be associated with both a device type and a module type" message in red in the bottom right.

Originally created by @bdangus on GitHub (Sep 16, 2022). ### NetBox version V3.3.3 ### Python version 3.10 ### Steps to Reproduce I'm reluctant to label this as a bug, because I may be doing something wrong, but I'm not sure what? In any event, here are the details... I'm doing this all from the demo application: (https://demo.netbox.dev/) I'm trying to add an interface component to a module type. Create a Module Type Choose Add Components... Interfaces The "Add a new interface template" form appears: - Device type* is "-----" (I'm not sure what to put here since I don't think it's relevant in this context) - Module type is pre-selected based on the module type I am adding an interface to - I choose an interface Type (e.g. 100BASE-TX) If I leave Device Type* blank, I get "Device Type field is required" message underneath the Device Type field If I select a Device Type (just to try it), I get "A Component template cannot be associated with both a device type and a module type" message in red in the bottom right. I also tried adding a Power Port component and ran into the same thing. ### Expected Behavior I'm expecting that I won't need to select a Device Type when adding a Component to Module Type. ### Observed Behavior I'm being forced to select a Device Type when adding a Component to Module Type. If I do, I get "A Component template cannot be associated with both a device type and a module type" message in red in the bottom right.
adam added the status: duplicate label 2025-12-29 19:47:35 +01:00
adam closed this issue 2025-12-29 19:47:35 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Sep 16, 2022):

Duplicate of https://github.com/netbox-community/netbox/issues/10383

It is fixed and will be in the next release.

@kkthxbye-code commented on GitHub (Sep 16, 2022): Duplicate of https://github.com/netbox-community/netbox/issues/10383 It is fixed and will be in the next release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6996