Signed-off-by: Isaku Yamahata <yamah...@valinux.co.jp> --- ryu/app/simple_switch.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/ryu/app/simple_switch.py b/ryu/app/simple_switch.py index 0397bc4..7a49f28 100644 --- a/ryu/app/simple_switch.py +++ b/ryu/app/simple_switch.py @@ -13,6 +13,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +from ryu.base import main as ryu_main +ryu_main.early_init() + + import logging import struct @@ -107,3 +111,13 @@ class SimpleSwitch(app_manager.RyuApp): self.logger.info("port modified %s", port_no) else: self.logger.info("Illeagal port state %s %s", port_no, reason) + + +class SimpleSwitchBundle(app_manager.RyuBundle): + APPS = [ + 'ryu.controller.ofp_handler', SimpleSwitch + ] + + +if __name__ == '__main__': + ryu_main.main([SimpleSwitchBundle], True) -- 1.7.10.4 ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel