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 to insert VTN into controller

asked 2015-04-09 02:50:50 -0700

vinllen gravatar image

Hi, Dear all:
   I git clone the controller and vtn ,after then i use mvn to install them. But I don't kown how to combine them together, now i can start them separately with two karaf.
  Great appreciate for anyone's reply.
Best regards,

edit retag flag offensive close merge delete


you can downed integration project;then mvn clean install

wangruxun ( 2015-04-09 21:14:58 -0700 )edit

aha, thankyou for you reply.It looks like copy the jar packets from the VTN project to Controller project works ok. Should i copy all of them because there has many jar packets ?

vinllen ( 2015-04-09 23:08:17 -0700 )edit

1 answer

Sort by » oldest newest most voted

answered 2015-04-10 18:25:03 -0700

hideyuki gravatar image

updated 2015-04-14 10:36:16 -0700

The following page answers your question.

$ cd ${VTN_DIR}/manager/dist/karaf
$ mvn clean install –DskipTests
$ target/assembly
$ ./bin/karaf

The maven automatically downloads Apache Karaf and artifacts of the controller project. So you don't have to manually copy files.

(Since the number of characters in comments are limited to 300 and that's too short for my answer to the vinllen's comment, I'm writing the answer here.)

I think there are several ways.

One way is that (1) building each project separately and (2) adding feature repositories of the projects to a local Karaf distribution.

The following are details of an example procedure.

(a.) Build and run a local Karaf distribution of a controller project.

$ cd ${CONTROLLER_DIR}/karaf/opendaylight-karaf
$ mvn clean install
$ cd target/assembly
$ ./bin/karaf

(b.) Build VTN features and install them into your local maven repository.

$ cd ${VTN_DIR}/manager
$ mvn clean install -DskipTests

(c.) Add the feature repository of the VTN project in the Karaf console.

opendaylight-user@root>feature:repo-add mvn:org.opendaylight.vtn/features-vtn-manager/0.3.0-SNAPSHOT/xml/features

(d.) Install VTN features.

You can see the list of registered features repositories by feature:repo-list command in the Karaf console.


You can install VTN features by feature:install command.

opendaylight-user@root>feature:install odl-vtn-manager-all
edit flag offensive delete publish link more


Thankyou, dear hideyuki . I have read the post already, it looks like the VTN project is a integration project. But there comes another question: I have three project like controller, vtn, ovsdb. How to combine them together ?

vinllen ( 2015-04-10 20:00:45 -0700 )edit

Thankyou so much, it's very useful for me

vinllen ( 2015-04-15 06:38:08 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-04-09 02:50:50 -0700

Seen: 452 times

Last updated: Apr 14 '15