1 package org.opendaylight.bgpmanager.thrift.server.implementation;
3 import org.opendaylight.bgpmanager.thrift.gen.BgpUpdater;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
9 class BgpUpdateHandler implements BgpUpdater.Iface {
11 private static final Logger logger = LoggerFactory.getLogger(BgpUpdateHandler.class);
13 public BgpUpdateHandler() {}
15 public void onUpdatePushRoute(String rd, String prefix, int plen,
16 String nexthop, int label) {
17 logger.info("Route add ** " + rd + " ** " + prefix + "/" + plen
18 + " ** " + nexthop + " ** " + label);
19 //Write to FIB in Data Store
23 public void onUpdateWithdrawRoute(String rd, String prefix, int plen) {
24 logger.info("Route del ** " + rd + " ** " + prefix + "/" + plen);
25 //Write to FIB in Data Store
29 public void onStartConfigResyncNotification() {
30 logger.info("BGP (re)started");