Introduce the wireless app and SSID model

This commit is contained in:
jeremystretch
2021-10-12 12:27:12 -04:00
parent 8e1535f7ec
commit 8b80b0c3df
28 changed files with 470 additions and 0 deletions

View File

View File

@@ -0,0 +1,9 @@
import graphene
from netbox.graphql.fields import ObjectField, ObjectListField
from .types import *
class WirelessQuery(graphene.ObjectType):
ssid = ObjectField(SSIDType)
ssid_list = ObjectListField(SSIDType)

View File

@@ -0,0 +1,14 @@
from wireless import filtersets, models
from netbox.graphql.types import ObjectType
__all__ = (
'SSIDType',
)
class SSIDType(ObjectType):
class Meta:
model = models.SSID
fields = '__all__'
filterset_class = filtersets.SSIDFilterSet