opendaylight

2019 SDN上机第4次作业

隐身守侯 提交于 2019-12-05 03:08:38
目录 1.解压安装OpenDayLight控制器(本次实验统一使用Beryllium版本) 2.启动并安装插件 3. 用Python脚本搭建如下拓扑,连接OpenDayLight控制器 4. 在控制器提供的WEB UI中下发流表使h2 20s内ping不通h3,20s后恢复 5. 借助Postman通过OpenDayLight的北向接口下发流表,再利用OpenDayLight北向接口查看已下发的流表。 1.解压安装OpenDayLight控制器(本次实验统一使用Beryllium版本) 通过如下语句打开编辑bashrc sudo gedit ~/.bashrc 在最后加入如下代码 export JAVA_HOME=/usr/local/java/jdk1.8.0_201 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH 接着解压安装OpenDayLight控制器 2.启动并安装插件 通过进入解压的压缩包,执行./bin/karaf 通过以下语句安装插件 feature:install odl-restconf feature:install odl-l2switch-switch-ui

2019 SDN上机第4次作业

六眼飞鱼酱① 提交于 2019-12-05 03:06:00
1. 解压安装OpenDayLight控制器(本次实验统一使用Beryllium版本)以及features安装 在做这次作业之前安装好了,没有截图emm 2. 用 Python脚本 搭建如下拓扑,连接OpenDayLight控制器 使用如下py文件创建拓扑。 #!/usr/bin/python from mininet.topo import Topo class MyTopo(Topo): def __init__(self): Topo.__init__(self) sw=self.addSwitch("s1") count=1; for i in range(3): h = self.addHost("h{}".format(count)) self.addLink(sw, h) count += 1 topos = {"mytopo": (lambda : MyTopo()) } 运行该拓扑,并将其连接至本地ODL控制器。6633指的是默认交换机端口。 进行pingall操作后控制器检测到主机,成功显示预期的拓扑图。 3. 在控制器提供的WEB UI中下发流表使h2 20s内ping不通h3,20s后恢复 下发流表项id为12的流表,hardtime设置为20 h1 ping h3中断20s 4. 借助Postman通过OpenDayLight的北向接口下发流表

2019 SDN上机第4次作业

早过忘川 提交于 2019-12-05 02:58:06
1. 解压安装OpenDayLight控制器(本次实验统一使用Beryllium版本) 2. 启动并安装插件 安装插件 Beryllium版本的插件安装可参考链接 3. 用Python脚本搭建如下拓扑,连接OpenDayLight控制器 注意事项: 新建的py脚本文件权限要改为可执行 要求提交控制器端的拓扑图 4. 在控制器提供的WEB UI中下发流表使h2 20s内ping不通h3,20s后恢复 要求至少提交h2 ping h3 中断又恢复的截图 5. 借助Postman通过OpenDayLight的北向接口下发流表,再利用OpenDayLight北向接口查看已下发的流表。 下载并解压安装Postman,Postman下载地址 要求提交Postman下发流表及查看流表的截图 来源: https://www.cnblogs.com/ruifeng1/p/11900347.html

2019 SDN上机第4次作业

别来无恙 提交于 2019-12-05 02:55:32
1.安装 安装ODL后安装插件 2.3用 Python脚本 搭建如下拓扑,连接OpenDayLight控制器 拓扑如图: Python代码: from mininet.topo import Topo class Mytopo(Topo): def __init__(self): Topo.__init__(self) sw=self.addSwitch('s1') count=1 for i in range(3): host = self.addHost('h{}'.format(count)) self.addLink(host,sw,1,count) count = count + 1 topos = {'mytopo': (lambda:Mytopo())} 搭建拓扑后输入pingall检测连通性,同时在控制器端查看拓扑图: 3.在控制器提供的WEB UI中下发流表使h2 20s内ping不通h3,20s后恢复 输入links,查看端口连通情况,可以看到h2连接交换机的2号端口 在Yang UI界面输入node、table和flow的id,进入端口设置为2,ethernet-type设置为0x0800,设置ipv4-march中的源地址为10.0.0.2/32,目标地址为10.0.0.3/32 instruction与action的order设置为0 时间延迟设置为20s

sdn第四次作业

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 23:37:44
1. 解压安装OpenDayLight控制器(本次实验统一使用Beryllium版本) 2. 启动并安装插件 3. 用Python脚本搭建如下拓扑,连接OpenDayLight控制器 4. 在控制器提供的WEB UI中下发流表使h2 20s内ping不通h3,20s后恢复 5. 借助Postman通过OpenDayLight的北向接口下发流表,再利用OpenDayLight北向接口查看已下发的流表。 来源: https://www.cnblogs.com/lhwblogs/p/11888564.html

Problem when compiling the latest version of l2switch

瘦欲@ 提交于 2019-12-04 05:09:25
问题 I would like to work with the newer version of l2switch plugin, but when I try to compile the project i get the following errors: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project loopremover-impl: Compilation failure: Compilation failure: [ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/topology/TopologyLinkDataChangeHandler.java:[283,41] cannot find

Maven MojoExecutionException

末鹿安然 提交于 2019-12-04 02:37:43
I am facing this issue , when i am deploying my application using Maven, please suggest some solution. Error log, [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19.790s [INFO] Finished at: Wed Apr 23 10:44:13 IST 2014 [INFO] Final Memory: 54M/131M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project clustering.services: Fatal error compiling: tools.jar not found: C:\Program

OpenDaylight Oxygen Deploy app built from opendaylight-startup-archetype

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: OpenDaylight Oxygen Maven 3.3.9 Ubuntu 16.04 karaf 4 ~/.m2/settings.xml - cp -n ~/.m2/settings.xml{,.orig} ; wget -q -O - https://raw.githubusercontent.com/opendaylight/odlparent/master/settings.xml > ~/.m2/settings.xml Process used to create skeleton mvn archetype:generate -DgroupId=org.opendaylight.controller -DartifactId=testing -Dcopyright="None" -DclassPrefix="\${artifactId.substring(0,1).toUpperCase()}\${artifactId.substring(1)}" -DarchetypeGroupId=org.opendaylight.archetypes -DarchetypeArtifactId=opendaylight-startup-archetype

Integrate ODL with Jaeger or Zipkin

旧时模样 提交于 2019-12-02 10:38:20
I am trying to integrate an ODL application with Jaeger or Zipkin to trace the logs. Jaeger worked with fine with a Java Application, but doesn't work with ODL. I get NoClassDefError even though I added the bundles: install -s wrap:mvn:org.apache.thrift/libthrift/0.12.0 install -s wrap:mvn:io.jaegertracing/jaeger-core/0.35.4 install -s wrap:mvn:io.jaegertracing/jaeger-thrift/0.35.4 install -s wrap:mvn:io.opentracing/opentracing-api/0.31.0 install -s wrap:mvn:io.opentracing/opentracing-util/0.31.0 install -s wrap:mvn:io.opentracing/opentracing-noop/0.31.0 install -s wrap:mvn:io.opentracing

Problem when compiling the latest version of l2switch

江枫思渺然 提交于 2019-12-02 06:43:23
I would like to work with the newer version of l2switch plugin, but when I try to compile the project i get the following errors: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project loopremover-impl: Compilation failure: Compilation failure: [ERROR] /C:/Users/kevin/git/l2switch/loopremover/implementation/src/main/java/org/opendaylight/l2switch/loopremover/topology/TopologyLinkDataChangeHandler.java:[283,41] cannot find symbol [ERROR] symbol: method getAugmentation(java.lang.Class<org.opendaylight.yang.gen.v1.urn.opendaylight