Not getting Node change or deleted notification in Beryllium Snapshot version

asked 2016-08-02 13:02:04 -0700

mehta.sagar04 gravatar image

I am following SDNHUB tutorial and implementing TAPapp application with Beryllium latest Snapshot version.

The problem is whenever I am adding switch or adding ports or removing ports , the OnNodeUpdated method implemented from OPenDayLightInventoryListener interface is not getting called in my impl class.

I have added following things in my blueprint.xml : <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default"/>

  <reference id="NotificationProviderService"
interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService" odl:type="default" />

  <reference id="RpcProviderRegistry"
interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"
odl:type="default" />

<service id="OpendaylightInventoryListener" interface="org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.OpendaylightInventoryListener" ref="provider"/> <service id="DataChangeListener" interface="org.opendaylight.controller.md.sal.binding.api.DataChangeListener" ref="provider"/>

<bean id="provider" class="org.sdnhub.odl.tutorial.tapapp.impl.TutorialTapProvider" init-method="init" destroy-method="close"> <argument ref="dataBroker"/> <argument ref="NotificationProviderService"/> <argument ref="RpcProviderRegistry"/>

</bean> <odl:notification-listener ref="provider"/>

Can someone let me know If I am missing something or if there is any mistake while doing that. Waiting for positive response.

edit retag flag offensive close merge delete