Summary: Account for embedded nics (e.g. 'em0') when looking for physical nic

Signed-off-by: Marcus Sorensen <marcus@betterservers.com>
This commit is contained in:
Marcus Sorensen 2013-01-28 21:21:30 -07:00 committed by Sheng Yang
parent 2cbca372bf
commit 1f2147d3ec

View File

@ -903,7 +903,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
String fname = interfaces[i].getName();
s_logger.debug("matchPifFileInDirectory: file name '"+fname+"'");
if (fname.startsWith("eth") || fname.startsWith("bond")
|| fname.startsWith("vlan")) {
|| fname.startsWith("vlan") || fname.startsWith("em")) {
return fname;
}
}