[Ryu-devel] [PATCH 2/2] Add register_service to topology events

2015-08-18 Thread Yi Tseng
If an application consumes topology event, Switches application should start automatically. Please check attached file for more detail. -- Yi Tseng (a.k.a Takeshi) Taiwan National Chiao Tung University Department of Computer Science W2CNLab http://blog.takeshi.tw From 82b5a0c9523c951f8083f951a

[Ryu-devel] [PATCH 1/2] Add EventHostAdd event.

2015-08-18 Thread Yi Tseng
This event is generated when a new host is added to a switch. Please check attached file for more detail. -- Yi Tseng (a.k.a Takeshi) Taiwan National Chiao Tung University Department of Computer Science W2CNLab http://blog.takeshi.tw From f5ec915cf6c7aa3174875647b87e5e5de069fecf Mon Sep 17 00:0

Re: [Ryu-devel] QoS in torrent traffic

2015-08-18 Thread Dimitris Armenatzoglou
Probably you should concentrate on *how to* identify torrent traffic. I think that the most challenging part is to identify and match the torrent traffic rather than applying the QoS rules. Regards, DA On 18 August 2015 at 08:02, Minoru TAKAHASHI wrote: > Hi, > > On 2015年08月15日 23:30, Marcos Bo

[Ryu-devel] Failure while adding flow using curl.

2015-08-18 Thread vinay pai
Hi, When I try to add a flow to the switch using the curl command, its throwing an error and I am not able to figure out what exactly it means. Any help will be greatly appreciated! Output as below: ryu@ryu-vm:~$ curl -X GET http://localhost:8080/stats/switches [374383422768450] ryu@ryu-vm:~$ ry

Re: [Ryu-devel] [IMPORTANT]: Query regarding BGP Speaker and BGP Peer States.

