Phaneendra Manda
Committed by Gerrit Code Review

Vtn resource manager sink added for EventDispatcher

Change-Id: I654c3183b529020b656df077bace17b979f03020
...@@ -156,6 +156,7 @@ public class VtnRscManager extends AbstractListenerManager<VtnRscEvent, VtnRscLi ...@@ -156,6 +156,7 @@ public class VtnRscManager extends AbstractListenerManager<VtnRscEvent, VtnRscLi
156 156
157 @Activate 157 @Activate
158 public void activate() { 158 public void activate() {
159 + eventDispatcher.addSink(VtnRscEvent.class, listenerRegistry);
159 hostService.addListener(hostListener); 160 hostService.addListener(hostListener);
160 floatingIpService.addListener(floatingIpListener); 161 floatingIpService.addListener(floatingIpListener);
161 routerService.addListener(routerListener); 162 routerService.addListener(routerListener);
...@@ -189,6 +190,7 @@ public class VtnRscManager extends AbstractListenerManager<VtnRscEvent, VtnRscLi ...@@ -189,6 +190,7 @@ public class VtnRscManager extends AbstractListenerManager<VtnRscEvent, VtnRscLi
189 190
190 @Deactivate 191 @Deactivate
191 public void deactivate() { 192 public void deactivate() {
193 + eventDispatcher.removeSink(VtnRscEvent.class);
192 hostService.removeListener(hostListener); 194 hostService.removeListener(hostListener);
193 floatingIpService.removeListener(floatingIpListener); 195 floatingIpService.removeListener(floatingIpListener);
194 routerService.removeListener(routerListener); 196 routerService.removeListener(routerListener);
......