[Ryu-devel] launching a GRPC server within an ryu app

2017-05-20 Thread Yikai Lin
Hi all, I was trying to launch a GRPC server within an ryu app to talk to my on-switch client. The code for launching the server is as follows: server = grpc.server(futures.ThreadPoolExecutor(max_workers=10)) xx_service_pb2_grpc.add_XXServicer_to_server(XXServicer(), server) server.add_insecure_

Re: [Ryu-devel] implementing a service app in Ryu that handles requests

2017-05-20 Thread Yikai Lin
Yes it is. Actually I fixed this issue by following the thread spawning code: self.threads.append(hub.spawn(self.xxx)) previously I was doing something like: hub.spawn(self.xxx) I don’t quite get the difference when there is only one thread, but it somehow fixed the problem… > On May 19, 2017,

[Ryu-devel] packet fields extraction

2017-05-20 Thread Ashish Kurian
Hi Folks, Can I use ryu controller to extract a specific value(field) from an IP packet of S1AP protocol ? I am attaching a wireshark trace and in the trace, it has IP packets of S1AP protocol and in the packet with info as "InitialContextSetupRequest" has the TEID to be used. If you expand it, u