Assign existing prefix to VLAN, starting from VLAN view #5152

Closed
opened 2025-12-29 19:24:51 +01:00 by adam · 6 comments
Owner

Originally created by @sdktr on GitHub (Aug 6, 2021).

NetBox version

v2.11.10

Feature type

Change to existing functionality

Proposed functionality

When attaching a prefix to a VLAN there are two routes in the GUI:

  1. Open the prefix and choose a VLAN using the vlan filters OR
  2. Open the VLAN and click 'add prefix'

Scenario 2 closely repeats the workflow for assigning an IP to an interface. In that selector there is an option to assign an already known IP instead of creating a new instance.
Assigning a prefix to a vlan would benefit from an 'assign' option as well.

Use case

When starting from a VLAN, trying to attach an existing prefix requires opening a new set of tabs to look up the prefix and starting the association from there. Attaching an already known prefix would save quite some clicks.

Database changes

N/A

External dependencies

N/A

Originally created by @sdktr on GitHub (Aug 6, 2021). ### NetBox version v2.11.10 ### Feature type Change to existing functionality ### Proposed functionality When attaching a prefix to a VLAN there are two routes in the GUI: 1) Open the prefix and choose a VLAN using the vlan filters OR 2) Open the VLAN and click 'add prefix' Scenario 2 closely repeats the workflow for assigning an IP to an interface. In that selector there is an option to assign an already known IP instead of creating a new instance. Assigning a prefix to a vlan would benefit from an 'assign' option as well. ### Use case When starting from a VLAN, trying to attach an existing prefix requires opening a new set of tabs to look up the prefix and starting the association from there. Attaching an already known prefix would save quite some clicks. ### Database changes N/A ### External dependencies N/A
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 19:24:51 +01:00
adam closed this issue 2025-12-29 19:24:51 +01:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2021):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Nov 9, 2021): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@rhyser9 commented on GitHub (Nov 16, 2021):

I can try implementing this.

Using the existing IP Address Add / Assign setup as an example, it looks like this will involve adding a prefixes/assign URL, PrefixAssignView, PrefixAssignForm, PrefixAssignTable, inc/prefix_edit_header.html, prefix_edit.html, and prefix_assign.html.

@rhyser9 commented on GitHub (Nov 16, 2021): I can try implementing this. Using the existing IP Address Add / Assign setup as an example, it looks like this will involve adding a `prefixes/assign` URL, `PrefixAssignView`, `PrefixAssignForm`, `PrefixAssignTable`, `inc/prefix_edit_header.html`, `prefix_edit.html`, and `prefix_assign.html`.
Author
Owner

@DanSheps commented on GitHub (Nov 17, 2021):

Assigned to you @rhyser9

@DanSheps commented on GitHub (Nov 17, 2021): Assigned to you @rhyser9
Author
Owner

@github-actions[bot] commented on GitHub (Apr 6, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Apr 6, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@AnythingOverIP commented on GitHub (Apr 20, 2023):

Is this something that is or will be addressed in 3.5? It would follow the logic behind other processes (i.e assigning an existing IP to an interface instead of creating a new one).

@AnythingOverIP commented on GitHub (Apr 20, 2023): Is this something that is or will be addressed in 3.5? It would follow the logic behind other processes (i.e assigning an existing IP to an interface instead of creating a new one).
Author
Owner

@jeremystretch commented on GitHub (May 30, 2023):

It doesn't appear that any feasible solution has been offered, so I'm going to close this out. We might revisit this in the future once the UI has been revamped per #12128.

@jeremystretch commented on GitHub (May 30, 2023): It doesn't appear that any feasible solution has been offered, so I'm going to close this out. We might revisit this in the future once the UI has been revamped per #12128.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5152