Merge pull request #916 from kansal/CLOUDSTACK-8940

CLOUDSTACK-8940: Wrong value is inserted into nics table netmask field when 
creating a VM - Fixed

Problem: When creating a VM in shared network with no service, the value of 
netmask is added in the table in the CIDR format unlike other cases where it is 
added as normal string in the format xxx.xxx.xxx.xxx. The netmask column in the 
nics table has a length of 15 chars which gets violated if the CIDR exceeds 
it(Max CIDR length can be 18).

Fix: Before storing the netmask convert from CIDR to native format.

* pr/916:
  CLOUDSTACK-8940: Wrong value is inserted into nics table netmask field when 
creating a VM - Fixed

Signed-off-by: Remi Bergsma <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3d213b66
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3d213b66
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3d213b66

Branch: refs/heads/master
Commit: 3d213b66e78f4a11af4847dbec41c4bae0c50586
Parents: abbdb2e ba26efc
Author: Remi Bergsma <[email protected]>
Authored: Mon Nov 2 14:16:28 2015 +0100
Committer: Remi Bergsma <[email protected]>
Committed: Mon Nov 2 14:16:29 2015 +0100

----------------------------------------------------------------------
 server/src/com/cloud/network/IpAddressManagerImpl.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


Reply via email to