【问题标题】:How to install opendaylight restconf如何安装 opendaylight restconf
【发布时间】:2016-02-27 17:08:34
【问题描述】:
任何人都知道如何在自定义 karaf 发行版中安装 opendaylight restconf。我尝试添加 rest conf 功能 repo 并尝试进行功能安装。但这会因为缺少 odl-config-persister 而失败。当您尝试安装 odl-config-persister 时,会出现另一个错误。有没有其他方法可以在 karaf 中安装 opendaylight restconf。
【问题讨论】:
标签:
apache-karaf
karaf
opendaylight
【解决方案1】:
启动 Karaf 并验证您是否有此功能:
feature:list | grep 'restconf'
如果是这样,你可以安装它,“feature:install feature-name”:
feature:install odl-restconf-all
【解决方案2】:
在构建项目之前,请确保 karaf/pom.xml 在 dependencies 标记下包含以下节:
<dependency>
<groupId>org.opendaylight.l2switch</groupId>
<artifactId>features-l2switch</artifactId>
<version>0.7.0-SNAPSHOT</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
然后,构建您的项目:
[your_project_root]$ mvn clean install -DskipTests
构建完成后,启动 karaf 并安装 odl-l2switch-switch。
[your_project_root]$ cd karaf/target/assembly/bin/
[bin]$ ./karaf
opendaylight-user@root>feature:install odl-l2switch-switch
opendaylight-user@root>
odl-l2switch-switch 包含 RESTCONF 作为依赖项。