首页 文章

如何将Opendaylight连接到Mininet?

提问于
浏览
1

我一直在一个简单的Hello World项目中学习Opendaylight的基础知识(我正在关注这个tutorial) .

现在我想将控制器的这个版本连接到由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

这很奇怪,因为我下载了Carbon版本,我可以将这个发行版与Mininet连接起来并且有效 . 最初我打算在最新发布的Carbon中构建hello项目,但它没有用,所以我在Boron发布了Hello-World .

谁能帮我?

这是我的Github repository

2 回答

  • 0

    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>
    

    在哪里你必须 replace as following 正确和:

    • 对于当前Master(Carbon)使用Snapshot-Type = opendaylight.snapshot Archetype-Version = 1.4.0-SNAPSHOT

    • 对于Carbon快照,使用Snapshot-Type = opendaylight.release Archetype-Version = 1.3.0-Carbon

    • For Boron "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

    • 对于Boron快照,使用Snapshot-Type = opendaylight.snapshot Archetype-Version = 1.2.2-SNAPSHOT

    您使用的命令使用 1.2.2-Boron-SR2 作为,但是当您使用 public 时,这是不合适的 . 将 public 替换为 opendaylight.release ,如上面的链接所示 .

  • 3

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

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

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

相关问题