mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
vmware: Fixed instance creation failure on dvswitch when using vlan id 4095 (#4557)
Fixed instance creation failure on dvswitch when using vlan id 4095
This commit is contained in:
parent
4d33e159f7
commit
ec4d83da4d
@ -1073,6 +1073,10 @@ public class HypervisorHostHelper {
|
||||
}
|
||||
|
||||
public static VmwareDistributedVirtualSwitchVlanSpec createDVPortVlanSpec(Integer vlanId, String vlanRange) {
|
||||
if (vlanId != null && vlanId == 4095){
|
||||
vlanId = null;
|
||||
vlanRange = "0-4094";
|
||||
}
|
||||
if (vlanId == null && vlanRange != null && !vlanRange.isEmpty()) {
|
||||
s_logger.debug("Creating dvSwitch port vlan-trunk spec with range: " + vlanRange);
|
||||
VmwareDistributedVirtualSwitchTrunkVlanSpec trunkVlanSpec = new VmwareDistributedVirtualSwitchTrunkVlanSpec();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user