1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

40 lines
1.1 KiB
Python
Raw Normal View History

2021-06-25 10:14:35 -04:00
import graphene
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class IPAMQuery(graphene.ObjectType):
aggregate = ObjectField(AggregateType)
aggregate_list = ObjectListField(AggregateType)
2021-06-25 10:14:35 -04:00
ip_address = ObjectField(IPAddressType)
ip_address_list = ObjectListField(IPAddressType)
2021-06-25 10:14:35 -04:00
2021-07-16 09:15:19 -04:00
ip_range = ObjectField(IPRangeType)
ip_range_list = ObjectListField(IPRangeType)
2021-06-25 10:14:35 -04:00
prefix = ObjectField(PrefixType)
prefix_list = ObjectListField(PrefixType)
2021-06-25 10:14:35 -04:00
rir = ObjectField(RIRType)
rir_list = ObjectListField(RIRType)
2021-06-25 10:14:35 -04:00
role = ObjectField(RoleType)
role_list = ObjectListField(RoleType)
2021-06-25 10:14:35 -04:00
route_target = ObjectField(RouteTargetType)
route_target_list = ObjectListField(RouteTargetType)
2021-06-25 10:14:35 -04:00
service = ObjectField(ServiceType)
service_list = ObjectListField(ServiceType)
2021-06-25 10:14:35 -04:00
vlan = ObjectField(VLANType)
vlan_list = ObjectListField(VLANType)
2021-06-25 10:14:35 -04:00
vlan_group = ObjectField(VLANGroupType)
vlan_group_list = ObjectListField(VLANGroupType)
2021-06-25 10:14:35 -04:00
vrf = ObjectField(VRFType)
vrf_list = ObjectListField(VRFType)