Hi Michal,

I'm using Beryllium, but I was following the wiki page that isn't updated.
By the way, I have found this document written by you that might be helpful
to someone that wants to implement OF Extensions.

Document link:
https://wiki.opendaylight.org/images/a/a9/OpenFlow_Protocol_Library_-_Project_documentation.pdf

Thanks a lot!

On Thu, May 5, 2016 at 4:45 AM, Michal Polkoráb <
michal.polko...@pantheon.tech> wrote:

> Hello Icaro,
>
>
> It looks like you are augmenting incorrect target. Which Opendaylight
> version / release are you using ? Since Lithium, in order to augment
> actions, your action extension has to augment following target:
> "/ofaction:action-container/ofaction:action-choice" (instead of
> "/ofaction:actions-container/ofaction:action") with a "case" construct.
> Please see the openflow-augments.yang [1] for example.
>
>
> Regards,
>
> Michal
>
>
> [1]
> https://git.opendaylight.org/gerrit/gitweb?p=openflowjava.git;a=blob;f=openflow-protocol-api/src/main/yang/openflow-augments.yang;h=e5be7e566af13870df05e8cc85463a8c88135528;hb=HEAD
> )
>
> ------------------------------
> *From:* Icaro Camelo <icam...@inocybe.ca>
> *Sent:* 04 May 2016 21:46
> *To:* Michal Polkoráb
> *Cc:* Rajasekaran, Monica; controller-...@lists.opendaylight.org;
> openflowplugin-dev@lists.opendaylight.org
>
> *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 <
> michal.polko...@pantheon.tech> 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 <monica.rajaseka...@us.fujitsu.com>
>> *Sent:* 03 May 2016 17:13
>> *To:* Michal Polkoráb; controller-...@lists.opendaylight.org;
>> openflowplugin-dev@lists.opendaylight.org
>> *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:michal.polko...@pantheon.tech]
>> *Sent:* Tuesday, May 03, 2016 2:27 AM
>> *To:* Rajasekaran, Monica <monica.rajaseka...@us.fujitsu.com>;
>> controller-...@lists.opendaylight.org;
>> openflowplugin-dev@lists.opendaylight.org
>> *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://username...@git.opendaylight.org: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 <monica.rajaseka...@us.fujitsu.com>
>> *Sent:* 29 April 2016 17:35
>> *To:* controller-...@lists.opendaylight.org;
>> openflowplugin-dev@lists.opendaylight.org
>> *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 / michal.polko...@pantheon.tech
>> reception: +421 2 206 65 114 / www.pantheon.sk
>>
>> [image: logo]
>>
>>
>>
>> MichalPolkorá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 / michal.polko...@pantheon.tech
>> reception: +421 2 206 65 114 / www.pantheon.sk
>>
>> [image: logo]
>>
>>
>>
>> _______________________________________________
>> controller-dev mailing list
>> controller-...@lists.opendaylight.org
>> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>>
>>
>
>
> --
> Thanks,
>
> Icaro Camelo
> *Software Developer*
>
> MichalPolkorá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 / michal.polko...@pantheon.tech
> reception: +421 2 206 65 114 / www.pantheon.sk
>
> [image: logo]
>
>
>



-- 
Thanks,

Icaro Camelo
*Software Developer*
_______________________________________________
openflowplugin-dev mailing list
openflowplugin-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/openflowplugin-dev

Reply via email to