aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/resource_inventory/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resource_inventory/models.py b/src/resource_inventory/models.py
index d152698..d4b8e83 100644
--- a/src/resource_inventory/models.py
+++ b/src/resource_inventory/models.py
@@ -429,9 +429,9 @@ class Interface(models.Model):
id = models.AutoField(primary_key=True)
mac_address = models.CharField(max_length=17)
bus_address = models.CharField(max_length=50)
- name = models.CharField(max_length=100, default="eth0")
config = models.ManyToManyField(Vlan)
host = models.ForeignKey(Host, on_delete=models.CASCADE, related_name='interfaces')
+ profile = models.ForeignKey(InterfaceProfile, on_delete=models.CASCADE)
def __str__(self):
return self.mac_address + " on host " + str(self.host)