一、准备环境
linux (centos 7.2(C300的虚机) )
java1.8
官网下载tar包
安装前设置环境变量
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
JVM_OPTS="-Xms256m -XX:PermSize=256m -XX:MaxPermSize=512m"
MAVEN_OPTS="$MAVEN_OPTS -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m"
export MAVEN_OPTS JAVA_HOME CLASSPATH JVM_OPTS PATH
执行./karaf 会有如下显示,表示启动成功
与openstack对接
命令行
list查看安装的包
feature:list 查看所有安装的feature,其中与北向接口相关的为:
feature:list list (Lists all existing features available from the defined repositories)
feature:list | grep northbound
odl-neutron-northbound-api │ 0.10.4 │ │ Uninstalled │ odl-neutron-northbound-api-0.10.4 │ OpenDaylight :: Neutron :: Northbound
odl-alto-northbound │ 0.6.4 │ │ Uninstalled │ odl-alto-northbound │ OpenDaylight :: alto :: Northbound
odl-alto-standard-northbound-route │ 0.6.4 │ │ Uninstalled │ odl-alto-standard-northbound-route │ OpenDaylight :: alto :: Standard Northbound Route
feature:install install (Installs a feature with the specified name and version)
feature:install odl-neutron-northbound-api
feature:install odl-alto-northbound
feature:install odl-alto-standard-northbound-route
feature:info odl-neutron-northbound-api
feature:info odl-alto-northbound