Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


How can i store customized data and notify data changed to registered application in ODL?

asked 2014-10-06 23:40:39 -0700

Seunghyeon gravatar image

Good to see you.

I`m newbie in Opendaylight.

I try to develop applications.

I know about other SDN controller, NOX, Floodlight ..., But i don`t know about ODL deeply.


I wanna make customized data structure which is used for storing data globally. The customized data is accessed in anywhere(any applications). And, when an element in customized data is changed, registered applications are received data change notification.

How can i do in ODL?

I found some solution about this.

Do i need to know about "Yang", "Data Broker" ??! (Have to know about MD-sal??!)

Though i try to get this, I don`t understand properly.

If you guys have solution about my question, please give me a advice



edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-03 13:26:39 -0700

anu.nair gravatar image

Follow these steps 1) Define your yang 2) you can define your own custom notification in yang, like notification myDataCreated {..} notification myDataDeleted {..} 3) get NotificationProviderService from BundleContext in Activator class 4) NotificationProviderService . publish(myDataCreatedbuilder).build()..

If no custom notification is required , then follow in Activator lclass, get the databroker.registerDataChangeListener(LogicalDatastoreType.CONFIGURATION, your instnaceid, class implements the interface DataChangeListener (onDataChanged)..)

edit flag offensive delete publish link more


Thank you for your replying

Seunghyeon ( 2014-11-04 16:08:40 -0700 )edit

answered 2014-11-04 16:08:46 -0700

Seunghyeon gravatar image

I solved this problem through those links

If the other guys want to solve problem mentioned above, you`d better analysis those link.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-10-06 23:40:39 -0700

Seen: 649 times

Last updated: Nov 04 '14