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

Enable attachment of wireless interfaces to SSIDs

This commit is contained in:
jeremystretch
2021-10-12 13:48:06 -04:00
parent 8b80b0c3df
commit 38f6d22d2d
9 changed files with 63 additions and 11 deletions

View File

@@ -1,7 +1,8 @@
from django.db import models
from django.urls import reverse
from extras.utils import extras_features
from netbox.models import PrimaryModel
from netbox.models import BigIDModel, PrimaryModel
from utilities.querysets import RestrictedQuerySet
__all__ = (
@@ -9,6 +10,10 @@ __all__ = (
)
#
# SSIDs
#
@extras_features('custom_fields', 'custom_links', 'export_templates', 'tags', 'webhooks')
class SSID(PrimaryModel):
"""
@@ -38,3 +43,6 @@ class SSID(PrimaryModel):
def __str__(self):
return self.name
def get_absolute_url(self):
return reverse('wireless:ssid', args=[self.pk])