[Ryu-devel] Use "from ryu.base" in Eclipse/PyDev

2017-07-21 Thread Scott Reeve
Trying to import the ofctl_rest.py code into Eclipse. All looks good, but cannot import the ryu objects: The following lines of code: from ryu.base import app_manager from ryu.controller import ofp_event All have a red x to the left and the tool tip is: "Unresolved import: app_manager" o

Re: [Ryu-devel] [PATCH 0/2] ofproto: Handle OFPErrorExperimenterMsg

2017-07-21 Thread FUJITA Tomonori
On Thu, 20 Jul 2017 14:10:49 +0900 IWASE Yusuke wrote: > This patch fixes a bug which reported on: > [Ryu-devel] bug: KeyError EventOFPErrorExperimenterMsg > > IWASE Yusuke (2): > ofproto: Handle OFPErrorExperimenterMsg > unit/ofproto: Adopt to rename of OFPErrorExperimenterMsg > > ryu/c

Re: [Ryu-devel] [PATCH] ofproto: Avoid emitting illegal instruction sets

2017-07-21 Thread FUJITA Tomonori
On Wed, 5 Jul 2017 14:37:55 +0900 IWAMOTO Toshihiro wrote: > The OpenFlow spec forbids multiple occurences of a same instruction > type within a mod_flow message, so make sure > ofp_instruction_from_jsondict doesn't emit such an instruction set. > > Signed-off-by: IWAMOTO Toshihiro > --- > ry

Re: [Ryu-devel] Add an IP based flow entry to OVS

2017-07-21 Thread Iwase Yusuke
Hi, If you want to install flow entries which contain "ipv4_src" or "ipv4_dst", you need also to specify "eth_type=0x0800". Please refer to "7.2.3.8 Header Match Fields" in OpenFlow Spec 1.3.5 for more details. FYI, with "--verbose" option, Ryu should output error message if your switch rejec