2015-08-18 Thread FUJITA Tomonori
On Mon, 17 Aug 2015 23:19:55 +0900 (JST) FUJITA Tomonori wrote: > Oops, looks like I left out exporting the important API (I'll export > this soon). But, you can easily do such. How about the following? = >From ba66fb909eda153b215f2d7440c8e649a04a6da3 Mon Sep 17 00:00:00 2001 From: FUJITA Tomon

[Ryu-devel] [PATCH 0/8] Related to 'B.18.12' and 'B.18.14' in OpenFlow 1.5

2015-08-18 Thread Yusuke Iwase
These patches are related to the updates about 'B.18.12 Controller connection status'(EXT-454)(EXT-275) and 'B.18.14 Enable setting all pipeline fields in packet-out' (EXT-427) in OpenFlow 1.5. If these patches will be merged, Ryu will support all updates which are specified in 'Release Notes' of

[Ryu-devel] [PATCH 1/8] ofproto_v1_5_parser: Enable OFPRoleRequest to set short_id

2015-08-18 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces short_id to identify controller themselves and enables ofp_role_request to set short_id. This patch adds short_id field into OFPRoleRequest message. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 25 ++--- 1 file changed, 18

[Ryu-devel] [PATCH 2/8] ofproto_v1_5_parser: Add OFPControllerStatusProp support

2015-08-18 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces controller status property to describe additional controller status information. This patch add controller status property support. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 29 + 1 file changed, 29 insertions(+

[Ryu-devel] [PATCH 4/8] ofproto_v1_5_parser: Add OFPControllerStatusStats support

2015-08-18 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces controller status multipart messages to query status of controller connections. This patch adds controller status multipart messages support. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 63 ++ 1 file chang

[Ryu-devel] [PATCH 3/8] ofproto_v1_5_parser: Add OFPControllerStatus support

2015-08-18 Thread Yusuke Iwase
OpenFlow Spec 1.5 introduces controller status message to inform controller of changes in connection status. This patch adds controller status message support. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5_parser.py | 111 + 1 file changed, 111 ins

[Ryu-devel] [PATCH 5/8] test_parser: Add implemented type for OFPT_CONTROLLER_STATUS

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/tests/unit/ofproto/test_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ryu/tests/unit/ofproto/test_parser.py b/ryu/tests/unit/ofproto/test_parser.py index d7a..274a6aa 100644 --- a/ryu/tests/unit/ofproto/test_parser.py +++ b/ryu/tests/unit/o

[Ryu-devel] [PATCH 6/8] test_parser: Add test case for OFP15 controller connection status messages

2015-08-18 Thread Yusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support controller connection status messages [EXT-454] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob

[Ryu-devel] [PATCH 8/8] test_parser: Add test case for OFP15 packet_out

2015-08-18 Thread Yusuke Iwase
TODO: Because Open vSwitch (lib/ofp-util) does not support OF1.5 packet_out structure [EXT-427] yet, re-generate the packet data by using packet_data_generator2 when Open vSwitch supports it. Reference: OpenFlow 1.1+ support status of Open vSwitch https://github.com/openvswitch/ovs/blob/master/OPE

[Ryu-devel] [PATCH 7/8] ofproto_v1_5_parser: Enable setting OFPMatch in OFPPacketOut message

2015-08-18 Thread Yusuke Iwase
OpenFlow 1.5 supports setting all pipeline field of the packet in the Packet-Out message. This patch adds match field in packet_out message and moves the in_port field into the match field. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_5.py| 5 +++-- ryu/ofproto/ofproto_v1_5_p

[Ryu-devel] [PATCH 1/9] ofproto_v1_4_parser: Move utility method to OFPPropBase

2015-08-18 Thread Yusuke Iwase
The backport from ofproto_v1_5_parser: This patch moves get_rest() and serialize() from OFPTableFeatureProp to OFPPropBase in order to share it with other subclass. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_4_parser.py | 52 +++--- 1 file changed, 26

[Ryu-devel] [PATCH 0/9] Refine OFP*PropExperimenter classes

2015-08-18 Thread Yusuke Iwase
These patches refine OFP*PropExperimenter classes in ofproto_v1_[345]_parser.py and add the implementation for the remaining TODO in ofproto_v1_3_parser.py. IWASE Yusuke (9): ofproto_v1_4_parser: Move utility method to OFPPropBase ofproto_v1_[345]: Define common structure for experimenter prop

[Ryu-devel] [PATCH 2/9] ofproto_v1_[345]: Define common structure for experimenter property

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_3.py| 9 + ryu/ofproto/ofproto_v1_4.py| 9 + ryu/ofproto/ofproto_v1_4_parser.py | 4 ++-- ryu/ofproto/ofproto_v1_5.py| 9 + ryu/ofproto/ofproto_v1_5_parser.py | 4 ++-- 5 files changed, 31 inser

[Ryu-devel] [PATCH 3/9] ofproto_v1_[45]_parser: Fix to parse experimenter_data

2015-08-18 Thread Yusuke Iwase
This patch fixes to parse experimenter_data of ofp_*_prop_experimenter as a list of uint32_t values at OFPPropCommonExperimenter4ByteData. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_4_parser.py | 23 --- ryu/ofproto/ofproto_v1_5_parser.py | 23

[Ryu-devel] [PATCH 4/9] test_parser: Fix some expected json representations

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- .../unit/ofproto/json/of14/5-22-ofp_port_mod.packet.json| 11 --- .../unit/ofproto/json/of14/5-23-ofp_table_mod.packet.json | 11 --- .../ofproto/json/of14/5-30-ofp_port_stats_reply.packet.json | 11 --- .../json/of14/5-36-ofp_queue_st

[Ryu-devel] [PATCH 5/9] ofproto_v1_3_parser: Backport OFPPropBase/OFPPropCommonExperimenter4ByteData

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_3_parser.py | 117 + 1 file changed, 117 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index 663344c..19caac6 100644 --- a/ryu/ofproto/ofproto_v1_3_par

[Ryu-devel] [PATCH 6/9] ofproto_v1_[45]_parser: Add missing OFPTFPT_EXPERIMENTER_MISS

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_4_parser.py | 2 +- ryu/ofproto/ofproto_v1_5_parser.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index d2c22f1..beebda7 100644 --- a/ryu/ofp

[Ryu-devel] [PATCH 7/9] ofproto_v1_3_parser: Backport OFPTableFeatureProp class

2015-08-18 Thread Yusuke Iwase
This patch backports OFPTableFeatureProp class from ofproto_v1_[45]_parser.py. Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_3_parser.py | 139 +++-- 1 file changed, 26 insertions(+), 113 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ry

[Ryu-devel] [PATCH 8/9] ofproto_v1_3_parser: Add OFPQueuePropExperimenter support

2015-08-18 Thread Yusuke Iwase
This patch is the implementation for the following TODO. - # TODO: add ofp_queue_prop_experimenter Signed-off-by: IWASE Yusuke --- ryu/ofproto/ofproto_v1_3_parser.py | 55 ++ 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/ryu/ofproto/ofproto_v

[Ryu-devel] [PATCH 9/9] test_parser: Add test case for OFPQueuePropExperimenter

2015-08-18 Thread Yusuke Iwase
Signed-off-by: IWASE Yusuke --- .../of13/4-36-ofp_queue_get_config_reply.packet| Bin 112 -> 211 bytes ryu/tests/packet_data_generator/src/x4.erl | 16 +- .../4-36-ofp_queue_get_config_reply.packet.json| 56 - 3 files changed, 68 insertions(+), 4 deletion

[Ryu-devel] how to configure ofagent in multi-node openstack?

2015-08-18 Thread xueguanwen
Hi,All,I want to test ofagent in openstack,my enviroment is:openstack kilomulti-node deploy(compute+network/controller)i refer to the link below:https://github.com/osrg/ryu/wiki/Configuration-OpenStack-OFAgent-agent now the br-int is connected to localhost controller,but br-tun & br-ex is not