Hi Fujita,
Thank you so much for your response! It worked perfectly with that change!
I have another small query. When I pass the flow onto my switch I see the
error on my switch as follows:
Debug: |1|00705|connmgr|INFO|sw1<->tcp:172.28.243.51:6633%management:
sending OFPBRC_EPERM error reply to OFPT_FLOW_MOD message
Debug: |1|00706|vconn|DBG|tcp:172.28.243.51:6633%management: sent
(Success): OFPT_ERROR (OF1.3) (xid=0x61504c8f): OFPBRC_EPERM
The Flow Mod message from the controller goes fine to the switch but then
the switch responds with the OFPBRC_EPERM error. I wanted to know if flow
being sent is read-only in nature because of which the error is being seen?
Does Ryu have the concept of read-only flows?
Regards,
Vinay Pai B.H.
On Wed, Feb 12, 2014 at 2:55 PM, FUJITA Tomonori <
[email protected]> wrote:
> 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
>
>
--
Vinay Pai B.H.
Grad Student - Computer Science
Viterbi School of Engineering
University of Southern California
Los Angeles, CA, USA
------------------------------------------------------------------------------
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