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 dab69917d1d85a30843af8acb723ca6b94785f3a..75da310b2b63b9f967afdbc354fba1ee3871dfa3 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) {