]> andersk Git - moira.git/commitdiff
Don't output hosts that aren't status 1 or that have address 'unassigned'.
authorzacheiss <zacheiss>
Thu, 4 Dec 2003 19:50:40 +0000 (19:50 +0000)
committerzacheiss <zacheiss>
Thu, 4 Dec 2003 19:50:40 +0000 (19:50 +0000)
gen/dhcp.pc

index ebdfba55a37664dc8f6006ecfd2b37586bce7258..2250a2eeb10bdbdcbc3496fac59b7685727783f6 100644 (file)
@@ -96,6 +96,7 @@ int main(int argc, char **argv)
     FROM printers pr, machine m, machine m2
     WHERE pr.type != 'ALIAS' AND pr.mach_id != 0
     AND pr.mach_id = m.mach_id AND pr.loghost = m2.mach_id
+    AND m.status = 1 AND m.address != 'unassigned'
     ORDER BY m.hwaddr;
   EXEC SQL OPEN csr_boot;
   while (1)
This page took 0.040551 seconds and 5 git commands to generate.