]> andersk Git - moira.git/commitdiff
Make ghbh (get_host_by_hwaddr) work.
authorzacheiss <zacheiss>
Wed, 18 Oct 2000 19:20:44 +0000 (19:20 +0000)
committerzacheiss <zacheiss>
Wed, 18 Oct 2000 19:20:44 +0000 (19:20 +0000)
server/queries2.c

index f69616aa5d417f721655a645f643f5c566fd1f7d..4deca9399416ad4a43c24ef874bb173ed08d3617 100644 (file)
@@ -775,6 +775,14 @@ static char *ghst_fields[] = {
   "inuse", "modtime", "modby", "modwith",
 };
 
+static char *ghbh_fields[] = {
+  "hwaddr",
+  "name", "vendor", "model", "os", "location", "contact", "use",
+  "status", "status_change", "network", "address", "ace_type",
+  "ace_name", "admin_comment", "ops_comment", "created", "creator",
+  "inuse", "modtime", "modby", "modwith",
+};
+
 static struct validate ghst_validate = {
   0,
   0,
@@ -3902,12 +3910,12 @@ struct query Queries[] = {
     "m",
     MACHINE_TABLE,
     "m.name, m.vendor, m.model, m.os, m.location, m.contact, m.use, m.status, TO_CHAR(m.statuschange, 'DD-mon-YYYY HH24:MI:SS'), s.name, m.address, m.owner_type, m.owner_id, m.acomment, m.ocomment, TO_CHAR(m.created, 'DD-mon-YYYY HH24:MI:SS'), m.creator, TO_CHAR(m.inuse, 'DD-mon-YYYY HH24:MI:SS'), TO_CHAR(m.modtime, 'DD-mon-YYYY HH24:MI:SS'), m.modby, m.modwith FROM machine m, subnet s",
-    ghst_fields,
+    ghbh_fields,
     21,
     "m.hwaddr LIKE LOWER('%s') AND m.mach_id != 0 AND s.snet_id = m.snet_id",
     1,
     "m.name",
-    NULL,
+    &ghst_validate,
   },
 
   {
This page took 0.05182 seconds and 5 git commands to generate.