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

0

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

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

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.

Anyway...

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

Thanks...

hyeon...!

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

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

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

Comments

Thank you for your replying

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

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

Seunghyeon gravatar image

I solved this problem through those links https://wiki.opendaylight.org/view/Ping https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:ToasterStep-By-Step

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

Follow
1 follower

Stats

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

Seen: 635 times

Last updated: Nov 04 '14