On Wed, 12 Feb 2014 14:49:02 -0800
vinay pai <[email protected]> wrote:
> class SwitchEventApp(app_manager.RyuApp):
> _CONTEXTS = {
> 'switches': switches.Switches,
> }
>
> @set_ev_cls(EventSwitchEnter)
> def _ev_switch_enter_handler(self, ev):
> print('enter: %s' % ev)
> datapath = ev.msg.datapath (---->error on this line)
How about the following?
datapath = ev.switch.dp
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel