2017-08-09 79 views
1

我一直在一个简单的Hello World项目中学习Opendaylight的基础知识(我正在关注这个tutorial)。如何将Opendaylight连接到Mininet?

现在我想将控制器的这个版本连接到由Mininet定义的网络拓扑结构,但这不起作用。我读到这可能是由于我没有安装odl-l2switch,但是当我键入feature:list --installed时,该捆绑包不会出现,并且当我输入feature:install odl-l2switch时,它也不会出现。

也许是因为我的方式创建的项目:

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

这很奇怪,因为我下载的碳释放,我可以用Mininet连接这个分布和它的工作。最初,我打算在最新的发行版Carbon中构建hello项目,但它不起作用,所以我在Boron发行版中做了Hello-World。

任何人都可以帮助我吗?

这是我Github repository

+0

您需要在features.xml和pom.xml中引用所有必需的功能(如l2-swotch) – rkosegi

回答

3

this link,生成ODL应用程序的命令是:

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> 

,你必须替换如下正确和:

  • 对于当前的Master(Carbon)使用Snapshot-Type = opendaylig ht.snapshot原型-版本= 1.4.0-SNAPSHOT
  • 用于碳快照使用快照类型= opendaylight.release原型-版本= 1.3.0 - 碳
  • 硼 “SR0” 使用快照型= opendaylight.release原型-版本= 1.2.0硼
  • 硼SR1使用快照类型= opendaylight.release原型-版本= 1.2.1硼SR1
  • 硼SR2使用快照类型= opendaylight.release原型-版本= 1.2.2硼-SR2
  • 对于硼快照使用快照类型= opendaylight.snapshot原型-版本= 1.2 1,2-快照

使用该命令使用1.2.2硼SR2但你用public,这是不是合适。如上面的链接所示,将public替换为opendaylight.release

+0

很高兴我帮忙!如果可能的话,如果你提高了我的答案,也会很高兴:) – Marievi

0

当您运行ODL分配时,您可以随时安装所有ODL项目。要与mininet连接,您必须安装odl-l2switch-all功能。

在简单的Hello项目中,您不需要安装l2switch功能。这就是为什么你无法连接。无论如何,您可以通过在Features/pom.xml和features.xml中添加l2switch依赖项来安装l2switch功能。您必须添加相同的ods版本的l2switch。请小心。

请检查功能:列表| grep“l2switch”可用或不可用。如果是这样,请安装并启动mininet!你现在完成了!