[openflowplugin-dev] Implementing en experimenter action
Michal Polkorab
Hi Shuva,
There is a wiki page regarding openflowjava extensibility here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility
I believe it might help you a lot.
Basically, in order to extend openflowjava you need to create identity for your action (in yang model). Then you have to create serializer and deserializer for your action. These classes must implement OFSerializer<Action> / OFDeserializer<Action>. Afterwards
you must get SwitchConnectionProvider instance (usually via ConfigSubsystem) and call registerAction(De)Serializer() method under correct key. Key examples can be found here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility:Registration_keys
(Code examples - look around OutputRegCodec class in openflowplugin)
Now you should be able to work with your experimenter action in openflowjava - you will probably need to extend openflowplugin too. You may find how in openflowplugin-extension-api project.
Regards,
Michal Polkorab
From: Abhijit Kumbhare <abhijitkoss@...>
Sent: 12 December 2014 18:57 To: Shuva Jyoti Kar; openflowplugin-dev@...; Michal Rehak -X (mirehak - Pantheon Technologies SRO at Cisco) Cc: openflowjava-dev; Muthukumaran K; V L N Mehar Simhadri Subject: Re: [openflowplugin-dev] [openflowjava-dev] Implementing en experimenter action Adding Michal Rehak / OpenFlow plugin who should be able to answer your questions.
On Fri, Dec 12, 2014 at 3:44 AM, Shuva Kar
<shuva.jyoti.kar@...> wrote:
Hi, MichalPolkoráb Software Developer Mlynské Nivy 56 / 821 05 Bratislava / Slovakia +421 918 378 907 / michal.polkorab@... reception: +421 2 206 65 111 / www.pantheon.sk |
|
V L N Mehar Simhadri <v.l.n.mehar.simhadri@...>
Hi Michal
Thanks for the reply, There is a mention of “openflow-nx-resubmit-action” exemplary module, but I am not able to see it in the git tree, Can u point us to the right example code?
Thanks -Mehar
From: Michal Polkoráb [mailto:michal.polkorab@...]
Sent: Monday, December 15, 2014 7:55 PM To: Abhijit Kumbhare; Shuva Jyoti Kar; openflowplugin-dev@...; Michal Rehak -X (mirehak - Pantheon Technologies SRO at Cisco) Cc: openflowjava-dev; Muthukumaran K; V L N Mehar Simhadri Subject: RE: [openflowplugin-dev] [openflowjava-dev] Implementing en experimenter action
Hi Shuva,
There is a wiki page regarding openflowjava extensibility here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility I believe it might help you a lot.
Basically, in order to extend openflowjava you need to create identity for your action (in yang model). Then you have to create serializer and deserializer for your action. These classes must implement OFSerializer<Action> / OFDeserializer<Action>. Afterwards you must get SwitchConnectionProvider instance (usually via ConfigSubsystem) and call registerAction(De)Serializer() method under correct key. Key examples can be found here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility:Registration_keys (Code examples - look around OutputRegCodec class in openflowplugin)
Now you should be able to work with your experimenter action in openflowjava - you will probably need to extend openflowplugin too. You may find how in openflowplugin-extension-api project.
Regards, Michal Polkorab
From: Abhijit Kumbhare <abhijitkoss@...>
Adding Michal Rehak / OpenFlow plugin who should be able to answer your questions.
On Fri, Dec 12, 2014 at 3:44 AM, Shuva Kar <shuva.jyoti.kar@...> wrote: Hi,
MichalPolkoráb Software Developer
|
|
Michal Polkorab
This module has been removed (I will remove the mention from wiki page). But the SHA for the removal change is 568458e894a3bc5d64b728e3fe2068af10d08dc8 ... SHA for the change before the removal - 722d98f8e8fdd950a56a6889c4dcea8c5715c35e . You can checkout
the change and see the example.
Michal From: V L N Mehar Simhadri <v.l.n.mehar.simhadri@...>
Sent: 15 December 2014 15:28 To: Michal Polkoráb; Abhijit Kumbhare; Shuva Jyoti Kar; openflowplugin-dev@...; Michal Rehak -X (mirehak - Pantheon Technologies SRO at Cisco) Cc: openflowjava-dev; Muthukumaran K Subject: RE: [openflowplugin-dev] [openflowjava-dev] Implementing en experimenter action Hi Michal
Thanks for the reply, There is a mention of “openflow-nx-resubmit-action” exemplary module, but I am not able to see it in the git tree, Can u point us to the right example code?
Thanks -Mehar
From: Michal Polkoráb [mailto:michal.polkorab@...]
Hi Shuva,
There is a wiki page regarding openflowjava extensibility here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility I believe it might help you a lot.
Basically, in order to extend openflowjava you need to create identity for your action (in yang model). Then you have to create serializer and deserializer for your action. These classes must implement OFSerializer<Action> / OFDeserializer<Action>. Afterwards you must get SwitchConnectionProvider instance (usually via ConfigSubsystem) and call registerAction(De)Serializer() method under correct key. Key examples can be found here: https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library%27s_extensibility:Registration_keys (Code examples - look around OutputRegCodec class in openflowplugin)
Now you should be able to work with your experimenter action in openflowjava - you will probably need to extend openflowplugin too. You may find how in openflowplugin-extension-api project.
Regards, Michal Polkorab
From: Abhijit Kumbhare <abhijitkoss@...>
Adding Michal Rehak / OpenFlow plugin who should be able to answer your questions.
On Fri, Dec 12, 2014 at 3:44 AM, Shuva Kar <shuva.jyoti.kar@...> wrote: Hi,
MichalPolkoráb Software Developer
MichalPolkoráb Software Developer Mlynské Nivy 56 / 821 05 Bratislava / Slovakia +421 918 378 907 / michal.polkorab@... reception: +421 2 206 65 111 / www.pantheon.sk |
|