Ask Your Question
0

MD-SAL Application development

asked 2014-12-12 05:12:31 -0700

skrasheed.blr gravatar image

updated 2015-01-12 02:43:32 -0700

Tony Tkacik gravatar image

I am building a simple MD-SAL application for understanding the process. I created a model and compiled using the Yangtools. After that, I need to copy the model jar file to the OpenDayLight controller. The instructions I followed for this are listed at: https://wiki.opendaylight.org/view/Ping

As per this, I need to copy the jar to the following location, which seems to be not valid for the Karaf ODL version. Can anybody let me know where I need to copy this yang model jar file?

cp ./target/model-ping-1.1-SNAPSHOT.jar ../../../distribution/opendaylight/target/ \
    distribution.opendaylight-osgipackage/opendaylight/plugins/ \
    org.opendaylight.controller.model.model-ping-1.1-SNAPSHOT.jar

Thanks & Regards, Abdul Rasheed

edit retag flag offensive close merge delete

Comments

We need to update that wiki. I've [reached out](https://twitter.com/dfarrell07/status/543415679085731840) to the community in the hope of finding someone to own that TODO. Contributions welcome!

dfarrell07 ( 2014-12-12 06:52:18 -0700 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-12-12 08:02:49 -0700

updated 2014-12-12 08:03:42 -0700

That wiki needs to be updated. I don't have the cycles at the moment, but I reached out to the community for someone to own that TODO.

In the meantime, Inocybe very recently released a nice, relevant tutorial. It describes how to build an application on ODL Karaf (Helium) using MD-SAL.

edit flag offensive delete publish link more
0

answered 2014-12-12 09:04:06 -0700

skrasheed.blr gravatar image

Thanks. Hope that wiki page gets updated soon.

edit flag offensive delete publish link more

Comments

Note that you've posted what should really be a comment as an "answer" to your question. This is a Q&A site, not a forum.

dfarrell07 ( 2014-12-12 09:36:18 -0700 )edit

Sorry about that, I will make a note of this

skrasheed.blr ( 2014-12-16 02:49:26 -0700 )edit
0

answered 2014-12-12 09:18:47 -0700

anu.nair gravatar image

once you do a mvn clean install on your application folder, copy the xxSNAPSHOT.jar to plugins folder . If you want to do in a more generic way, then add a distribution folder , then add base for osgi and karaf for karaf . You will get sample examples in odl itself. look for distribution folder, features folder.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-12-12 05:12:31 -0700

Seen: 180 times

Last updated: Dec 12 '14