Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mgoetze5 opened this issue Mar 7, 2023 · 3 comments · Fixed by #13386
Closed

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

mgoetze5 opened this issue Mar 7, 2023 · 3 comments · Fixed by #13386
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application

Comments

@mgoetze5
Copy link

mgoetze5 commented Mar 7, 2023

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

@mgoetze5 mgoetze5 added the type: feature Introduction of new functionality to the application label Mar 7, 2023
@jeremystretch jeremystretch added the status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation label Mar 7, 2023
@kkthxbye-code
Copy link
Contributor

@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.

@jeremystretch
Copy link
Member

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

@github-actions
Copy link
Contributor

github-actions bot commented 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 github-actions bot added the pending closure Requires immediate attention to avoid being closed for inactivity label Aug 3, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation pending closure Requires immediate attention to avoid being closed for inactivity labels Aug 4, 2023
@jeremystretch jeremystretch self-assigned this Aug 4, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants