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>
This commit is contained in:
Sateesh Chodapuneedi 2014-05-13 15:00:29 +05:30
parent 9b6d430171
commit a605ca09cd

View File

@ -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);
}
}