mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
9b6d430171
commit
a605ca09cd
@ -481,10 +481,10 @@ public class HypervisorHostHelper {
|
|||||||
|
|
||||||
if (vlanId != null && !UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
|
if (vlanId != null && !UNTAGGED_VLAN_NAME.equalsIgnoreCase(vlanId)) {
|
||||||
createGCTag = true;
|
createGCTag = true;
|
||||||
vid = Integer.parseInt(BroadcastDomainType.getValue(vlanId));
|
vid = Integer.parseInt(vlanId);
|
||||||
}
|
}
|
||||||
if (secondaryvlanId != null) {
|
if (secondaryvlanId != null) {
|
||||||
spvlanid = Integer.parseInt(BroadcastDomainType.getValue(secondaryvlanId));
|
spvlanid = Integer.parseInt(secondaryvlanId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user