Add label to interface models

This commit is contained in:
Jonathan Senecal
2020-06-04 16:44:25 -04:00
parent 56f6698ba5
commit cde1db4436
3 changed files with 33 additions and 0 deletions

View File

@@ -605,6 +605,11 @@ class Interface(CableTermination, ComponentModel):
max_length=100,
blank=True
)
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this interface"
)
_connected_interface = models.OneToOneField(
to='self',
on_delete=models.SET_NULL,