|
|
@@ -2,6 +2,7 @@ from ipam import filtersets, models
|
|
|
from netbox.graphql.types import OrganizationalObjectType, PrimaryObjectType
|
|
|
|
|
|
__all__ = (
|
|
|
+ 'ASNType',
|
|
|
'AggregateType',
|
|
|
'IPAddressType',
|
|
|
'IPRangeType',
|
|
|
@@ -16,6 +17,14 @@ __all__ = (
|
|
|
)
|
|
|
|
|
|
|
|
|
+class ASNType(PrimaryObjectType):
|
|
|
+
|
|
|
+ class Meta:
|
|
|
+ model = models.ASN
|
|
|
+ fields = '__all__'
|
|
|
+ filterset_class = filtersets.ASNFilterSet
|
|
|
+
|
|
|
+
|
|
|
class AggregateType(PrimaryObjectType):
|
|
|
|
|
|
class Meta:
|