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,4 +1,5 @@
|
||||
from dcim import filtersets, models
|
||||
from ipam.graphql.mixins import IPAddressesMixin
|
||||
from netbox.graphql.types import BaseObjectType, ObjectType, TaggedObjectType
|
||||
|
||||
__all__ = (
|
||||
@@ -158,7 +159,7 @@ class FrontPortTemplateType(BaseObjectType):
|
||||
filterset_class = filtersets.FrontPortTemplateFilterSet
|
||||
|
||||
|
||||
class InterfaceType(TaggedObjectType):
|
||||
class InterfaceType(IPAddressesMixin, TaggedObjectType):
|
||||
|
||||
class Meta:
|
||||
model = models.Interface
|
||||
|
||||
Reference in New Issue
Block a user