@@ -0,0 +1,1370 @@
+# Copyright 2013 YAMAMOTO Takashi%0A#%0A# This file is part of POX.%0A#%0A# POX is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# POX is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with POX.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0A%22%22%22%0Aa dummy module for oflops cbench benchmark%0A%0Athis is intended to be comparable with ryu cbench app.%0A%09https://github.com/osrg/ryu/blob/master/ryu/app/cbench.py%0A%22%22%22%0A%0Afrom pox.core import core%0Aimport pox.openflow.libopenflow_01 as of%0Afrom pox.lib.revent import EventMixin%0A%0A%0Aclass CBench (EventMixin):%0A  def __init__ (self, connection):%0A    self.connection = connection%0A    self.listenTo(connection)%0A%0A  def _handle_PacketIn (self, event):%0A    msg = of.ofp_flow_mod()%0A    self.connection.send(msg)%0A%0Aclass cbench (EventMixin):%0A  def __init__ (self):%0A    self.listenTo(core.openflow)%0A%0A  def _handle_ConnectionUp (self, event):%0A    CBench(event.connection)%0A%0A%0Adef launch ():%0A  core.registerNew(cbench)%0A

implement ryu-compatible cbench app