-
Notifications
You must be signed in to change notification settings - Fork 253
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 Missing Model Fields to Virtualization Filter Sets #1938
Add Missing Model Fields to Virtualization Filter Sets #1938
Conversation
add relevant testcase
The changes here don't seem to align with the gaps identified in https://gist.github.com/jathanism/7c585954da4cb1a54997be31991cdaac#virtualization? |
…ged and untagged vlan
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
…ilterset_model_fields' into timizuo_missing_virtualization_filterset_model_fields
@@ -202,21 +303,74 @@ class VMInterfaceFilterSet(BaseFilterSet, StatusModelFilterSetMixin, CustomField | |||
to_field_name="name", | |||
label="Virtual machine", | |||
) | |||
parent_interface_id = django_filters.ModelMultipleChoiceFilter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since #1981 didn't remove parent_interface_id
and bridge_id
from InterfaceFilterSet
, we should either leave them in here for now to be self-consistent, or remove them from there as well as a part of this PR.
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
Closes: #1735
What's Changed
Fields added:
Virtualization
ClusterFilterSet
Missing fields
comments
devices
(reverse related)has_devices
virtual_machines
(reverse related)has_virtual_machines
Incorrect fields
tag
->tags
ClusterTypeFilterSet
Missing fields
clusters
(reverse related)has_clusters
ClusterGroupFilterSet
Missing fields
clusters
(reverse related)has_clusters
VirtualMachineFilterSet
Missing fields
comments
primary_ip4
primary_ip6
services
(reverse related)has_services
interfaces
(reverse related)has_interfaces
VMInterfaceFilterSet
Missing fields
description
untagged_vlan
tagged_vlans
ip_addresses
mode
Incorrect fields
tag
->tags
Create
filter_address_in()
method inIPAddressQuerySet
to filter IPAddress by a list of addressAdded relevant test case
TODO