mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add ip_addresses relation on InterfaceType, VMInterfaceType
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from ipam.graphql.mixins import IPAddressesMixin
|
||||
from virtualization import filtersets, models
|
||||
from netbox.graphql.types import ObjectType, TaggedObjectType
|
||||
|
||||
@@ -42,7 +43,7 @@ class VirtualMachineType(TaggedObjectType):
|
||||
filterset_class = filtersets.VirtualMachineFilterSet
|
||||
|
||||
|
||||
class VMInterfaceType(TaggedObjectType):
|
||||
class VMInterfaceType(IPAddressesMixin, TaggedObjectType):
|
||||
|
||||
class Meta:
|
||||
model = models.VMInterface
|
||||
|
Reference in New Issue
Block a user