|
@@ -52,6 +52,7 @@ __all__ = (
|
|
|
'SiteType',
|
|
'SiteType',
|
|
|
'SiteGroupType',
|
|
'SiteGroupType',
|
|
|
'VirtualChassisType',
|
|
'VirtualChassisType',
|
|
|
|
|
+ 'VirtualDeviceContextType',
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -90,18 +91,14 @@ class ComponentTemplateObjectType(
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Cable,
|
|
models.Cable,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('color', ), # bug - temp
|
|
|
filters=CableFilter
|
|
filters=CableFilter
|
|
|
)
|
|
)
|
|
|
class CableType(NetBoxObjectType):
|
|
class CableType(NetBoxObjectType):
|
|
|
# a_terminations = graphene.List('dcim.graphql.gfk_mixins.CableTerminationTerminationType')
|
|
# a_terminations = graphene.List('dcim.graphql.gfk_mixins.CableTerminationTerminationType')
|
|
|
# b_terminations = graphene.List('dcim.graphql.gfk_mixins.CableTerminationTerminationType')
|
|
# b_terminations = graphene.List('dcim.graphql.gfk_mixins.CableTerminationTerminationType')
|
|
|
|
|
|
|
|
- class Meta:
|
|
|
|
|
- model = models.Cable
|
|
|
|
|
- fields = '__all__'
|
|
|
|
|
- filterset_class = filtersets.CableFilterSet
|
|
|
|
|
-
|
|
|
|
|
def resolve_type(self, info):
|
|
def resolve_type(self, info):
|
|
|
return self.type or None
|
|
return self.type or None
|
|
|
|
|
|
|
@@ -127,7 +124,8 @@ class CableTerminationType(NetBoxObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ConsolePort,
|
|
models.ConsolePort,
|
|
|
- exclude=('_path',),
|
|
|
|
|
|
|
+ # exclude=('_path',),
|
|
|
|
|
+ exclude=('_path', '_name',), # bug - temp
|
|
|
filters=ConsolePortFilter
|
|
filters=ConsolePortFilter
|
|
|
)
|
|
)
|
|
|
class ConsolePortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
class ConsolePortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
@@ -138,7 +136,8 @@ class ConsolePortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin)
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ConsolePortTemplate,
|
|
models.ConsolePortTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=ConsolePortTemplateFilter
|
|
filters=ConsolePortTemplateFilter
|
|
|
)
|
|
)
|
|
|
class ConsolePortTemplateType(ComponentTemplateObjectType):
|
|
class ConsolePortTemplateType(ComponentTemplateObjectType):
|
|
@@ -149,7 +148,8 @@ class ConsolePortTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ConsoleServerPort,
|
|
models.ConsoleServerPort,
|
|
|
- exclude=('_path',),
|
|
|
|
|
|
|
+ # exclude=('_path',),
|
|
|
|
|
+ exclude=('_path', '_name',), # bug - temp
|
|
|
filters=ConsoleServerPortFilter
|
|
filters=ConsoleServerPortFilter
|
|
|
)
|
|
)
|
|
|
class ConsoleServerPortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
class ConsoleServerPortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
@@ -160,7 +160,8 @@ class ConsoleServerPortType(ComponentObjectType, CabledObjectMixin, PathEndpoint
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ConsoleServerPortTemplate,
|
|
models.ConsoleServerPortTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=ConsoleServerPortTemplateFilter
|
|
filters=ConsoleServerPortTemplateFilter
|
|
|
)
|
|
)
|
|
|
class ConsoleServerPortTemplateType(ComponentTemplateObjectType):
|
|
class ConsoleServerPortTemplateType(ComponentTemplateObjectType):
|
|
@@ -171,7 +172,12 @@ class ConsoleServerPortTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Device,
|
|
models.Device,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=(
|
|
|
|
|
+ '_name', 'console_port_count', 'console_server_port_count', 'power_port_count', 'power_outlet_count',
|
|
|
|
|
+ 'interface_count', 'front_port_count', 'rear_port_count', 'device_bay_count', 'module_bay_count',
|
|
|
|
|
+ 'inventory_item_count'
|
|
|
|
|
+ ), # bug - temp
|
|
|
filters=DeviceFilter
|
|
filters=DeviceFilter
|
|
|
)
|
|
)
|
|
|
class DeviceType(ConfigContextMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
class DeviceType(ConfigContextMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
@@ -185,7 +191,8 @@ class DeviceType(ConfigContextMixin, ImageAttachmentsMixin, ContactsMixin, NetBo
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.DeviceBay,
|
|
models.DeviceBay,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=DeviceBayFilter
|
|
filters=DeviceBayFilter
|
|
|
)
|
|
)
|
|
|
class DeviceBayType(ComponentObjectType):
|
|
class DeviceBayType(ComponentObjectType):
|
|
@@ -194,7 +201,8 @@ class DeviceBayType(ComponentObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.DeviceBayTemplate,
|
|
models.DeviceBayTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=DeviceBayTemplateFilter
|
|
filters=DeviceBayTemplateFilter
|
|
|
)
|
|
)
|
|
|
class DeviceBayTemplateType(ComponentTemplateObjectType):
|
|
class DeviceBayTemplateType(ComponentTemplateObjectType):
|
|
@@ -203,7 +211,7 @@ class DeviceBayTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.InventoryItemTemplate,
|
|
models.InventoryItemTemplate,
|
|
|
- exclude=('component_type', 'component_id'),
|
|
|
|
|
|
|
+ exclude=('component_type', 'component_id', '_name', 'parent'),
|
|
|
filters=InventoryItemTemplateFilter
|
|
filters=InventoryItemTemplateFilter
|
|
|
)
|
|
)
|
|
|
class InventoryItemTemplateType(ComponentTemplateObjectType):
|
|
class InventoryItemTemplateType(ComponentTemplateObjectType):
|
|
@@ -213,7 +221,8 @@ class InventoryItemTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.DeviceRole,
|
|
models.DeviceRole,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('color',), # bug - temp
|
|
|
filters=DeviceRoleFilter
|
|
filters=DeviceRoleFilter
|
|
|
)
|
|
)
|
|
|
class DeviceRoleType(OrganizationalObjectType):
|
|
class DeviceRoleType(OrganizationalObjectType):
|
|
@@ -222,7 +231,13 @@ class DeviceRoleType(OrganizationalObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.DeviceType,
|
|
models.DeviceType,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=(
|
|
|
|
|
+ 'console_port_template_count', 'console_server_port_template_count', 'power_port_template_count',
|
|
|
|
|
+ 'power_outlet_template_count', 'interface_template_count', 'front_port_template_count',
|
|
|
|
|
+ 'rear_port_template_count', 'device_bay_template_count', 'module_bay_template_count',
|
|
|
|
|
+ 'inventory_item_template_count',
|
|
|
|
|
+ ), # bug - temp
|
|
|
filters=DeviceTypeFilter
|
|
filters=DeviceTypeFilter
|
|
|
)
|
|
)
|
|
|
class DeviceTypeType(NetBoxObjectType):
|
|
class DeviceTypeType(NetBoxObjectType):
|
|
@@ -239,7 +254,8 @@ class DeviceTypeType(NetBoxObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.FrontPort,
|
|
models.FrontPort,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name', 'color'), # bug - temp
|
|
|
filters=FrontPortFilter
|
|
filters=FrontPortFilter
|
|
|
)
|
|
)
|
|
|
class FrontPortType(ComponentObjectType, CabledObjectMixin):
|
|
class FrontPortType(ComponentObjectType, CabledObjectMixin):
|
|
@@ -248,7 +264,8 @@ class FrontPortType(ComponentObjectType, CabledObjectMixin):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.FrontPortTemplate,
|
|
models.FrontPortTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name', 'color'), # bug - temp
|
|
|
filters=FrontPortTemplateFilter
|
|
filters=FrontPortTemplateFilter
|
|
|
)
|
|
)
|
|
|
class FrontPortTemplateType(ComponentTemplateObjectType):
|
|
class FrontPortTemplateType(ComponentTemplateObjectType):
|
|
@@ -257,7 +274,8 @@ class FrontPortTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Interface,
|
|
models.Interface,
|
|
|
- exclude=('_path',),
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('mac_address', '_name', 'wwn'), # bug - temp
|
|
|
filters=InterfaceFilter
|
|
filters=InterfaceFilter
|
|
|
)
|
|
)
|
|
|
class InterfaceType(IPAddressesMixin, ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
class InterfaceType(IPAddressesMixin, ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
@@ -280,7 +298,8 @@ class InterfaceType(IPAddressesMixin, ComponentObjectType, CabledObjectMixin, Pa
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.InterfaceTemplate,
|
|
models.InterfaceTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=InterfaceTemplateFilter
|
|
filters=InterfaceTemplateFilter
|
|
|
)
|
|
)
|
|
|
class InterfaceTemplateType(ComponentTemplateObjectType):
|
|
class InterfaceTemplateType(ComponentTemplateObjectType):
|
|
@@ -297,7 +316,7 @@ class InterfaceTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.InventoryItem,
|
|
models.InventoryItem,
|
|
|
- exclude=('component_type', 'component_id'),
|
|
|
|
|
|
|
+ exclude=('component_type', 'component_id', '_name', 'parent'),
|
|
|
filters=InventoryItemFilter
|
|
filters=InventoryItemFilter
|
|
|
)
|
|
)
|
|
|
class InventoryItemType(ComponentObjectType):
|
|
class InventoryItemType(ComponentObjectType):
|
|
@@ -307,7 +326,8 @@ class InventoryItemType(ComponentObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.InventoryItemRole,
|
|
models.InventoryItemRole,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('color', '_name'), # bug - temp
|
|
|
filters=InventoryItemRoleFilter
|
|
filters=InventoryItemRoleFilter
|
|
|
)
|
|
)
|
|
|
class InventoryItemRoleType(OrganizationalObjectType):
|
|
class InventoryItemRoleType(OrganizationalObjectType):
|
|
@@ -316,7 +336,8 @@ class InventoryItemRoleType(OrganizationalObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Location,
|
|
models.Location,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('parent',), # bug - temp
|
|
|
filters=LocationFilter
|
|
filters=LocationFilter
|
|
|
)
|
|
)
|
|
|
class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, OrganizationalObjectType):
|
|
class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, OrganizationalObjectType):
|
|
@@ -343,7 +364,8 @@ class ModuleType(ComponentObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ModuleBay,
|
|
models.ModuleBay,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=ModuleBayFilter
|
|
filters=ModuleBayFilter
|
|
|
)
|
|
)
|
|
|
class ModuleBayType(ComponentObjectType):
|
|
class ModuleBayType(ComponentObjectType):
|
|
@@ -352,7 +374,8 @@ class ModuleBayType(ComponentObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.ModuleBayTemplate,
|
|
models.ModuleBayTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=ModuleBayTemplateFilter
|
|
filters=ModuleBayTemplateFilter
|
|
|
)
|
|
)
|
|
|
class ModuleBayTemplateType(ComponentTemplateObjectType):
|
|
class ModuleBayTemplateType(ComponentTemplateObjectType):
|
|
@@ -390,7 +413,8 @@ class PowerFeedType(NetBoxObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.PowerOutlet,
|
|
models.PowerOutlet,
|
|
|
- exclude=('_path',),
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=PowerOutletFilter
|
|
filters=PowerOutletFilter
|
|
|
)
|
|
)
|
|
|
class PowerOutletType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
class PowerOutletType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
@@ -404,7 +428,8 @@ class PowerOutletType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin)
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.PowerOutletTemplate,
|
|
models.PowerOutletTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=PowerOutletTemplateFilter
|
|
filters=PowerOutletTemplateFilter
|
|
|
)
|
|
)
|
|
|
class PowerOutletTemplateType(ComponentTemplateObjectType):
|
|
class PowerOutletTemplateType(ComponentTemplateObjectType):
|
|
@@ -427,7 +452,7 @@ class PowerPanelType(NetBoxObjectType, ContactsMixin):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.PowerPort,
|
|
models.PowerPort,
|
|
|
- exclude=('_path',),
|
|
|
|
|
|
|
+ exclude=('_path', '_name'),
|
|
|
filters=PowerPortFilter
|
|
filters=PowerPortFilter
|
|
|
)
|
|
)
|
|
|
class PowerPortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
class PowerPortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
@@ -438,7 +463,8 @@ class PowerPortType(ComponentObjectType, CabledObjectMixin, PathEndpointMixin):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.PowerPortTemplate,
|
|
models.PowerPortTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=PowerPortTemplateFilter
|
|
filters=PowerPortTemplateFilter
|
|
|
)
|
|
)
|
|
|
class PowerPortTemplateType(ComponentTemplateObjectType):
|
|
class PowerPortTemplateType(ComponentTemplateObjectType):
|
|
@@ -449,7 +475,8 @@ class PowerPortTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Rack,
|
|
models.Rack,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name',), # bug - temp
|
|
|
filters=RackFilter
|
|
filters=RackFilter
|
|
|
)
|
|
)
|
|
|
class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
@@ -466,7 +493,8 @@ class RackType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.RackReservation,
|
|
models.RackReservation,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('units',), # bug - temp
|
|
|
filters=RackReservationFilter
|
|
filters=RackReservationFilter
|
|
|
)
|
|
)
|
|
|
class RackReservationType(NetBoxObjectType):
|
|
class RackReservationType(NetBoxObjectType):
|
|
@@ -475,7 +503,8 @@ class RackReservationType(NetBoxObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.RackRole,
|
|
models.RackRole,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('color',), # bug - temp
|
|
|
filters=RackRoleFilter
|
|
filters=RackRoleFilter
|
|
|
)
|
|
)
|
|
|
class RackRoleType(OrganizationalObjectType):
|
|
class RackRoleType(OrganizationalObjectType):
|
|
@@ -484,7 +513,8 @@ class RackRoleType(OrganizationalObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.RearPort,
|
|
models.RearPort,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name', 'color'), # bug - temp
|
|
|
filters=RearPortFilter
|
|
filters=RearPortFilter
|
|
|
)
|
|
)
|
|
|
class RearPortType(ComponentObjectType, CabledObjectMixin):
|
|
class RearPortType(ComponentObjectType, CabledObjectMixin):
|
|
@@ -493,7 +523,8 @@ class RearPortType(ComponentObjectType, CabledObjectMixin):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.RearPortTemplate,
|
|
models.RearPortTemplate,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name', 'color'), # bug - temp
|
|
|
filters=RearPortTemplateFilter
|
|
filters=RearPortTemplateFilter
|
|
|
)
|
|
)
|
|
|
class RearPortTemplateType(ComponentTemplateObjectType):
|
|
class RearPortTemplateType(ComponentTemplateObjectType):
|
|
@@ -502,7 +533,8 @@ class RearPortTemplateType(ComponentTemplateObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Region,
|
|
models.Region,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('parent',), # bug - temp
|
|
|
filters=RegionFilter
|
|
filters=RegionFilter
|
|
|
)
|
|
)
|
|
|
class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
@@ -511,7 +543,8 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.Site,
|
|
models.Site,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('_name', 'time_zone'), # bug - temp
|
|
|
filters=SiteFilter
|
|
filters=SiteFilter
|
|
|
)
|
|
)
|
|
|
class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObjectType):
|
|
@@ -521,7 +554,8 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.SiteGroup,
|
|
models.SiteGroup,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('parent',), # bug - temp
|
|
|
filters=SiteGroupFilter
|
|
filters=SiteGroupFilter
|
|
|
)
|
|
)
|
|
|
class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
@@ -530,7 +564,8 @@ class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
|
|
|
|
|
|
|
@strawberry_django.type(
|
|
@strawberry_django.type(
|
|
|
models.VirtualChassis,
|
|
models.VirtualChassis,
|
|
|
- fields='__all__',
|
|
|
|
|
|
|
+ # fields='__all__',
|
|
|
|
|
+ exclude=('member_count',), # bug - temp
|
|
|
filters=VirtualChassisFilter
|
|
filters=VirtualChassisFilter
|
|
|
)
|
|
)
|
|
|
class VirtualChassisType(NetBoxObjectType):
|
|
class VirtualChassisType(NetBoxObjectType):
|