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

Event driven Code- packet in to controller

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

ahuja gravatar image

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

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

please check following patch:

https://github.com/subh007/router-on-...

edit flag offensive delete publish link more

Comments

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

ahuja ( 2016-09-07 11:34:57 -0700 )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 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

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

Seen: 61 times

Last updated: Sep 07 '16