Skip to content

Commit afac691

Browse files
committed
Fixes #16124: Fix GraphQL API support for querying virtual machine interfaces
1 parent b67eda4 commit afac691

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

netbox/virtualization/graphql/types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class VirtualMachineType(ConfigContextMixin, ContactsMixin, NetBoxObjectType):
8484
primary_ip4: Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')] | None
8585
primary_ip6: Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')] | None
8686

87-
interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
87+
interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]]
8888
services: List[Annotated["ServiceType", strawberry.lazy('ipam.graphql.types')]]
8989
virtualdisks: List[Annotated["VirtualDiskType", strawberry.lazy('virtualization.graphql.types')]]
9090

@@ -102,8 +102,8 @@ class VMInterfaceType(IPAddressesMixin, ComponentType):
102102
vrf: Annotated["VRFType", strawberry.lazy('ipam.graphql.types')] | None
103103

104104
tagged_vlans: List[Annotated["VLANType", strawberry.lazy('ipam.graphql.types')]]
105-
bridge_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
106-
child_interfaces: List[Annotated["InterfaceType", strawberry.lazy('dcim.graphql.types')]]
105+
bridge_interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]]
106+
child_interfaces: List[Annotated["VMInterfaceType", strawberry.lazy('virtualization.graphql.types')]]
107107

108108

109109
@strawberry_django.type(

0 commit comments

Comments
 (0)