[Ryu-devel] Adding OpenFlow rules matching TCP

2015-04-17 Thread Srinath Ananthakrishnan
Hello, I’m new to openvswitch and ryu and am trying to write a simple flow matcher with openvswitch and ryu and I’m trying to match flows based on TCP 4 tuple. And the open flow version I’m using is 1.2. This is what my add_flow function looks like. def add_tcp_flow(self, dp, in_port, out_port

Re: [Ryu-devel] Adding OpenFlow rules matching TCP

2015-04-17 Thread Srinath Ananthakrishnan
Found this information from the OpenFlow spec. IPv4_dst and IPv4_src fields need the eth_type to be set as 0x800 and the tcp_src and tcp_dst fields require the ip_proto as 6. Thanks, Srinath From: Srinath Ananthakrishnana mailto:[email protected]>> Date: Friday, April 17, 2

Re: [Ryu-devel] [PATCH] add hard timeout while installing flowentry

2015-04-17 Thread FUJITA Tomonori
On Wed, 15 Apr 2015 11:40:21 +0800 Yi Tseng wrote: > Simple switch can't handle link failure, to handle that, we can add hard > timeout to every flow entry. Can you example a bit how the link failure can be handle with hard timeout set? Simple switch code is just an example. So I tend to keep i

Re: [Ryu-devel] [PATCH] ryu.contrib: Be explicit about sys.path modification

2015-04-17 Thread FUJITA Tomonori
On Fri, 17 Apr 2015 14:33:09 +0900 YAMAMOTO Takashi wrote: > Avoid the automatic modification of sys.path because it hurts > ryu-as-a-library use cases. > An example is the recent versions of neutron OVS-agent, > which optionally imports OVS python bindings, and ends up to > use a wrong copy in r

[Ryu-devel] to install and write ryu controller

2015-04-17 Thread Sanghamitra De
Hi, I have a few nodes in Emulab environment which have Ubuntu 14.04 LTS loaded and OVS-2.3.1 installed. In one of these nodes i want to install ryu to write a controller application. MY querries are: 1) will the following commands from: https://github.com/osrg/ryu/wiki/OpenFlow_Tutorial help

Re: [Ryu-devel] New OpenFlow Message Implementation at the controller side (RYU)

2015-04-17 Thread Ruchika Luthra
Okay. Thank you for the help Sir. On Fri, Apr 17, 2015 at 10:40 AM, YAMAMOTO Takashi wrote: > hi, > > > Thank you Takashi. > > Is this the only file that needs to be changed? or do I need to make > > changes anywhere else as well? After the changes, how do I make sure that > > the changes are

[Ryu-devel] [PATCH] of_config: Add port tunnels support

2015-04-17 Thread Raman Budny
Add port tunnels support according to OFConfig specification. Signed-off-by: Raman Budny --- Port tunnel support in of_config library seems to be supported in not full manner. There are four kind of port tunnels listed in OFConfig specification (v1.1.1, p. 47): - OFPortBaseTunnelType, - OFPortIP

Re: [Ryu-devel] New OpenFlow Message Implementation at the controller side (RYU)

2015-04-17 Thread YAMAMOTO Takashi
hi, > Thank you Takashi. > Is this the only file that needs to be changed? or do I need to make > changes anywhere else as well? After the changes, how do I make sure that > the changes are reflected? ryu/ofproto/ofproto_v1_3_parser.py is the only file to change. depending on how your message wor

Re: [Ryu-devel] New OpenFlow Message Implementation at the controller side (RYU)

2015-04-17 Thread Ruchika Luthra
Thank you Takashi. Is this the only file that needs to be changed? or do I need to make changes anywhere else as well? After the changes, how do I make sure that the changes are reflected? On Fri, Apr 17, 2015 at 8:50 AM, YAMAMOTO Takashi wrote: > > Hello, > > > > I am working with Ryu contr

Re: [Ryu-devel] [PATCH] Revert recent py3 changes under ryu/contrib

2015-04-17 Thread FUJITA Tomonori
Oops, somehow, I changed ryu/contrib by accident. Aplied, thanks. On Fri, 17 Apr 2015 13:23:14 +0900 YAMAMOTO Takashi wrote: > Revert recent py3 changes under ryu/contrib, > namely parts of the following commits: > > - commit e2dfdbf5800742ce7b3af6cf6bffb7a95b73198c > ("Treatment was not enou

[Ryu-devel] Of-config with pica8 3290 problem

2015-04-17 Thread 許洋銘
hi, everyone I just encountered the problem with connecting the switch, pica 8 3290, with ryu's of-config library. here's the traceback msg. == xdn41o71:ryu Mac$ sudo ryu-manager ryu/app/of_config.py Password: loading app ryu/app/of_c