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


Event driven Code- packet in to controller

asked 2016-08-30 11:50:54 -0800

ahuja gravatar image

updated 2016-08-30 11:51:34 -0800

I have a Hello World Project with openflowplugin installed. I am able to add flows via RESTCONF. Now, I need to make my project event driven , i.e. it can add and delete flows dynamically.

For eg, a switch is connected to the Controller. A packet comes in to the switch. By default it should come to the controller and the controller should act upon it. I just need to know how to implement the event " packet in " in my code.

The structure of my project right now is:


in impl i have java files - HelloWorldImpl HelloWorldProvider, HelloWorldModule HelloWorldModuleFactory.

I have been trying a lot but all in vain. Please help. Any lead will be helpful.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-09-07 10:45:55 -0800

please check following patch:

edit flag offensive delete publish link more


Thanks a lot Subhash... I will look into it today and and will let you know.

ahuja ( 2016-09-07 11:34:57 -0800 )edit

It didnt work. NotificationProviderService is deprecated and when I implement PacketProcessingListener, the ODL code stops working. I am able to build and install the openflowplugin but it is only after the implementation of PacketProcessingListener that i am not able to add flows via restconf also

ahuja ( 2016-09-09 17:07:48 -0800 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-08-30 11:50:54 -0800

Seen: 167 times

Last updated: Sep 07 '16