Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


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

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


Thanks very much, worked fine.

odl_learn ( 2015-03-26 01:45:47 -0700 )edit
Login/Signup to Answer

Question Tools



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

Seen: 570 times

Last updated: Mar 25 '15