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

How to insert VTN into controller

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

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,
Vinllen

edit retag flag offensive close merge delete

Comments

you can downed integration project;then mvn clean install

wangruxun ( 2015-04-09 21:14:58 -0800 )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 -0800 )edit

1 answer

Sort by » oldest newest most voted
1

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

hideyuki gravatar image

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

The following page answers your question.

https://wiki.opendaylight.org/view/Release/Helium/VTN/DeveloperGuide:Hacking:VTNManager#BuildandRuntheControllerwithVTN_Manager

$ 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.

opendaylight-user@root>feature:repo-list

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

Comments

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 -0800 )edit

Thankyou so much, it's very useful for me

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

Question Tools

Follow
2 followers

Stats

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

Seen: 397 times

Last updated: Apr 14 '15