[Ryu-devel] [PATCH] ryu-manager: add --enable-debugger option

2015-01-26 Thread Satoshi Kobayashi
From: Satoshi Kobayashi Eventlet's monkey patch overwrite Python standard threading library by default. It affects to Python debugger working. This will be often an issue for the user of Python debugger. Therefore, it's necessary to add the option which doesn't overwrite Python standard thread

Re: [Ryu-devel] Network discovery after fault

2015-01-26 Thread Minoru TAKAHASHI
Hi, On 2015年01月26日 20:34, MD.Badruzzaman Shakib wrote: > Hello everyone, > > I am a newbie in RYU development and also in python. I want my controller to > rediscover the network topology after a link failure occurs and dump this new > topology to a file. > > Can anyone please tell me where t

Re: [Ryu-devel] I cannot debug ryu code

2015-01-26 Thread Satoshi KOBAYASHI
Hi Allen, It is probably caused from monkey patch of Eventlet. Python's standard thread is overwritten by Greenlet thread. You can patch the following to fix it. https://github.com/osrg/ryu/blob/master/ryu/cmd/manager.py#L20 hub.patch(thread=False) Thanks, Satoshi 2015-01-26 22:57 GMT+09:00 All

[Ryu-devel] I cannot debug ryu code

2015-01-26 Thread Allen
Hi, I encounter VariableError when I am debugging the ryu code in pycharm. It always displays: "Traceback (most recent call last): File "/home/xuchenhui/Software/pycharm-community-3.4.1/helpers/pydev/pydevd_vars.py", line 109, in findFrame raise VariableError("findFrame: must execute on sam

Re: [Ryu-devel] TypeError in OFPActionSetField

2015-01-26 Thread ocean shi
well, it seems that iv solved the problem. Sorry for bother u guys :( actions = [{'type':'SET_FIELD','field':'eth_dst','value':eth_src},{'type':'OUTPUT','port':in_port}] the error disappears if i wrote like that. But i'm still not sure whether it works or not. I'll confirm it when i finished my

[Ryu-devel] TypeError in OFPActionSetField

2015-01-26 Thread ocean shi
hi, i want to modify the eth_dst but failed. Firstly, I wrote one function to add the flow entry( all of the flowing codes are used in OF v1.3): def add_flow_entry(dpid,match,priority,actions): url = "http://127.0.0.1:8080/stats/flowentry/add"; post_data = "{'dpid':%s,'match':%s,'priority'

[Ryu-devel] Network discovery after fault

2015-01-26 Thread MD.Badruzzaman Shakib
Hello everyone, I am a newbie in RYU development and also in python. I want my controller to rediscover the network topology after a link failure occurs and dump this new topology to a file.  Can anyone please tell me where the topology is dumped by dumper.py? Best regardsSakib --