mirror of https://github.com/apache/cloudstack.git
vmware: Fixed instance creation failure on dvswitch when using vlan id 4095 (#4557)
Fixed instance creation failure on dvswitch when using vlan id 4095
(cherry picked from commit ec4d83da4d)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
6f96b3b2b3
commit
8a1dff8ca7
|
|
@ -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…
Reference in New Issue