Remove vip from the vips collections instead of members.
[controller.git] / opendaylight / samples / loadbalancer / src / main / java / org / opendaylight / controller / samples / loadbalancer / entities / Pool.java
index ae48a3a45118533785f5c3175a68df107d9c7c0a..86e6a360dd50c67d38fc70cf4147bc328f3d4274 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;
             }
         }