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

Add the enabled filed to InterfaceTemplate

This commit is contained in:
kkthxbye
2023-01-09 09:01:14 +01:00
committed by jeremystretch
parent 1a2dae3471
commit 8e94eb67d2
10 changed files with 47 additions and 8 deletions

View File

@@ -174,6 +174,7 @@ class PowerOutletTemplateTable(ComponentTemplateTable):
class InterfaceTemplateTable(ComponentTemplateTable):
enabled = columns.BooleanColumn()
mgmt_only = columns.BooleanColumn(
verbose_name='Management Only'
)
@@ -184,7 +185,7 @@ class InterfaceTemplateTable(ComponentTemplateTable):
class Meta(ComponentTemplateTable.Meta):
model = models.InterfaceTemplate
fields = ('pk', 'name', 'label', 'mgmt_only', 'type', 'description', 'poe_mode', 'poe_type', 'actions')
fields = ('pk', 'name', 'label', 'enabled', 'mgmt_only', 'type', 'description', 'poe_mode', 'poe_type', 'actions')
empty_text = "None"