Re: [Ryu-devel] How to send a ryu event to other modules in Statscontroller in ofctl_rest.py

2016-03-11 Thread Weiyang Mo
I did some attempts and find one solution, but it is inefficient. I would appreciate if anyone can help me with a easier approach. The key part is how to find the instantiated instance by app_manager.RYUapp, one way I find is to use locals()['self'] to find the object and refer to a variable. Lat

[Ryu-devel] How to send a ryu event to other modules in Statscontroller in ofctl_rest.py

2016-03-11 Thread Weiyang Mo
Hi All, I use the ofctl_rest.py to use the service. I get stuck in that how can I send out events to other modules.' For example, suppose when I visit /stats/switches to get a list of switches, I want to send some events to another running RYU module (assume ryu_app1.py) before generate a web

Re: [Ryu-devel] [PATCH] Cleanups to controller.py

2016-03-11 Thread FUJITA Tomonori
On Wed, 2 Mar 2016 09:28:00 + Victor Orlikowski wrote: > A set of minor cleanups. > 1) Remove the unused import of MAIN_DISPATCHER from ryu.controller.handler. > 2) Remove the extraneous "close_requested" variable. > 3) Ensure use of equality instead of identity for testing against > DEAD_DI

Re: [Ryu-devel] [PATCH 0/2] BGP PEP-8 and Python3 fixes

2016-03-11 Thread FUJITA Tomonori
On Tue, 8 Mar 2016 01:07:31 + Jason Kölker wrote: > Found running flake8 under python3. > > ryu/lib/packet/bgp.py | 74 + > ryu/services/protocols/bgp/api/jsonrpc.py | 3 +- > ryu/services/protocols/bgp/applicati

Re: [Ryu-devel] [PATCH 1/2] protocols/ovsdb: Fix shadow loop variables [F402]

2016-03-11 Thread FUJITA Tomonori
On Fri, 4 Mar 2016 00:41:22 + Jason Kölker wrote: > Signed-off-by: Jason Kölker > --- > ryu/services/protocols/ovsdb/client.py | 6 +++--- > ryu/services/protocols/ovsdb/manager.py | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) Applied both, thanks! ---

Re: [Ryu-devel] [PATCH 1/3] ofproto_v1_3: Add unit test cases for action experimenter

2016-03-11 Thread FUJITA Tomonori
On Thu, 10 Mar 2016 13:19:17 +0900 Minoru TAKAHASHI wrote: > Signed-off-by: Minoru TAKAHASHI > --- > .../of13/4-12-ofp_flow_stats_reply.packet | Bin 520 -> 552 bytes > ryu/tests/packet_data/of13/4-2-ofp_flow_mod.packet | Bin 264 -> 280 bytes > ryu/tests/packet_data_generator/src/x4.e

Re: [Ryu-devel] [PATCH] ofproto_v1_5: Reduce an unnecessary code

2016-03-11 Thread FUJITA Tomonori
On Thu, 10 Mar 2016 13:22:12 +0900 Minoru TAKAHASHI wrote: > Signed-off-by: Minoru TAKAHASHI > --- > ryu/ofproto/ofproto_v1_5_parser.py | 1 - > 1 file changed, 1 deletion(-) Applied, thanks. -- Transform Data into Op

Re: [Ryu-devel] [PATCH] ofproto_v1_5: Add test case for OFPExperimenter

2016-03-11 Thread FUJITA Tomonori
On Thu, 10 Mar 2016 13:23:26 +0900 Minoru TAKAHASHI wrote: > Signed-off-by: Minoru TAKAHASHI > --- > .../packet_data/of15/libofproto-OFP15-experimenter.packet | Bin 0 -> 20 > bytes > .../json/of15/libofproto-OFP15-experimenter.packet.json| 7 +++ > 2 files changed, 7 insertions(+)

[Ryu-devel] topology with python 3

2016-03-11 Thread Martin Zeller
Hello, The rest_topology app does not currently work with python3, due to problems in topology/switches.py: switches: Exception occurred during handler processing. Backtrace from offending handler [lldp_packet_in_handler] servicing event [EventOFPPacketIn] follows. Traceback (most recent call l

Re: [Ryu-devel] How to let a RYU application to support a permanent socket server

2016-03-11 Thread David Gabriel
Hi Look at this example . It was suggested by Iwase. I used it to trigger & catch event and it is very useful. Hope it helps ... Kind regards 2016-03-10 12:54 GMT-08:00 Weiyang Mo : > Hi all, > > I