From a605ca09cd3e40a8f25ae3e36ce37f1f24ac489b Mon Sep 17 00:00:00 2001 From: Sateesh Chodapuneedi Date: Tue, 13 May 2014 15:00:29 +0530 Subject: [PATCH] CLOUDSTACK-6652 CLONE - [Automation] Vmware- System's StartCommand failed with "NumberFormatException" while using VMware DVS vlan id format was like "vlan://" instead of just "". 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 --- .../com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java index 38b68b3c847..dd55439310e 100755 --- a/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java +++ b/vmware-base/src/com/cloud/hypervisor/vmware/mo/HypervisorHostHelper.java @@ -481,10 +481,10 @@ public class HypervisorHostHelper { if (vlanId != null && !UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) { createGCTag = true; - vid = Integer.parseInt(BroadcastDomainType.getValue(vlanId)); + vid = Integer.parseInt(vlanId); } if (secondaryvlanId != null) { - spvlanid = Integer.parseInt(BroadcastDomainType.getValue(secondaryvlanId)); + spvlanid = Integer.parseInt(secondaryvlanId); } }