aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorParker Berberian <pberberian@iol.unh.edu>2020-02-06 19:36:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-02-06 19:36:11 +0000
commitcb8561e3758e40c2ec514b6ce5d296c849e894e6 (patch)
tree151e5d5bde6360bf9b11381021325c9f708fde0c /src
parent868dc419abbec2988dfe48cbd9d6f7cf56a48079 (diff)
parent5725c6d5d3bbd7ad97011b84d6bd4aa9bd6b8ab6 (diff)
Merge "Updates Interface Models"
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 4bc9bf3..6386bf3 100644
--- a/src/resource_inventory/models.py
+++ b/src/resource_inventory/models.py
@@ -421,9 +421,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)