Fix for Bug #533 86/5686/1
authorRyan Moats <rmoats@us.ibm.com>
Wed, 19 Mar 2014 16:23:07 +0000 (11:23 -0500)
committerRyan Moats <rmoats@us.ibm.com>
Wed, 19 Mar 2014 16:23:07 +0000 (11:23 -0500)
Ensure start of Allocation Pool is set properly in all cases

Change-Id: Ie51dd0e019588b2769663b950527b8558db3624d
Signed-off-by: Ryan Moats <rmoats@us.ibm.com>
opendaylight/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronSubnet_IPAllocationPool.java

index dab6991..75da310 100644 (file)
@@ -152,6 +152,9 @@ public class NeutronSubnet_IPAllocationPool implements Serializable {
                 if (i != gIP) {
                     p.setPoolStart(poolStart);
                     poolStarted = true;
+                } else {
+                    //FIX for bug 533
+                    p.setPoolStart(NeutronSubnet_IPAllocationPool.longtoIP(i+1));
                 }
             }
             if (i == eIP) {