summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/models.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-11-06 21:23:07 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-11-06 21:23:07 +0000
commit75e2d050496db86c6ed1e4c8ec8c9c9da6341f77 (patch)
tree52d05dda8965c0dbdc94f122c8da1330967ea177 /src/lib/Server/Hostbase/hostbase/models.py
parent23c1f2cc6be9926fdfe85e37869ef88f84b9200e (diff)
downloadbcfg2-75e2d050496db86c6ed1e4c8ec8c9c9da6341f77.tar.gz
bcfg2-75e2d050496db86c6ed1e4c8ec8c9c9da6341f77.tar.bz2
bcfg2-75e2d050496db86c6ed1e4c8ec8c9c9da6341f77.zip
dhcp option is now per interface
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2474 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/models.py')
-rw-r--r--src/lib/Server/Hostbase/hostbase/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/models.py b/src/lib/Server/Hostbase/hostbase/models.py
index 613701685..fb979ff5a 100644
--- a/src/lib/Server/Hostbase/hostbase/models.py
+++ b/src/lib/Server/Hostbase/hostbase/models.py
@@ -45,7 +45,6 @@ class Host(models.Model):
support = models.CharField(maxlength=8, choices=SUPPORT_CHOICES)
csi = models.CharField(maxlength=32, blank=True)
printq = models.CharField(maxlength=32)
- dhcp = models.BooleanField()
outbound_smtp = models.BooleanField()
primary_user = models.EmailField()
administrator = models.EmailField(blank=True)
@@ -66,12 +65,13 @@ class Host(models.Model):
class Interface(models.Model):
TYPE_CHOICES = (
('eth', 'ethernet'), ('wl', 'wireless'), ('virtual', 'virtual'), ('myr', 'myr'),
- ('mgmt', 'mgmt'), ('tape', 'tape'), ('fe', 'fe'), ('ge', 'ge')
+ ('mgmt', 'mgmt'), ('tape', 'tape'), ('fe', 'fe'), ('ge', 'ge'), ('virtual', 'virtual')
)
host = models.ForeignKey(Host, edit_inline=models.TABULAR, num_in_admin=2)
mac_addr = models.CharField(maxlength=32, core=True)
hdwr_type = models.CharField('type', maxlength=16, choices=TYPE_CHOICES,
radio_admin=True, blank=True)
+ dhcp = models.BooleanField()
def __str__(self):
return self.mac_addr