博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
selective_switch.py
阅读量:4335 次
发布时间:2019-06-07

本文共 480 字,大约阅读时间需要 1 分钟。

from pox.core import corefrom pox.lib.util import str_to_dpidfrom pox.forwarding.l2_learning import LearningSwitchdef launch (ignore_dpid):  ignore_dpid = str_to_dpid(ignore_dpid)  def _handle_ConnectionUp (event):    if event.dpid != ignore_dpid:      core.getLogger().info("Connection %s" % (event.connection,))      LearningSwitch(event.connection, False)  core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp)

 

转载于:https://www.cnblogs.com/zflibra/p/4040569.html

你可能感兴趣的文章
C#用于对用户输入数据进行校验的类
查看>>
低速前碰开发
查看>>
python-9-IO编程
查看>>
【GoLang】转载:我为什么放弃Go语言,哈哈
查看>>
【MySQL】MySQL 如何实现 唯一随机数ID
查看>>
【Redis】Redis分布式集群几点说道
查看>>
HDU2819(KB10-E 二分图最大匹配)
查看>>
mysql主从复制、redis基础、持久化和主从复制
查看>>
文档工具GitBook使用
查看>>
两个链表的第一个公共节点
查看>>
知道这20个正则表达式,能让你少写1,000行代码
查看>>
Digit Sum II( ABC044&ARC060)
查看>>
【原创】Kakfa metrics包源代码分析
查看>>
MariaDB 主从同步与热备(14)
查看>>
推荐的 CSS 书写顺序
查看>>
NIO:与 Buffer 一起使用 Channel
查看>>
Android帧缓冲区(Frame Buffer)硬件抽象层(HAL)模块Gralloc的实现原理分析
查看>>
Android - 广播机制和Service
查看>>
MFC接收ShellExecute多个参数
查看>>
volatile和synchronized的区别
查看>>