-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 device_id and virtual_machine_id to ipam.forms.filtersets.ServiceFilterForm #13951
Comments
Another option for this would be to modify the string definition of the Service model to include the device/vm:
This could obviously get rather lengthy and verbose, depending on the Service properties, but one example might be:
This would need to be searchable too. |
This is incorrect. ServiceFilterSet supports filtering by both device and VM by ID or name. The scope of this FR would be limited to adding these fields to the filter form. |
* adds device and vm to service filter form #13951 * Tweak labels --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
NetBox version
v3.5.7
Feature type
Change to existing functionality
Proposed functionality
I propose to add fields device_id and virtual_machine_id to the ServiceFilterForm class. Currently there's no way to filter a service by the associated device or virtual machine in the web form. The search method also does not include these fields.
The API does support filtering by device and virtual machine.
This feature request can be accomplished by updating the filtersets.py from:
to:
Result:
I could handle this PR if desired and if this request is approved.
Use case
Adding these fields would improve the user experience, align the services model filterset with the IP address model filterset, and provide functionality available in the API to the web filter forms.
Database changes
None
External dependencies
None
The text was updated successfully, but these errors were encountered: