[Ryu-devel] How to measure the controller response time in RYU?

2016-02-26 Thread mehran shetabi
Hi, In RYU, I want to measure the time between the moment that a new flow is received in an OpenFlow switch and the moment that a RYU controller added related rule in the flow table of that switch. In other word, I want to measure the controller response time. Is there any way to do this? Than

[Ryu-devel] [PATCH 8/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Update applications to remember and close() old Datapaths that may not longer be valid. Signed-off-by: Victor J. Orlikowski --- ryu/app/cbench.py | 8 ryu/app/ofctl/service.py | 2 ++ ryu/app/simple_switch.py | 7 ++- ryu/app/simple_switch_12.py| 7 +++

[Ryu-devel] [PATCH 7/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
A spate of typo fixes. Signed-off-by: Victor J. Orlikowski --- ryu/base/app_manager.py | 4 ++-- ryu/controller/controller.py | 8 ryu/lib/hub.py | 34 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ryu/base/app_

[Ryu-devel] [PATCH 6/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Add a new feature: an echo request loop, which implements a liveness check for connected Datapaths. This feature is off by default, but can be enabled by setting the config file option maximum_unreplied_echo_requests to a positive integer value. Signed-off-by: Victor J. Orlikowski --- ryu/co

[Ryu-devel] [PATCH 5/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Change socket-timeout from being a CLI option to being a config file option, since this should not *normally* need to be set on the command line. Signed-off-by: Victor J. Orlikowski --- ryu/controller/controller.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ryu

[Ryu-devel] [PATCH 4/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Clean up socket close() handling still more. Also, temporarily work around a bug in eventlet's Queue.put() by wrapping the send_q with a semaphore. Signed-off-by: Victor J. Orlikowski --- ryu/controller/controller.py | 62 ++-- 1 file changed, 42 inserti

[Ryu-devel] [PATCH 3/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Wrap handler calls in the event loop in a try/except, and log exceptions, in order to prevent an exception from terminating the execution of the event loop. Wrapper name also added to hub.py for GreenletExit. Signed-off-by: Victor J. Orlikowski --- ryu/base/app_manager.py | 12 +++- r

[Ryu-devel] [PATCH 2/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Use a slightly lighter Queue implementation, that does not include an internal counter. Signed-off-by: Victor J. Orlikowski --- ryu/lib/hub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/lib/hub.py b/ryu/lib/hub.py index 5621147..ce5e150 100644 --- a/ryu/lib/hub.py

[Ryu-devel] [PATCH 1/8] Stability improvements to the core of Ryu; should be applied in order.

2016-02-26 Thread Victor Orlikowski
Protect events queue with a semaphore, due to a discovered bug in eventlet queue put(). This is a temporary workaround until eventlet is fixed. Signed-off-by: Victor J. Orlikowski --- ryu/base/app_manager.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ryu/base/app_manager.py b/ryu/b

Re: [Ryu-devel] [PATCH v5] Stability improvements to the core of Ryu, without requiring user application changes

2016-02-26 Thread Victor Orlikowski
On Feb 26, 2016, at 12:12 AM, IWAMOTO Toshihiro wrote: > > I think it's optional but separating these things into different > patches is good. Also please write commit messages that concisely > describe the changes and your problem, not changelog from older > patchsets. A patchset is forthcomin

Re: [Ryu-devel] [PATCH v5] Stability improvements to the core of Ryu, without requiring user application changes

2016-02-26 Thread Victor Orlikowski
> On Feb 26, 2016, at 12:12 AM, IWAMOTO Toshihiro wrote: > > From the eventlet code, acquire() has no chance to return other than > True. I think such an assert statement with a side-effect should be > avoided in general. Things will break when someone decides to turn on > optimization and ass

[Ryu-devel] Unable to install ryu in ubuntu 14.04

2016-02-26 Thread Pynbiang Hadem
when i run the command *python ./setup.py install *the following error messages is encountered. *error in ryu setup command: 'tests_require' must be a string or list of strings containing valid project/version requirement specifiers* Pls help. Regards Hadem ---