int access_filesys();
int access_host();
int access_ahal();
+int access_snt();
/* Query Setup Routines */
int prefetch_value();
};
static char *ghst_fields[] = {
- NAME, ADDRESS, "location", "contact",
- NAME, "vendor", "model", "os", "location", "contact", "use", "status", "status_change", SUBNET, ADDRESS, ACE_TYPE, ACE_NAME, "admin_comment", "ops_comment", "created", "creator", "inuse", MOD1, MOD2, MOD3,
+ NAME, ADDRESS, "location", "network",
+ NAME, "vendor", "model", "os", "location", "contact", "use", "status", "status_change", "network", ADDRESS, ACE_TYPE, ACE_NAME, "admin_comment", "ops_comment", "created", "creator", "inuse", MOD1, MOD2, MOD3,
};
static struct valobj ghst_valobj[] = {
0,
0,
0,
- 0,
+ access_ahal,
0,
0,
};
0,
0,
0,
- 0,
+ access_snt,
0,
followup_gsnt,
};
asnt_valobj,
4,
NAME,
- "name = uppercase(LEFT('%s',SIZE(name))) OR description = '__'+'%s' OR saddr = '%s'",
- 3,
+ "name = uppercase(LEFT('%s',SIZE(name)))",
+ 1,
SNET_ID,
0,
prefetch_value,
usnt_valobj,
5,
NAME,
- "snet_id = %d OR description = '__'+'%s' OR description = '__'+'%s' OR saddr = '%s'",
- 4,
+ "snet_id = %d",
+ 1,
SNET_ID,
0,
0,
"CHAR(m.name), m.vendor, m.model, m.os, m.location, m.contact, CHAR(m.use), CHAR(m.status), CHAR(m.statuschange), CHAR(s.name), m.address, m.owner_type, CHAR(m.owner_id), CHAR(m.acomment), CHAR(m.ocomment), CHAR(m.created), CHAR(m.creator), CHAR(m.inuse), CHAR(m.modtime), CHAR(m.modby), m.modwith FROM machine m, subnet s",
ghst_fields,
21,
- "m.name LIKE '%s' ESCAPE '*' AND m.address LIKE '%s' ESCAPE '*' AND m.location LIKE '%s' ESCAPE '*' AND m.contact LIKE '%s' ESCAPE '*' AND m.mach_id != 0 AND s.snet_id = m.snet_id",
+ "m.name LIKE '%s' ESCAPE '*' AND m.address LIKE '%s' ESCAPE '*' AND m.location LIKE '%s' ESCAPE '*' AND s.name LIKE '%s' ESCAPE '*' AND m.mach_id != 0 AND s.snet_id = m.snet_id",
4,
&ghst_validate,
},