[Ryu-devel] [PATCH] lib/packet: add Internet Group Management Protocol

2013-08-07 Thread Yuichi Ito
Signed-off-by: Yuichi Ito --- doc/source/library_packet_ref.rst |4 + ryu/lib/packet/igmp.py | 104 + ryu/lib/packet/ipv4.py |2 + ryu/ofproto/inet.py|1 + ryu/tests/unit/packet/test_igmp.py | 146 +

[Ryu-devel] [PATCH] add LACP application

2013-08-07 Thread Yuichi Ito
this application provides the simple example of link aggregation using LACP. the module "lacplib" controls exchange of LACP packets and watches the status of the slave i/fs. the status changes if the i/fs went into a LAG or timeout to exchange LACP occurred. the module sends a "EventSlaveStateCh

[Ryu-devel] Is 'acts' of 'to_actions' map? or seq?

2013-08-07 Thread Satoshi Kobayashi
Hi, I would like to know what 'acts' will assume as a argument. I have noticed that a map is used as a default argument of 'to_actions' function in lib/ofctl_v1_3.py:257. However, it seems that 'acts' assumes a seq. I think that acts.items() is used if it is a map. (lib/ofctl_v1_3.py:245) def mod

Re: [Ryu-devel] Course on OpenFlow

2013-08-07 Thread Tonhão - Antonio Brasolin
Ooo i see, thanks for the reply. It usually works assynchronously, i even used it like that on NOX and POX, but i was having a tough time with this. Will include it on the documentation! It worked now, will carry on to doing a tutorial *all you need to program in RYU* now. Thanks for all the help

[Ryu-devel] [PATCH] unit test for OFPMatch old/new api compatibility

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/unit/ofproto/test_parser_compat.py | 133 +++ 1 file changed, 133 insertions(+) create mode 100644 ryu/tests/unit/ofproto/test_parser_compat.py diff --git a/ryu/tests/unit/ofproto/test_parser_compat.py b/ryu/tests/unit/ofpr

Re: [Ryu-devel] Course on OpenFlow

2013-08-07 Thread FUJITA Tomonori
On Wed, 7 Aug 2013 14:13:04 -0300 Tonhão - Antonio Brasolin wrote: > Sorry to bother you again, i still can't quite get it to work. > > I tried to use the method defined there, but the stats always returns empty. > > How i tried: > . > . > . > def getPeriodicStats(dp): > """show periodic st

Re: [Ryu-devel] Course on OpenFlow

2013-08-07 Thread Tonhão - Antonio Brasolin
Sorry to bother you again, i still can't quite get it to work. I tried to use the method defined there, but the stats always returns empty. How i tried: . . . def getPeriodicStats(dp): """show periodic stats on screen :param dp: the datapath from which the stats shall be shown """

[Ryu-devel] [PATCH 3/8] of12: test_parser: update expected *.json results

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json b/ryu/tests/unit/ofproto/json/of12/3-2-ofp_flow_mod.packet.json index 415a20f

[Ryu-devel] [PATCH 0/8] OFPActionSetField api change

2013-08-07 Thread YAMAMOTO Takashi
following the recent OFPMatch api changes, this set changes OFPActionSetField api. for now, compatibility with the old api is maintained. old api: ofproto_v1_3_parser.OFPActionSetField(ofproto_v1_3_parser.MTInPort( ofproto_v1_3.OXM_OF_IN_PORT, 1)) new api: ofproto_v1_3_parser.OFP

[Ryu-devel] [PATCH 1/8] of12: change set_field api, following the recent ofp_match api

2013-08-07 Thread YAMAMOTO Takashi
old api: OFPActionSetField(MTInPort(OXM_OF_IN_PORT, 1)) new api: OFPActionSetField("in_port", 1) Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_2_parser.py | 155 + 1 file changed, 122 insertions(+), 33 deletions(-) diff --git a/ryu/ofpro

[Ryu-devel] [PATCH 2/8] of12: packet_data_generator: use set_field action

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/packet_data_generator/src/x3.erl | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ryu/tests/packet_data_generator/src/x3.erl b/ryu/tests/packet_data_generator/src/x3.erl index 4052327..6f608ac 100644 --- a/ryu/tests/packet_dat

[Ryu-devel] [PATCH 8/8] of13: test_parser: regen *.packet

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/packet_data/of13/4-2-ofp_flow_mod.packet | Bin 88 -> 104 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ryu/tests/packet_data/of13/4-2-ofp_flow_mod.packet b/ryu/tests/packet_data/of13/4-2-ofp_flow_mod.packet index 4760fa63f20f

[Ryu-devel] [PATCH 5/8] of13: change set_field api, following the recent ofp_match api

2013-08-07 Thread YAMAMOTO Takashi
old api: OFPActionSetField(MTInPort(OXM_OF_IN_PORT, 1)) new api: OFPActionSetField("in_port", 1) Signed-off-by: YAMAMOTO Takashi --- ryu/ofproto/ofproto_v1_3_parser.py | 155 + 1 file changed, 122 insertions(+), 33 deletions(-) diff --git a/ryu/ofpro

[Ryu-devel] [PATCH 6/8] of13: packet_data_generator: use set_field action

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/packet_data_generator/src/x4.erl | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ryu/tests/packet_data_generator/src/x4.erl b/ryu/tests/packet_data_generator/src/x4.erl index 154bfec..c87dcb1 100644 --- a/ryu/tests/packet_dat

[Ryu-devel] [PATCH 4/8] of12: test_parser: regen *.packet

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/packet_data/of12/3-2-ofp_flow_mod.packet | Bin 88 -> 104 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/ryu/tests/packet_data/of12/3-2-ofp_flow_mod.packet b/ryu/tests/packet_data/of12/3-2-ofp_flow_mod.packet index 67796d776503

[Ryu-devel] [PATCH 7/8] of13: test_parser: update expected *.json results

2013-08-07 Thread YAMAMOTO Takashi
Signed-off-by: YAMAMOTO Takashi --- ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json | 6 ++ 1 file changed, 6 insertions(+) diff --git a/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json b/ryu/tests/unit/ofproto/json/of13/4-2-ofp_flow_mod.packet.json index 415a20f