Merge "Updating operational datastore"
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / thrift / server / implementation / BgpUpdateHandler.java
1 package org.opendaylight.bgpmanager.thrift.server.implementation;
2
3 import org.opendaylight.bgpmanager.thrift.gen.BgpUpdater;
4 import org.slf4j.Logger;
5 import org.slf4j.LoggerFactory;
6
7 import java.util.*;
8
9 class BgpUpdateHandler implements BgpUpdater.Iface {
10
11     private static final Logger logger = LoggerFactory.getLogger(BgpUpdateHandler.class);
12
13     public BgpUpdateHandler() {}
14
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
20
21    }
22
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
26
27    }
28
29    public void onStartConfigResyncNotification() {
30        logger.info("BGP (re)started");
31
32         //Reconfigure BGP
33    }
34
35 }
36