Michal, Could you please tell me which wiki page (#1 or #2) is the most accurate to the Beryllium version? I'm following the link #2 and I'm getting Java type errors, since you told me that the augmentation type has changed since Lithium.
1. https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Openflow_Protocol_Library's_extensibility:Basic_Principle_%26_Example 2. https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Architecture:Extensibility:Action On Fri, May 6, 2016 at 12:14 PM, Rajasekaran, Monica < [email protected]> wrote: > Hi Michal, > > > > Got it, I will do that. How does OFJava pick up my module that is defined > separately ? Do I just import this module and corresponding augment into > the newly created message factories under serialization & deserialization ? > > > > *Thanks * > > > > *From:* Michal Polkoráb [mailto:[email protected]] > *Sent:* Friday, May 06, 2016 2:53 AM > *To:* Rajasekaran, Monica <[email protected]> > *Cc:* [email protected]; > [email protected]; Icaro Camelo < > [email protected]> > > *Subject:* Re: [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > Hi Monica, > > > > you should create your own module just like Icaro in his > example. Openflowjava provides only structures (model) defined in openflow > (v1.0 & v1.3) specification - specific types should be defined in separate > modules. > > > > Michal > ------------------------------ > > *From:* Rajasekaran, Monica <[email protected]> > *Sent:* 06 May 2016 04:01 > *To:* Michal Polkoráb > *Cc:* [email protected]; > [email protected]; Icaro Camelo > *Subject:* RE: [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > Hi Michal, > > > > Thanks for your reply. Okay, so in order to do the translation between > MD-SAL and OFJava, I should add my own augment to “openflow-augments.yang” > ? Or should I create a separate module for my message as done by Icaro ? > I’m a newbie to ODL development, so please excuse me if the questions seem > basic. > > > > *Thanks,* > > *Monica* > > > > *From:* Icaro Camelo [mailto:[email protected] <[email protected]>] > *Sent:* Wednesday, May 04, 2016 2:46 PM > *To:* Michal Polkoráb <[email protected]> > *Cc:* Rajasekaran, Monica <[email protected]>; > [email protected]; > [email protected] > *Subject:* Re: [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > I have followed the aforementioned link and I'm getting an error about not > finding the augmented target using the same yang file content: > > > > Here's my yang: http://pastebin.com/yhFtbBQw > > > > [ERROR] Failed to execute goal > org.opendaylight.yangtools:yang-maven-plugin:1.0.0-SNAPSHOT:generate-sources > (binding) on project of-extension-noviflow-api: yang-to-sources: Unable to > parse yang files from > /Users/icarocamelo/Development/inocybe/noviflow-plugin/of-extension-noviflow/of-extension-noviflow-api/src/main/yang: > Augment target > 'Absolute{path=[(urn:opendaylight:openflow:common:action?revision=2015-02-03)actions-container, > (urn:opendaylight:openflow:common:action?revision=2015-02-03)action]}' not > found [at META-INF/yang/of-extension-noviflow.yang:15:4] > > > > Could you please give some insight? > > > > On Wed, May 4, 2016 at 4:17 AM, Michal Polkoráb < > [email protected]> wrote: > > Hi Monica, > > > > the steps you have already done ensure only the translation between low > level model (OFJava) and wire protocol. You also need to ensure > translation between semantic high level model (MD-SAL) and protocol > oriented low level model (OFJava). Please see this wiki page: > https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Architecture:Extensibility > for > more information & also check *-extension-* modules in openflowplugin. The > combination of openflowplugin code and wiki page should be enough for you > to be able to finish your implementation. > > > > Michal > > > ------------------------------ > > *From:* Rajasekaran, Monica <[email protected]> > *Sent:* 03 May 2016 17:13 > *To:* Michal Polkoráb; [email protected]; > [email protected] > *Subject:* RE: [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > Hi Michal, > > > > Thank you. Once I built that up, I added my new OF message’s details to > openflow-protocol.yang which generated corresponding java files to generate > my packet. And, I created message factories to handle the new message. Is > this all in order to have a custom OF message up and running ? > > > > Note- The message itself has no special functionality. I am just doing > this to understand message flow in the controller in order to develop > further. > > > > *Thanks * > > > > *From:* Michal Polkoráb [mailto:[email protected]] > *Sent:* Tuesday, May 03, 2016 2:27 AM > *To:* Rajasekaran, Monica <[email protected]>; > [email protected]; > [email protected] > *Subject:* Re: [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > Hello Monica, > > > > in order to create corresponding message factories you need to clone > openflowjava (e.g. git clone ssh://{ > username}@git.opendaylight.org:29418/openflowjava > <http://[email protected]:29418/openflowjava>) and build > it. Then you can replace > your openflow-protocol-impl-0.7.1-Beryllium-SR1.jar with the new one. > > > > Regards, > > Michal Polkorab > ------------------------------ > > *From:* Rajasekaran, Monica <[email protected]> > *Sent:* 29 April 2016 17:35 > *To:* [email protected]; > [email protected] > *Subject:* [controller-dev] New OF message - Serialization and > Deserialization Factories > > > > Hi, > > > > As a part of trying to add a new OF message, I added the required > definition to openflow-protocol.yang (which will in turn create the packet > builder files). > > > > As far as I can understand, the next step looks like I should create > corresponding message factories for serialization and deserialization. > > > > But, I am not able to find the correct way to do it. On Github, the java > files are present at > “openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/”. > > > > > I have Beryllium SR1 and that looks different. The path I have is: > “/OPENDAYLIGHT/distribution-karaf-0.4.1-Beryllium-SR1/system/org/opendaylight/openflowjava/openflow-protocol-impl/0.7.1-Beryllium-SR1/openflow-protocol-impl-0.7.1-Beryllium-SR1.jar” > > > > Inside the jar file, there are a bunch of .class files. I do not see the > java files here. Also, I do not see them present anywhere else. Any help on > this? > > > > *Thanks * > > > > Michal*Polkoráb* > > Software Engineer > > > Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia > R&D centrum / Janka Kráľa 9 / 974 01 Banská Bystrica / Slovakia > +421 918 378 907 / [email protected] > reception: +421 2 206 65 114 / www.pantheon.sk > > [image: logo] > > > > Michal*Polkoráb* > > Software Engineer > > > Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia > R&D centrum / Janka Kráľa 9 / 974 01 Banská Bystrica / Slovakia > +421 918 378 907 / [email protected] > reception: +421 2 206 65 114 / www.pantheon.sk > > [image: logo] > > > > > _______________________________________________ > controller-dev mailing list > [email protected] > https://lists.opendaylight.org/mailman/listinfo/controller-dev > > > > > > -- > > Thanks, > > > * Icaro Camelo* > *Software Developer* > > Michal*Polkoráb* > > Software Engineer > > > Sídlo / Mlynské Nivy 56 / 821 05 Bratislava / Slovakia > R&D centrum / Janka Kráľa 9 / 974 01 Banská Bystrica / Slovakia > +421 918 378 907 / [email protected] > reception: +421 2 206 65 114 / www.pantheon.sk > > [image: logo] > > > -- Thanks, Icaro Camelo *Software Developer*
_______________________________________________ openflowplugin-dev mailing list [email protected] https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev
