Remove vip from the vips collections instead of members. 06/6606/2
authorSivasamy Kaliappan <sivasamyk@gmail.com>
Tue, 29 Apr 2014 18:19:47 +0000 (23:49 +0530)
committeravishnoi <avishnoi@in.ibm.com>
Mon, 5 May 2014 14:49:37 +0000 (14:49 +0000)
Change-Id: I82063e74526a770772fb1eb5d91ab68ea3aeb449
Signed-off-by: Sivasamy Kaliappan <sivasamyk@gmail.com>
opendaylight/samples/loadbalancer/src/main/java/org/opendaylight/controller/samples/loadbalancer/entities/Pool.java

index ae48a3a..86e6a36 100644 (file)
@@ -164,7 +164,7 @@ public class Pool {
     public boolean removeVIP(String name){
         for(VIP vip: this.vips){
             if(vip.getName().equals(name)){
-                this.members.remove(vip);
+                this.vips.remove(vip);
                 return true;
             }
         }