From 829bae6b29a7e3481abc7d58f54736ad17c6b68d Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 14 May 2024 08:03:06 -0400 Subject: [PATCH] Fixes #16124: Fix GraphQL API support for querying virtual machine interfaces --- netbox/virtualization/graphql/types.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netbox/virtualization/graphql/types.py b/netbox/virtualization/graphql/types.py index 8c19e1f1b..2d872322b 100644 --- a/netbox/virtualization/graphql/types.py +++ b/netbox/virtualization/graphql/types.py @@ -84,7 +84,7 @@ class VirtualMachineType(ConfigContextMixin, ContactsMixin, NetBoxObjectType): primary_ip4: Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')] | None primary_ip6: Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')] | None - interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]] + interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]] services: List[Annotated["ServiceType", strawberry.lazy('ipam.graphql.types')]] virtualdisks: List[Annotated["VirtualDiskType", strawberry.lazy('virtualization.graphql.types')]] @@ -102,8 +102,8 @@ class VMInterfaceType(IPAddressesMixin, ComponentType): vrf: Annotated["VRFType", strawberry.lazy('ipam.graphql.types')] | None tagged_vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]] - bridge_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]] - child_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]] + bridge_interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]] + child_interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]] @strawberry_django.type(