1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
2022-06-29 16:01:20 -05:00

58 lines
1.7 KiB
Python

import graphene
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class IPAMQuery(graphene.ObjectType):
asn = ObjectField(ASNType)
asn_list = ObjectListField(ASNType)
aggregate = ObjectField(AggregateType)
aggregate_list = ObjectListField(AggregateType)
ip_address = ObjectField(IPAddressType)
ip_address_list = ObjectListField(IPAddressType)
ip_range = ObjectField(IPRangeType)
ip_range_list = ObjectListField(IPRangeType)
l2vpn = ObjectField(L2VPNType)
l2vpn_list = ObjectListField(L2VPNType)
l2vpn_termination = ObjectField(L2VPNTerminationType)
l2vpn_termination_list = ObjectListField(L2VPNTerminationType)
prefix = ObjectField(PrefixType)
prefix_list = ObjectListField(PrefixType)
rir = ObjectField(RIRType)
rir_list = ObjectListField(RIRType)
role = ObjectField(RoleType)
role_list = ObjectListField(RoleType)
route_target = ObjectField(RouteTargetType)
route_target_list = ObjectListField(RouteTargetType)
service = ObjectField(ServiceType)
service_list = ObjectListField(ServiceType)
service_template = ObjectField(ServiceTemplateType)
service_template_list = ObjectListField(ServiceTemplateType)
fhrp_group = ObjectField(FHRPGroupType)
fhrp_group_list = ObjectListField(FHRPGroupType)
fhrp_group_assignment = ObjectField(FHRPGroupAssignmentType)
fhrp_group_assignment_list = ObjectListField(FHRPGroupAssignmentType)
vlan = ObjectField(VLANType)
vlan_list = ObjectListField(VLANType)
vlan_group = ObjectField(VLANGroupType)
vlan_group_list = ObjectListField(VLANGroupType)
vrf = ObjectField(VRFType)
vrf_list = ObjectListField(VRFType)