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

Add label to *ports models

This commit is contained in:
Jonathan Senecal
2020-06-05 10:32:59 -04:00
parent f8851121ab
commit a06d74472d
3 changed files with 93 additions and 0 deletions

View File

@@ -69,6 +69,11 @@ class ConsolePortTemplate(ComponentTemplateModel):
max_length=100,
blank=True
)
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console port"
)
type = models.CharField(
max_length=50,
choices=ConsolePortTypeChoices,
@@ -107,6 +112,11 @@ class ConsoleServerPortTemplate(ComponentTemplateModel):
max_length=100,
blank=True
)
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console server port"
)
type = models.CharField(
max_length=50,
choices=ConsolePortTypeChoices,
@@ -145,6 +155,11 @@ class PowerPortTemplate(ComponentTemplateModel):
max_length=100,
blank=True
)
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power supply port"
)
type = models.CharField(
max_length=50,
choices=PowerPortTypeChoices,
@@ -197,6 +212,11 @@ class PowerOutletTemplate(ComponentTemplateModel):
max_length=100,
blank=True
)
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power outlet"
)
type = models.CharField(
max_length=50,
choices=PowerOutletTypeChoices,