Re: [Ryu-devel] [PATCH] Translate online document to Chinese

2015-07-23 Thread FUJITA Tomonori
On Fri, 24 Jul 2015 01:48:15 +0800 Yi Tseng wrote: > I'm working on translate online document to Traditional Chinese version Great! > I change Makefile so that you can change language with additional parameter > https://github.com/TakeshiTseng/ryu/commit/880836e > https://github.com/TakeshiTsen

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月24日 11:33, Vinllen Chen wrote: > Dear iwase : > > Thankyou, so do you have any other idea to solve this problem. I found this > problem could not be solved even when i use epoll which is not a blocking I/O. How about using the thread pool of eventlet when run "read"? http://eve

[Ryu-devel] [PATCH] packet_data_generator2: Adopt upgrade of ofputil_packet_in

2015-07-23 Thread Yusuke Iwase
In accordance with the upgrade of ofputil_packet_in structure in OVS libraries, this patch fixes the usage of struct ofputil_packet_in when initializing the flow metadata field. FYI: The appropriate commit on OVS GitHub https://github.com/openvswitch/ovs/commit/50dcbd8ed473210e6d2aa44f28843fb41741

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Dear iwase : Thankyou, so do you have any other idea to solve this problem. I found this problem could not be solved even when i use epoll which is not a blocking I/O. On Fri, Jul 24, 2015 at 7:51 AM, Yusuke Iwase wrote: > Hi, > > On 2015年07月23日 17:21, Vinllen Chen wrote: > > Hi, Haixiang and i

[Ryu-devel] [PATCH] remove old OpenStack plugin code

2015-07-23 Thread FUJITA Tomonori
The old Ryu plugin was already removed in OpenStack. No need to keep the files for it. Signed-off-by: FUJITA Tomonori --- ryu/app/client.py | 286 - ryu/app/quantum_adapter.py | 446 -- ryu/app/rest.py|

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月23日 17:21, Vinllen Chen wrote: > Hi, Haixiang and iwase : > > Hear comes my code : > class Main(app_manager.RyuApp) : > > def __init__(self, *args, **kwargs): > > def start(self) : > super(Main, self).start() > self.threads.append(hub.s

Re: [Ryu-devel] lldp not working if there exist legacy switch in topology

2015-07-23 Thread FUJITA Tomonori
On Fri, 24 Jul 2015 01:12:55 +0800 Yi Tseng wrote: > Hi > > switches, hosts RESTful API works fine > > and I use wireshark to check packet, and I can't see and lldp packet sent > from switch I guess that it's the correct behavior (a switch doesn't forward lldp packets): https://wiki.wireshark

Re: [Ryu-devel] lldp not working if there exist legacy switch in topology

2015-07-23 Thread Yi Tseng
Hi switches, hosts RESTful API works fine and I use wireshark to check packet, and I can't see and lldp packet sent from switch -- Yi 2015-07-22 18:09 GMT+08:00 FUJITA Tomonori : > On Wed, 22 Jul 2015 15:11:16 +0800 > Yi Tseng wrote: > > > Hi > > > > As title, my topology looks like: > > > >

[Ryu-devel] BNG via RyuController

2015-07-23 Thread bogdan.cerisan
Hi, I have some questions for you. In this moment I implement functionalities of BNG using ryu controller. I did until now the follow implementations like: * DHCP Relay Agent * Authentication before sending DHCP Discover and authorization after DHCP ACK + Routing Rules (openflo

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Hi, Haixiang and iwase : Hear comes my code : class Main(app_manager.RyuApp) : def __init__(self, *args, **kwargs): def start(self) : super(Main, self).start() self.threads.append(hub.spawn(Tun_Tap())) # call Tun_Tap class class Tun_Tap() : def __

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Yusuke Iwase
Hi, On 2015年07月23日 16:18, Vinllen Chen wrote: > Hi, Dear all: > > I want to create a new thread/coroutine in RYU app, i find it's not ok to > write the code below: > > class App(app_manager.RyuApp) : > def __init__(self, *args, **kwargs): > ... > hub.spawn(New_One()) What m

Re: [Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread 杨haixiang
Hi, Vinllen you could overwrite start method, like this: def start(self):super(App,self).start() self.threads.append(hub.spawn(another_method)) Best RegardsHaixiang YANG Date: Thu, 23 Jul 2015 15:18:38 +0800 From: [email protected] To: [email protected] Subject: [Ryu-devel

[Ryu-devel] How to creat new thread in RYU

2015-07-23 Thread Vinllen Chen
Hi, Dear all: I want to create a new thread/coroutine in RYU app, i find it's not ok to write the code below: class App(app_manager.RyuApp) : def __init__(self, *args, **kwargs): ... hub.spawn(New_One()) -- Best Regards, Vinllen --