mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
fix http://bugs.cloud.com/show_bug.cgi?id=14775, it happened when untagged network created on tagged vlan
This commit is contained in:
parent
5751385444
commit
7bd5c58fc3
@ -1249,11 +1249,11 @@ public class LibvirtComputingResource extends ServerResourceBase implements
|
||||
if (nic.getBrName().equalsIgnoreCase(_linkLocalBridgeName)) {
|
||||
vlanAllocatedToVM.put("LinkLocal", nicPos);
|
||||
} else {
|
||||
String vlanId = getVlanIdFromBridge(nic.getBrName());
|
||||
if (vlanId != null) {
|
||||
vlanAllocatedToVM.put(vlanId, nicPos);
|
||||
} else {
|
||||
if (nic.getBrName().equalsIgnoreCase(_publicBridgeName) || nic.getBrName().equalsIgnoreCase(_privBridgeName) || nic.getBrName().equalsIgnoreCase(_guestBridgeName)) {
|
||||
vlanAllocatedToVM.put(Vlan.UNTAGGED, nicPos);
|
||||
} else {
|
||||
String vlanId = getVlanIdFromBridge(nic.getBrName());
|
||||
vlanAllocatedToVM.put(vlanId, nicPos);
|
||||
}
|
||||
}
|
||||
nicPos++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user