Skip to content

Commit a605ca0

Browse files
author
Sateesh Chodapuneedi
committed
CLOUDSTACK-6652 CLONE - [Automation] Vmware- System's StartCommand failed with "NumberFormatException" while using VMware DVS
vlan id format was like "vlan://<id>" instead of just "<id>". This causes numberformatexception while converting the vlan id to integer form from string form. this was fixed for standard vswitch in bug Cloudstack-5046. now fixed for other 2 cases of dvswitch as well as pvlan. Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
1 parent 9b6d430 commit a605ca0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,10 @@ public static Pair<ManagedObjectReference, String> prepareNetwork(String physica
481481

482482
if (vlanId != null && !UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
483483
createGCTag = true;
484-
vid = Integer.parseInt(BroadcastDomainType.getValue(vlanId));
484+
vid = Integer.parseInt(vlanId);
485485
}
486486
if (secondaryvlanId != null) {
487-
spvlanid = Integer.parseInt(BroadcastDomainType.getValue(secondaryvlanId));
487+
spvlanid = Integer.parseInt(secondaryvlanId);
488488
}
489489
}
490490

0 commit comments

Comments
 (0)