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


installing dlux and l2switch features in startup project karaf

asked 2015-07-03 19:26:35 -0700

shahrooz33ce gravatar image

updated 2015-07-04 01:22:41 -0700

I am trying to write an md-sal application and created the hello world code base using wiki tutorial. ( How ever I need to add dlux and l2switch to the startup project's karaf . When I add the following dependencies to the karaf pom.xml



and I run mvn clean install in the root directory of the project and successfully compiling , however after running karaf and typing

feature:list | grep dlux feature:list | grep switch there are no features to install :( What am I doing wrong ?

edit retag flag offensive close merge delete


could you try this: <dependency> <groupid>org.opendaylight.l2switch</groupid> <artifactid>features-l2switch</artifactid> <version>${project.version}</version> <classifier>features</classifier> <type>xml</type> <scope>runtime</scope> </dependency>

faizan ( 2015-07-03 20:05:47 -0700 )edit

thanks for the comment @faizan I tried your solution but my ${project.version} has "1.0 SNAPSHOT" value , so the dependencies could not be resolved by maven. when I tried <version>${feature.l2switch.version}</version> as is in SDNHUB tutorial , prompts for invalid version. where should I define the right version ?

shahrooz33ce ( 2015-07-04 01:21:26 -0700 )edit

try 0.3.0-SNAPSHOT i.e <version>0.3.0-SNAPSHOT</version>

faizan ( 2015-07-05 19:47:17 -0700 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-06 00:25:27 -0700

updated 2015-07-06 01:09:55 -0700

Hello shahrooz33ce,

Here in my project I added the openflowplugin, try something similar for l2switch with the correct version:


please let me know for any further help.

edit flag offensive delete publish link more


How to add boot features? in ODL . i want l2switch and restconf to install when i launch karaf itself. Can you help me?

karthik330 ( 2016-04-12 02:09:09 -0700 )edit

in "etc/org.apache.karaf.features.cfg" you will find a variable "featuresBoot". add the features you like to that line (comma separated).

jamoluhrsen ( 2016-04-12 08:15:41 -0700 )edit

Hi , thanks fr rply ! It worked but when i do mvn clean install ODL, Its not installing when i launch karaf. Can you help me?

karthik330 ( 2016-04-12 08:19:24 -0700 )edit

my featuresBoot line: featuresBoot = config,standard,region,package,kar,ssh,management,odl-l2switch-all then, ./bin/karaf to start and when I check "features:list -i | grep l2switch" I see 7 l2switch features installed. if your setup is the same and it's not working, check karaf.log for ERRORs

jamoluhrsen ( 2016-04-12 08:50:30 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-07-03 19:26:35 -0700

Seen: 616 times

Last updated: Jul 06 '15