mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
2cbca372bf
commit
1f2147d3ec
@ -903,7 +903,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
|
|||||||
String fname = interfaces[i].getName();
|
String fname = interfaces[i].getName();
|
||||||
s_logger.debug("matchPifFileInDirectory: file name '"+fname+"'");
|
s_logger.debug("matchPifFileInDirectory: file name '"+fname+"'");
|
||||||
if (fname.startsWith("eth") || fname.startsWith("bond")
|
if (fname.startsWith("eth") || fname.startsWith("bond")
|
||||||
|| fname.startsWith("vlan")) {
|
|| fname.startsWith("vlan") || fname.startsWith("em")) {
|
||||||
return fname;
|
return fname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user