For an update of network,BGP was deleting the old network,sleeping for 5
secs and adding a new network to QBGP.But if the same network update
came in this 5 secs,it was creating issues.So removing 5 sec delay after
checking with QBGP guys
Change-Id: I9a4cb8f096b608e84e377eeb301d3bd52519b175
Signed-off-by: Loshmitha <loshmitha@ericsson.com>
import java.util.Map;
import java.util.Objects;
import java.util.Timer;
import java.util.Map;
import java.util.Objects;
import java.util.Timer;
-import java.util.TimerTask;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CountDownLatch;
oldval.getRd(), oldval.getPrefixLen(), oldval.getLabel(), oldval.getNexthop());
return;
}
oldval.getRd(), oldval.getPrefixLen(), oldval.getLabel(), oldval.getNexthop());
return;
}
- LOG.debug("received update networks config val {}", newval.getPrefixLen());
+ LOG.debug("update networks old val RD: {}, Prefix: {}, Label: {}, NH: {} "
+ + "new val RD: {}, Prefix: {}, Label: {}, NH: {}",
+ oldval.getRd(), oldval.getPrefixLen(), oldval.getLabel(), oldval.getNexthop(),
+ newval.getRd(), newval.getPrefixLen(), newval.getLabel(), newval.getNexthop());
- timer.schedule(new TimerTask() {
- @Override
- public void run() {
- if (newval != null) {
- add(iid, newval);
- }
- }
- }, Integer.getInteger("bgp.nexthop.update.delay.in.secs", 5) * 1000L);