----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/18683/#review36699 -----------------------------------------------------------
Commit 859a78e1d321a936efd18dc6f0a55ab336cd3b70 in cloudstack's branch refs/heads/4.3 from Marcus Sorensen [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=859a78e ] CLOUDSTACK-6194: Failed to increase Shared network IP Range Submitted-by:Saksham Srivastava <saksham.srivast...@citrix.com> (cherry picked from commit 135247afd114c1dfc6dde22184430237e79aafc5) Signed-off-by: Animesh Chaturvedi <anim...@apache.org> - ASF Subversion and Git Services On March 3, 2014, 12:53 p.m., Saksham Srivastava wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/18683/ > ----------------------------------------------------------- > > (Updated March 3, 2014, 12:53 p.m.) > > > Review request for cloudstack, Marcus Sorensen and Sateesh Chodapuneedi. > > > Bugs: CLOUDSTACK-6194 > https://issues.apache.org/jira/browse/CLOUDSTACK-6194 > > > Repository: cloudstack-git > > > Description > ------- > > In case the vlan is passed null to the api or doing it from UI, the new > changes make vlanId as "vlan://untagged" > > The following code in ConfigurationManagerImpl.java > if (vlans != null && vlans.size() > 0) { > VlanVO vlan = vlans.get(0); > if (vlanId == null) { > vlanId = vlan.getVlanTag(); > } else if > (!NetUtils.isSameIsolationId(vlan.getVlanTag(), vlanId)) { > throw new InvalidParameterValueException("there is > already one vlan " + vlan.getVlanTag() > > starts throwing exception. > > Fix includes additional check for the modified vlanid. > The same checks are in NetUtils.isSameIsolationId() for checking untagged. > > > Diffs > ----- > > server/src/com/cloud/configuration/ConfigurationManagerImpl.java d2e5aaa > > Diff: https://reviews.apache.org/r/18683/diff/ > > > Testing > ------- > > Adding new guest IP range passes smoothly. > Adding new public IP ranges passes smoothly. > > > Thanks, > > Saksham Srivastava > >