BUG 3510: Disable Node events in fibmanager 43/21643/1
authorVishal Thapar <vishal.thapar@ericsson.com>
Tue, 2 Jun 2015 08:35:06 +0000 (14:05 +0530)
committerVishal Thapar <vishal.thapar@ericsson.com>
Tue, 2 Jun 2015 10:47:46 +0000 (10:47 +0000)
Shouldn't add table miss entries for fibmanager.
Retaining the code but disabling handling of
Node change notifications

Change-Id: I3f28605a3ccd684c77f6843a1d7d71963fab508a
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
(cherry picked from commit 6440cff32f2ad102cdc8c3bf9c569466f960682b)

fibmanager/fibmanager-impl/src/main/java/org/opendaylight/vpnservice/fibmanager/FibManagerProvider.java

index e8f469f..ef16ec0 100644 (file)
@@ -26,7 +26,7 @@ public class FibManagerProvider implements BindingAwareProvider, IFibManager, Au
   private FibManager fibManager;
   private IMdsalApiManager mdsalManager;
   private IVpnManager vpnmanager;
-  private FibNodeCapableListener fibNcListener;
+  //private FibNodeCapableListener fibNcListener;
 
   @Override
   public void onSessionInitiated(ProviderContext session) {
@@ -37,7 +37,7 @@ public class FibManagerProvider implements BindingAwareProvider, IFibManager, Au
       fibManager = new FibManager(dataBroker, nexthopService);
       fibManager.setMdsalManager(mdsalManager);
       fibManager.setVpnmanager(vpnmanager);
-      fibNcListener = new FibNodeCapableListener(dataBroker, fibManager);
+      //fibNcListener = new FibNodeCapableListener(dataBroker, fibManager);
     } catch (Exception e) {
       LOG.error("Error initializing services", e);
     }
@@ -47,7 +47,7 @@ public class FibManagerProvider implements BindingAwareProvider, IFibManager, Au
   public void close() throws Exception {
     LOG.info("FibManagerProvider Closed");
     fibManager.close();
-    fibNcListener.close();
+    //fibNcListener.close();
   }
 
   public void setMdsalManager(IMdsalApiManager mdsalManager) {