mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
import graphene
|
|
|
|
from netbox.graphql.fields import ObjectField, ObjectListField
|
|
from .types import *
|
|
|
|
|
|
class IPAMQuery(graphene.ObjectType):
|
|
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)
|
|
|
|
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)
|
|
|
|
vlan = ObjectField(VLANType)
|
|
vlan_list = ObjectListField(VLANType)
|
|
|
|
vlan_group = ObjectField(VLANGroupType)
|
|
vlan_group_list = ObjectListField(VLANGroupType)
|
|
|
|
vrf = ObjectField(VRFType)
|
|
vrf_list = ObjectListField(VRFType)
|