"Add child interface" button should inherit VDC from parent #7729

Closed
opened 2025-12-29 20:27:35 +01:00 by adam · 3 comments
Owner

Originally created by @mgoetze5 on GitHub (Mar 7, 2023).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.4.5

Feature type

Change to existing functionality

Proposed functionality

When using the "add child interface" button, either from an interface or a table of interfaces from a device or VDC, the form should be prefilled with the VDC(s) of the parent interface, if any.

Use case

It seems rather unlikely that if a parent interface is already in a VDC the child interface would not also be in the same VDC, so this should save clicks in the vast majority of cases.

Database changes

None

External dependencies

No response

Originally created by @mgoetze5 on GitHub (Mar 7, 2023). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.4.5 ### Feature type Change to existing functionality ### Proposed functionality When using the "add child interface" button, either from an interface or a table of interfaces from a device or VDC, the form should be prefilled with the VDC(s) of the parent interface, if any. ### Use case It seems rather unlikely that if a parent interface is already in a VDC the child interface would not also be in the same VDC, so this should save clicks in the vast majority of cases. ### Database changes None ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:27:35 +01:00
adam closed this issue 2025-12-29 20:27:36 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Mar 10, 2023):

@jeremystretch - What's the best way to do this? Are we doing it anywhere else for other many to many fields? If we want to built it into the template, we need to generate the following in the url:

vdcs=1&vdcs=2&vcds=3 from the many to many field.

I guess we could do a loop in the template to built it or a templatetag.

@kkthxbye-code commented on GitHub (Mar 10, 2023): @jeremystretch - What's the best way to do this? Are we doing it anywhere else for other many to many fields? If we want to built it into the template, we need to generate the following in the url: `vdcs=1&vdcs=2&vcds=3` from the many to many field. I guess we could do a loop in the template to built it or a templatetag.
Author
Owner

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

I don't have a great answer for the "how." Seems like it would be messy to implement in the template alone.

@jeremystretch commented on GitHub (May 4, 2023): I don't have a great answer for the "how." Seems like it would be messy to implement in the template alone.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 3, 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 (Aug 3, 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).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7729