Ask Your Question
0

How do I install custom built feature via Karaf

asked 2015-03-23 04:50:41 -0700

odl_learn gravatar image

updated 2015-03-25 08:35:01 -0700

Maros gravatar image

I am developing a plugin using MD-SAL Startup Project Archetype, which is working perfectly fine when I follow the steps explained. Now I want to deploy this same plugin on a remote Opendaylight controller for which I have access to its Karaf console. Can some body please help me with the steps to do so.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-03-25 08:29:16 -0700

Maros gravatar image

The easiest way to do so, is to start ODL and in the karaf console execute:

repo-add mvn:org.opendaylight.coretutorials/ncmount-features/1.0.0-SNAPSHOT/xml/features

This adds the repository with features you need (above example is for netconf tutorial called ncmount in coretutorials repository). After this, you should be able to see your features when executing feature:list and feature:install. Make sure to replace the groupId(org.opendaylight.coretutorials), name(ncmount-features) and version(1.0.0-SNAPSHOT) in above command.

However theres a catch. The command uses maven url to locate the repository. This means that the feature definition and all the bundles need to be installed in a local or remote maven repository. Assuming your artifacts are not publicly available(and your group id is org.opendaylight.example), you need to copy the contents of folder ~/.m2/repository/org/opendaylight/example from your machine into the same folder on remote machine (where the ODL is running).

edit flag offensive delete publish link more

Comments

Thanks very much, worked fine.

odl_learn ( 2015-03-26 01:45:47 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
3 followers

Stats

Asked: 2015-03-23 04:50:41 -0700

Seen: 379 times

Last updated: Mar 25 '15