From c7dd19b71e01464a027c9ec2f66df340ca6981c2 Mon Sep 17 00:00:00 2001 From: Loshmitha Date: Mon, 20 Nov 2017 15:04:00 +0530 Subject: [PATCH] Bug 9188 Removing the ODL thrift IP check In RHEL,ODL MIP will not be hosted in the BGP EOS owner and it will be in HA proxy.So removing the availability and check for this IP in the code.Check was not required as QBGP has replay mechanism whenever the IP comes up Change-Id: I79a6cfddb36dd9c7b2322615bf3871a9bfdc7e44 Signed-off-by: Loshmitha --- .../bgpmanager/BgpConfigurationManager.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java b/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java index 780f44a54f..f71f2ab0ca 100755 --- a/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java +++ b/vpnservice/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/netvirt/bgpmanager/BgpConfigurationManager.java @@ -505,21 +505,7 @@ public class BgpConfigurationManager { BgpRouterException.BGP_ERR_NOT_INITED, ADD_WARN); return; } - if (isIpAvailable(odlThriftIp)) { - bgpRestarted(); - } else { - IP_ACTIVATION_CHECK_TIMER.scheduleAtFixedRate(new TimerTask() { - @Override - public void run() { - if (isIpAvailable(odlThriftIp)) { - bgpRestarted(); - IP_ACTIVATION_CHECK_TIMER.cancel(); - } else { - LOG.trace("waiting for odlThriftIP: {} to be present", odlThriftIp); - } - } - }, 10000L, 10000L); - } + bgpRestarted(); startBgpCountersTask(); startBgpAlarmsTask(); -- 2.36.6