如何将Opendaylight连接到Mininet? [英] How to connect Opendaylight to Mininet?
问题描述
我一直在一个简单的Hello World项目中学习Opendaylight的基础知识(我一直在关注
I've been working in a simple Hello World project to learn the basics for Opendaylight (I was following this tutorial).
现在,我想将此控制器的内部版本连接到Mininet定义的网络拓扑,但这不起作用.我读到这可能是由于我没有安装odl-l2switch导致的,但是当我键入feature:list --installed
时,捆绑包没有出现,而当我键入feature:install odl-l2switch
时,捆绑包也没有出现.
Now I want to connect this build of the controller to a network topology defined by Mininet but this is not working. I read that this may be due to I haven't installed odl-l2switch but when I type feature:list --installed
the bundle doesn't appear and when I type feature:install odl-l2switch
it doesn't appear neither.
也许是因为我创建项目的方式:
Perhaps it is because the way I created the project:
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller -DarchetypeArtifactId=opendaylight-startup-archetype -DarchetypeRepository=https://nexus.opendaylight.org/content/repositories/public/ -DarchetypeCatalog=remote -DarchetypeVersion=1.2.2-Boron-SR2
这很奇怪,因为我下载了Carbon版本,并且可以将此发行版与Mininet连接,并且可以正常工作.最初,我打算在Carbon(最新的发行版)中构建hello项目,但是该项目无法正常工作,所以我制作了《 Hello-World in Boron》发行版.
This is strange because I downloaded the Carbon release and I could connect this distribution with Mininet and it worked. Initially I was going to build the hello project in Carbon, the latest distribution, but it didn't work so I did the Hello-World in Boron release.
有人可以帮助我吗?
这是我的 Github存储库
推荐答案
跟随此链接,生成ODL应用的命令是:
Following this link, the command to generate an ODL app is :
mvn archetype:generate -DarchetypeGroupId=org.opendaylight.controller
-DarchetypeArtifactId=opendaylight-startup-archetype \
-DarchetypeRepository=http://nexus.opendaylight.org/content/repositories/<Snapshot-Type>/ \
-DarchetypeCatalog=remote -DarchetypeVersion=<Archetype-Version>
必须按照以下说明 替换的地方:
where you have to replace as following the proper and :
- 对于当前的Master(碳),请使用Snapshot-Type = opendaylight.snapshot Archetype-Version = 1.4.0-SNAPSHOT
- 对于Carbon快照,请使用Snapshot-Type = opendaylight.release Archetype-Version = 1.3.0-Carbon
- 对于硼"SR0",请使用Snapshot-Type = opendaylight.release Archetype-Version = 1.2.0-Boron
- 对于Boron SR1,请使用Snapshot-Type = opendaylight.release Archetype-Version = 1.2.1-Boron-SR1
- 对于Boron SR2,请使用Snapshot-Type = opendaylight.release Archetype-Version = 1.2.2-Boron-SR2
- 对于硼快照,请使用Snapshot-Type = opendaylight.snapshot .Archetype-Version = 1.2.2-SNAPSHOT
- For the current Master (Carbon) use Snapshot-Type=opendaylight.snapshot Archetype-Version=1.4.0-SNAPSHOT
- For the Carbon snapshot use Snapshot-Type=opendaylight.release Archetype-Version=1.3.0-Carbon
- For Boron "SR0" use Snapshot-Type=opendaylight.release Archetype-Version=1.2.0-Boron
- For Boron SR1 use Snapshot-Type=opendaylight.release Archetype-Version=1.2.1-Boron-SR1
- For Boron SR2 use Snapshot-Type=opendaylight.release Archetype-Version=1.2.2-Boron-SR2
- For the Boron snapshot use Snapshot-Type=opendaylight.snapshot Archetype-Version=1.2.2-SNAPSHOT
您使用的命令将 1.2.2-Boron-SR2 用作,但是当您使用public
时,这是不合适的.如上面的链接所示,将public
替换为opendaylight.release
.
The command you use uses 1.2.2-Boron-SR2 as , but as you use public
, which is not the appropriate . Replace public
with opendaylight.release
, as the above link suggests.
这篇关于如何将Opendaylight连接到Mininet?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!