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

Revision history [back]

click to hide/show revision 1
initial version

Event driven Code- packet in to controller

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:

-api  
-artifacts  
-features  
-impl  
-it  
-karaf  
-pom.xml  
-target

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

I have been trying a lot but all in vain. Please help.

TIA

Event driven Code- packet in to controller

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:

-api  
-artifacts  
-features  
-impl  
-it  
-karaf  
-pom.xml  
-target

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.

TIA