activateMIP();
bgpRestarted();
} else {
- LOG.error("Not owner: hasOwner: {}, isOwner: {}",ownershipChange.hasOwner(),
+ LOG.info("Not owner: hasOwner: {}, isOwner: {}",ownershipChange.hasOwner(),
ownershipChange.isOwner() );
}
}
@Override
public void run() {
try {
- LOG.error("running bgp replay task ");
+ LOG.info("running bgp replay task ");
if (get() == null) {
String host = getConfigHost();
int port = getConfigPort();
LOG.info("connecting to bgp host {} ", host);
boolean res = bgpRouter.connect(host, port);
- LOG.error("no config to push in bgp replay task ");
+ LOG.info("no config to push in bgp replay task ");
return;
}
setStaleStartTime(System.currentTimeMillis());
- LOG.error("started creating stale fibDSWriter map ");
+ LOG.info("started creating stale fibDSWriter map ");
createStaleFibMap();
setStaleEndTime(System.currentTimeMillis());
- LOG.error("took {} msecs for stale fibDSWriter map creation ", getStaleEndTime()- getStaleStartTime());
- LOG.error("started bgp config replay ");
+ LOG.info("took {} msecs for stale fibDSWriter map creation ", getStaleEndTime()- getStaleStartTime());
+ LOG.info("started bgp config replay ");
setCfgReplayStartTime(System.currentTimeMillis());
replay();
setCfgReplayEndTime(System.currentTimeMillis());
- LOG.error("took {} msecs for bgp replay ", getCfgReplayEndTime() - getCfgReplayStartTime());
+ LOG.info("took {} msecs for bgp replay ", getCfgReplayEndTime() - getCfgReplayStartTime());
long route_sync_time = getStalePathtime(BGP_RESTART_ROUTE_SYNC_SEC, config.getAsId());
Thread.sleep(route_sync_time * 1000L);
setStaleCleanupTime(route_sync_time);
server.setServerEventHandler(new TServerEventHandler() {
@Override
public void preServe() {
- LOGGER.error("Bgp thrift server pre serve event");
+ LOGGER.info("Bgp thrift server pre serve event");
}
@Override
public ServerContext createContext(TProtocol input, TProtocol output) {
- LOGGER.error("Bgp thrift server create context event");
+ LOGGER.info("Bgp thrift server create context event");
synchronized (this) {
try {
if (oldThriftClientContext != null) {
- LOGGER.error("Bgp thrift server closing old context");
+ LOGGER.info("Bgp thrift server closing old context");
oldThriftClientContext.getIn().getTransport().close();
} else {
- LOGGER.error("Bgp thrift server old context is null nothing to close");
+ LOGGER.info("Bgp thrift server old context is null nothing to close");
}
oldThriftClientContext = null;
} catch (Throwable ignore) {
@Override
public void deleteContext(ServerContext serverContext, TProtocol input, TProtocol output) {
- LOGGER.error("Bgp thrift server delete context event");
+ LOGGER.info("Bgp thrift server delete context event");
if (oldThriftClientContext == serverContext) {
- LOGGER.error("Bgp thrift server cleanup old context");
+ LOGGER.info("Bgp thrift server cleanup old context");
oldThriftClientContext = null;
} else {
- LOGGER.error("Bgp thrift server cleanup context");
+ LOGGER.info("Bgp thrift server cleanup context");
}
}
}
public void onStartConfigResyncNotification() {
- LOGGER.error("BGP (re)started");
+ LOGGER.info("BGP (re)started");
bgpManager.setqBGPrestartTS(System.currentTimeMillis());
try {
bgpManager.bgpRestarted();