ODL 源码安装【毕设】

时间:2024-01-31 10:47:24

ODL 源码安装

Tags: 毕设

方法一,控制器源码安装,这样安装不带其它的特性

cd ODL
sudo git clone https://git.opendaylight.org/gerrit/p/controller.git
cd controller
sudo git checkout stable/oxygen
git branch

mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true

目前遇到两种:

  1. 指定目录不能创建或访问:更改文件夹读写权限,进入sudo模式重新编译
  2. pom.xml相关错误:将~/.m2下的settings.xml复制到/root/.m2目录下:sudo cp ~/.m2/settings.xml /root/.m2,重新编译
    编译成功!

控制器运行:
cd controller/karaf/opendaylight-karaf
./target/assembly/bin/karaf

方法二,这么安装会带各种feature

cd ODL
sudo mkdir integration
cd integration
//这个可以不git应该
sudo git clone https://git.opendaylight.org/gerrit/p/integration/packaging.git
//获取源码
sudo git clone https://git.opendaylight.org/gerrit/p/integration/distribution.git

cd distribution
sudo git checkout stable/oxygen
git branch

mvn clean install -DskipTests

安装特性:

  1. feature:install odl-l2switch-switch
  2. feature:install odl-openflowplugin-flow-services
  3. feature:install odl-mdsal-all
    feature:install odl-dlux-core odl-dluxapps-nodes odl-dluxapps-topology odl-dluxapps-yangui odl-dluxapps-yangvisualizer odl-dluxapps-yangman