Ask Your Question
0

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. ( https://wiki.opendaylight.org/view/OpenDaylightController:MD-SAL:StartupProject_Archetype) 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

<dependency>
  <groupId>org.opendaylight.dlux</groupId>
  <artifactId>dlux.core</artifactId>
  <version>0.2.0-SNAPSHOT</version>
</dependency>


  <dependency>
  <groupId>org.opendaylight.l2switch</groupId>
  <artifactId>l2switch</artifactId>
  <version>0.2.0-SNAPSHOT</version>
  <type>pom</type>
</dependency>

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

Comments

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
0

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: https://github.com/subh007/ODL-Sample-App/commit/0e6672c448d2fb22ec3f4b247765081f81884e8a

<dependency>
      <groupId>org.opendaylight.l2switch</groupId>
      <artifactId>features-l2switch</artifactId>
      <version>0.3.0-SNAPSHOT</version>
      <classifier>features</classifier>
      <type>xml</type>
      <scope>runtime</scope>
    </dependency>

please let me know for any further help.

edit flag offensive delete publish link more

Comments

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

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
1 follower

Stats

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

Seen: 450 times

Last updated: Jul 06 '15