summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Hostbase.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/Plugins/Hostbase.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/Plugins/Hostbase.py')
-rw-r--r--src/lib/Server/Plugins/Hostbase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Hostbase.py b/src/lib/Server/Plugins/Hostbase.py
index 5639359c4..cd9d572b7 100644
--- a/src/lib/Server/Plugins/Hostbase.py
+++ b/src/lib/Server/Plugins/Hostbase.py
@@ -274,7 +274,7 @@ class Hostbase(Plugin):
SELECT hostname, mac_addr, ip_addr
FROM (hostbase_host h INNER JOIN hostbase_interface i ON h.id = i.host_id)
INNER JOIN hostbase_ip ip ON i.id = ip.interface_id
- WHERE h.dhcp=1 AND h.status='active' AND i.mac_addr <> ''
+ WHERE i.dhcp=1 AND h.status='active' AND i.mac_addr <> ''
AND i.mac_addr <> 'float' AND i.mac_addr <> 'unknown'
ORDER BY h.hostname, i.mac_addr
""")