Force Interface creation before allowing IP assignment #371

Closed
opened 2025-12-29 16:21:25 +01:00 by adam · 1 comment
Owner

Originally created by @LordBoBCUP on GitHub (Aug 18, 2016).

I've noticed, when trying to assign an IP address to a device, if there are no interfaces assigned to it, you are still able to load the assign IP form. You can enter in the IP, VRF etc, and when you click create it prompts you to select an interface of which there are none. There should be logic either flagging a warning, or, forcing you to the add interface page if there isn't at least 1 free interface that the IP can be assigned to when you first click on the add IP address button on the device view page. This is in v1.5.1.

Originally created by @LordBoBCUP on GitHub (Aug 18, 2016). I've noticed, when trying to assign an IP address to a device, if there are no interfaces assigned to it, you are still able to load the assign IP form. You can enter in the IP, VRF etc, and when you click create it prompts you to select an interface of which there are none. There should be logic either flagging a warning, or, forcing you to the add interface page if there isn't at least 1 free interface that the IP can be assigned to when you first click on the add IP address button on the device view page. This is in v1.5.1.
adam added the type: feature label 2025-12-29 16:21:25 +01:00
adam closed this issue 2025-12-29 16:21:25 +01:00
Author
Owner

@iamdadmin commented on GitHub (Sep 2, 2016):

There are several places when the same check could be added; just a few examples:

  1. Add a device type before device.
  2. Add a manufacturer before a device type.
  3. Anywhere else you have a required field from a user created table.
@iamdadmin commented on GitHub (Sep 2, 2016): There are several places when the same check could be added; just a few examples: 1. Add a device type before device. 2. Add a manufacturer before a device type. 3. Anywhere else you have a required field from a user created table.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#371