summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/models.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-09-07 19:46:18 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-09-07 19:46:18 +0000
commitd2407fc1c39c270dc2c2aa8d216706260ee2fe4d (patch)
tree2167fcb121b00de59081f2aac9caa6fda5821ca0 /src/lib/Server/Hostbase/hostbase/models.py
parentfbde04178a68b3e785785c7b793c2362f45cd457 (diff)
downloadbcfg2-d2407fc1c39c270dc2c2aa8d216706260ee2fe4d.tar.gz
bcfg2-d2407fc1c39c270dc2c2aa8d216706260ee2fe4d.tar.bz2
bcfg2-d2407fc1c39c270dc2c2aa8d216706260ee2fe4d.zip
updated for use with apache
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2222 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/models.py')
-rw-r--r--src/lib/Server/Hostbase/hostbase/models.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/models.py b/src/lib/Server/Hostbase/hostbase/models.py
index 6253a7b50..92bbb4b00 100644
--- a/src/lib/Server/Hostbase/hostbase/models.py
+++ b/src/lib/Server/Hostbase/hostbase/models.py
@@ -19,6 +19,25 @@ class Host(models.Model):
('operations','operations'),('guest','guest'),
('confidential','confidential'),('public','public')
)
+ WHATAMI_CHOICES = (
+ ('aix-3', 'aix-3'), ('aix-4', 'aix-4'),
+ ('aix-5', 'aix-5'), ('baytech', 'baytech'),
+ ('decserver', 'decserver'), ('dialup', 'dialup'),
+ ('dos', 'dos'), ('freebsd', 'freebsd'),
+ ('hpux', 'hpux'), ('irix-5', 'irix-5'),
+ ('irix-6', 'irix-6'), ('linux', 'linux'),
+ ('linux-2', 'linux-2'), ('linux-rh73', 'linux-rh73'),
+ ('linux-rh80', 'linux-rh80'), ('linux-sles80', 'linux-sles80'),
+ ('linux-sles80-64', 'linux-sles80-64'), ('linux-sles80-ia32', 'linux-sles80-ia32'),
+ ('linux-sles80-ia64', 'linux-sles80-ia64'), ('mac', 'mac'),
+ ('network', 'network'), ('next', 'next'),
+ ('none', 'none'), ('osf', 'osf'), ('printer', 'printer'),
+ ('robot', 'robot'), ('solaris-2', 'solaris-2'),
+ ('sun4', 'sun4'), ('unknown', 'unknown'), ('virtual', 'virtual'),
+ ('win31', 'win31'), ('win95', 'win95'),
+ ('winNTs', 'winNTs'), ('winNTw', 'winNTw'),
+ ('win2k', 'win2k'), ('winXP', 'winXP'), ('xterm', 'xterm')
+ )
hostname = models.CharField(maxlength=64)
whatami = models.CharField(maxlength=16)
netgroup = models.CharField(maxlength=32, choices=NETGROUP_CHOICES)