ECMP UC2 Enhancement: Support for more than two DC-GWs
[netvirt.git] / bgpmanager / impl / src / main / java / org / opendaylight / netvirt / bgpmanager / BgpConfigurationManager.java
index d0b16e121d656c458b4dad75104759575dd2fb90..0eca8f01fe2c1e3c6a3df3c23d4b712f90aaf51e 100755 (executable)
@@ -2084,7 +2084,7 @@ public class BgpConfigurationManager {
             return;
         }
         tepIpList.forEach(tepIp -> {
-            bgpUtil.removeOrUpdateLBGroups(tepIp, NwConstants.MOD_FLOW, false);
+            bgpUtil.removeOrUpdateLBGroups(tepIp, NwConstants.MOD_FLOW);
         });
     }
 
@@ -2095,7 +2095,7 @@ public class BgpConfigurationManager {
             return;
         }
         tepIpList.forEach(tepIp -> {
-            bgpUtil.removeOrUpdateLBGroups(tepIp, NwConstants.MOD_FLOW, true);
+            bgpUtil.removeOrUpdateLBGroups(tepIp, NwConstants.MOD_FLOW);
         });
     }
 
@@ -2549,6 +2549,7 @@ public class BgpConfigurationManager {
         DcgwTep dto = new DcgwTepBuilder().setDcGwIp(dcgwIp).setTepIps(tepList)
                 .build();
         update(iid, dto);
+        bgpUtil.removeOrUpdateLBGroups(tepIp,NwConstants.MOD_FLOW);
     }
 
     public void addLogging(String fileName, String logLevel) {