mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Added support for KVM teamd devices to LibvirtComputingResource.java. This will allow users to utilze teamd nic teaming devices named team*.
This commit is contained in:
parent
cf839bdf0c
commit
e1a401c023
@ -1160,13 +1160,13 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
for (int i = 0; i < interfaces.length; i++) {
|
||||
final String fname = interfaces[i].getName();
|
||||
s_logger.debug("matchPifFileInDirectory: file name '" + fname + "'");
|
||||
if (fname.startsWith("eth") || fname.startsWith("bond") || fname.startsWith("vlan") || fname.startsWith("vx") || fname.startsWith("em") ||
|
||||
if (fname.startsWith("eth") || fname.startsWith("bond") || fname.startsWith("team") || fname.startsWith("vlan") || fname.startsWith("vx") || fname.startsWith("em") ||
|
||||
fname.matches("^p\\d+p\\d+.*")) {
|
||||
return fname;
|
||||
}
|
||||
}
|
||||
|
||||
s_logger.debug("failing to get physical interface from bridge " + bridgeName + ", did not find an eth*, bond*, vlan*, em*, or p*p* in " + brif.getAbsolutePath());
|
||||
s_logger.debug("failing to get physical interface from bridge " + bridgeName + ", did not find an eth*, bond*, team*, vlan*, em*, or p*p* in " + brif.getAbsolutePath());
|
||||
return "";
|
||||
}
|
||||
|
||||
@ -1450,7 +1450,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
if (!matcher.group(4).isEmpty()) {
|
||||
return BroadcastDomainType.Vlan.toUri(matcher.group(4)).toString();
|
||||
} else {
|
||||
//untagged or not matching (eth|bond)#.#
|
||||
//untagged or not matching (eth|bond|team)#.#
|
||||
s_logger.debug("failed to get vNet id from bridge " + brName
|
||||
+ "attached to physical interface" + pif + ", perhaps untagged interface");
|
||||
return "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user