Commit 5a2bc8fd authored by Mike Hibler's avatar Mike Hibler

Refine the interface info returned by hwinfo.

We do NOT return interfaces:
  - with obviously hacky and fake addresses: '000000xxxxxx'

  - when they are management (role == 'mngmnt') interfaces.
    Currently there is no OS visible HW for these, the corresponding
    MACs are just used by the management HW.

  - for Infiniband (guid != NULL) interfaces. We need support on
    the client side before we start sending those over.
parent f5431f50
......@@ -11696,11 +11696,19 @@ COMMAND_PROTOTYPE(dohwinfo)
mysql_free_result(res);
/*
* Network info comes from interfaces table.
*/
res = mydb_query("select mac from interfaces "
"where mac not like '000000%%' and node_id='%s'"
"order by card",
* Network info comes from interfaces table. Ignore:
*
* - Obviously hacky and fake addresses: '000000xxxxxx'
* - Management (role == 'mngmnt') interfaces. Currently there
* is no OS visible HW for these, the corresponding MACs are
* just used by the management HW.
* - Infiniband (guid != NULL) interfaces. We need support on
* the client side before we start sending those over.
*/
res = mydb_query("select mac from interfaces where "
" mac not like '000000%%' and "
" role!='mngmnt' and guid is NULL and "
" node_id='%s' order by card",
1, reqp->nodeid);
if (!res) {
error("dohwinfo: %s: DB Error getting NET attributes!\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment