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

0

Application feature install

asked 2016-04-28 09:10:47 -0800

monicarajasekaran gravatar image

Hi,

I have beryllium set up with a simple application following the developer’s guide.

When I try to do “feature:install odl-l2switch-switch” from my application (/ODL/helloapp/karaf/target/assembly/bin ./karaf), I keep getting the error

“Error executing command: No feature matching odl-l2switch-switch/0.0.0”

But when I try to do the same from the base folder (/ODL/bin ./karaf), it works. How do I fix this to run from my application as well ?

Thanks

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted
0

answered 2016-04-28 10:09:24 -0800

karthik330 gravatar image

Hi You have to add the dependency of l2switch in your app 's , feature.XML and pom.XML ..so that you could install L2switch features. For better understanding, refer ODL , feature -> features. XML , pom.XML to know how they added dependency of l2switch. If you face any syntax issue let me know. I ll check it out.. You might face version mismatch issue. Make sure your app and l2switch have same versions of ODL as dependency.

Thanks, -Karthik

edit flag offensive delete publish link more

Comments

But, I still get the following error: [ERROR] 'dependencies.dependency.version' for org.opendaylight.l2switch:features-l2switch:xml:features is missing. @ line 108, column 17

monicarajasekaran ( 2016-04-28 10:22:36 -0800 )edit

I don't have a "features" folder in my base directory ODL. The folders are: "bin,configuration,data,deploy,etc,externalapps,helloapp,idmlight.db.mv.db,instances,journal,lib,LICENSE,lock,snapshots,system,version.properties"

monicarajasekaran ( 2016-04-28 10:23:47 -0800 )edit

Did you created the simple hello app separately? or you have simple app inside beryllium itself? check feature folder inside your App .

karthik330 ( 2016-04-28 19:58:15 -0800 )edit
0

answered 2016-04-28 12:43:53 -0800

azhark gravatar image

can you try odl-l2switch-all

edit flag offensive delete publish link more
0

answered 2016-04-29 09:01:33 -0800

monicarajasekaran gravatar image

Hi,

This got resolved by adding the following to helloapp/karaf/pom.xml,

<dependency>
  <groupId>org.opendaylight.l2switch</groupId>
  <artifactId>features-l2switch</artifactId>
  <classifier>features</classifier>
  <version>0.3.2-SNAPSHOT</version>
  <type>xml</type>
  <scope>runtime</scope>
</dependency>
edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-04-28 09:10:47 -0800

Seen: 161 times

Last updated: Apr 29 '16