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

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

24
netbox/wireless/tables.py Normal file
View File

@@ -0,0 +1,24 @@
import django_tables2 as tables
from .models import SSID
from utilities.tables import BaseTable, TagColumn, ToggleColumn
__all__ = (
'SSIDTable',
)
class SSIDTable(BaseTable):
pk = ToggleColumn()
id = tables.Column(
linkify=True,
verbose_name='ID'
)
tags = TagColumn(
url_name='dcim:cable_list'
)
class Meta(BaseTable.Meta):
model = SSID
fields = ('pk', 'id', 'name', 'description', 'vlan')
default_columns = ('pk', 'name', 'description', 'vlan')