-->

如何Opendaylight连接到Mininet?(How to connect Opendayli

2019-09-29 22:58发布

我在一个简单的Hello World项目去学习Opendaylight基本已经工作(我在下面这个教程 )。

现在我要连接此版本控制器通过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连接这个分布和它的工作。 起初,我打算建立碳,最新发行的Hello项目,但它没有工作,所以我做了你好,世界硼释放。

谁能帮我?

这是我的Github上库

Answer 1:

下面这个链接 ,生成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>

在那里你必须更换如下正确的和:

  • 对于当前的主站(碳)使用快照类型= opendaylight.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.2快照

使用该命令使用1.2.2硼SR2的,但是当你使用public ,这是不是合适。 更换publicopendaylight.release ,如上面的链接显示。



Answer 2:

当你运行你的ODL分布,你把所有你可以随时安装它的ODL项目。 与mininet连接,您必须安装ODL-l2switch-所有功能。

在简单的Hello项目,你没有l2switch功能来安装。 这就是为什么你不能连接。 反正你可以通过添加功能/ pom.xml中和features.xml的l2switch依赖安装l2switch功能。 您必须添加l2switch.Be相同ODL版本在此小心。

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



文章来源: How to connect Opendaylight to Mininet?