Re: [Ryu-devel] How to set IP address to the interfaces/ports of openflow switches(openvswitch) from RYU

2016-03-29 Thread Pynbiang Hadem
Iwase, What i need is a way to set the IP address to the switch's interfaces during the RYU "*switch_features_handler*"(@set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DISPATCHER)) phase. I believe one way is to do it, is using RYU REST services with the CURL command, but i have not been abl

Re: [Ryu-devel] Ryu4.0 get portdesc error when using ofctl_rest api

2016-03-29 Thread mark
Hi Sir, i test OVS also, it do really works fine when query portdesc. it might be our DUT switch issue, i will ask to fix it. Thanks for your great help!!! BR< Mark On 3/30/16 10:10 AM, Iwase Yusuke wrote: > Hi, > > On my environment, I could get port_desc response. > > > $ ryu-manager ryu.app.

Re: [Ryu-devel] Ryu4.0 get portdesc error when using ofctl_rest api

2016-03-29 Thread Iwase Yusuke
Hi, On my environment, I could get port_desc response. $ ryu-manager ryu.app.ofctl_rest --verbose ... (10220) wsgi starting up on http://0.0.0.0:8080 connected socket: address:('127.0.0.1', 49389) hello ev move onto config mode EVENT ofp_event->dpset EventOFPSwitchFeatures switch features ev

[Ryu-devel] [PATCH 3/3] doc/app/ofctl_rest: Update example of set-field action

2016-03-29 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- doc/source/app/ofctl_rest.rst | 34 -- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst index e8c42dd..c31ad5e 100644 --- a/doc/source/app/ofctl_rest.rst

[Ryu-devel] [PATCH 2/3] doc/app/ofctl_rest: Update the code-block language of response data

2016-03-29 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- doc/source/app/ofctl_rest.rst | 54 +-- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst index 2d79007..e8c42dd 100644 --- a/doc/source/app/ofctl

[Ryu-devel] [PATCH 1/3] doc/app/ofctl_rest: Update the ryu.app.ofctl_rest version from openflow1.3 to openflow1.4

2016-03-29 Thread Shinpei Muraoka
Signed-off-by: Shinpei Muraoka --- doc/source/app/ofctl_rest.rst | 567 +- 1 file changed, 559 insertions(+), 8 deletions(-) diff --git a/doc/source/app/ofctl_rest.rst b/doc/source/app/ofctl_rest.rst index 706061c..2d79007 100644 --- a/doc/source/app/ofctl

[Ryu-devel] [PATCH 0/3] Add description of the Openflow 1.4

2016-03-29 Thread Shinpei Muraoka
Currently, the ryu.app.ofctl_rest chapter of the document supports the contents of the OpenFlow 1.3. The following patch fixes the ofctl_rest.rst to support the request and Body data that was changed at OpenFlow 1.4. Additionally, unifies the Syntax coloring of the response body and modify the t

Re: [Ryu-devel] Create a new OpenFlow message

2016-03-29 Thread Rajasekaran, Monica
Hi, Thanks for the useful link. I will try it out by including the structure of the message in ofproto_v1_3.py and adding a definition to ofproto_v1_3_parser.py. Will send out an update on the same. Thanks From: 北邮-李呈 [mailto:[email protected]] Sent: Monday, March 28, 2016 8:26 PM To: Rajas

Re: [Ryu-devel] Create a new OpenFlow message

2016-03-29 Thread Rajasekaran, Monica
Hi, Yes, I did check the Ryu book. There is a section called "Generation of Packets (Serialization)" where it specifies how to build and send out a Packet out message (OFPPacketOut). If I would like to send a message other than the traditional ones like OFPPacketOut, OFPActionOutput etc.. , How

Re: [Ryu-devel] Ryu installation error:The 'ovs' distribution was not found and is required by ryu

2016-03-29 Thread FUJITA Tomonori
On Tue, 29 Mar 2016 19:40:28 + Jason Kölker wrote: > Works for me. I haven't seen any issues with the 2.6.0 branch in my > dev (python2) environment. Thanks for the confirmation, pushed. -- Transform Data into Oppor

Re: [Ryu-devel] Ryu installation error:The 'ovs' distribution was not found and is required by ryu

2016-03-29 Thread Jason Kölker
On Tue, Mar 29, 2016 at 7:18 PM, FUJITA Tomonori wrote: > Hi, > > On Mon, 28 Mar 2016 17:53:21 +0800 > "臼喨-川格" wrote: > >> I just pull the latest ryu git repository down to install >> ryu. However, a new error occured, the detail info shows below. How >> to handle it? Thank you. > > Thanks for tr

Re: [Ryu-devel] Ryu installation error:The 'ovs' distribution was not found and is required by ryu

2016-03-29 Thread FUJITA Tomonori
Hi, On Mon, 28 Mar 2016 17:53:21 +0800 "臼喨-川格" wrote: > I just pull the latest ryu git repository down to install > ryu. However, a new error occured, the detail info shows below. How > to handle it? Thank you. Thanks for trying the latest code! That's really helpful for making sure that a rele

[Ryu-devel] [PATCH v4 11/16] lib/ofctl_*: Log the xid of messages being sent

2016-03-29 Thread Jason Kölker
Useful for debugging calling code that waits for or uses reponses. Signed-off-by: Jason Kölker --- ryu/lib/ofctl_utils.py | 15 +++ ryu/lib/ofctl_v1_0.py | 8 ryu/lib/ofctl_v1_2.py | 10 +- ryu/lib/ofctl_v1_3.py | 12 ++-- ryu/lib/ofctl_v1_4.py | 12

[Ryu-devel] [PATCH v4 06/16] ofproto/ofproto_v1_0_parser: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/ofproto/ofproto_v1_0_parser.py | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_0_parser.py b/ryu/ofproto/ofproto_v1_0_parser.py index 4952338..d330612 100644 --- a/ryu/ofproto/ofproto_v1_0_parser.py

[Ryu-devel] [PATCH v4 03/16] lib/ofctl_v1_3: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_v1_3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py index d94a9dc..5249d34 100644 --- a/ryu/lib/ofctl_v1_3.py +++ b/ryu/lib/ofctl_v1_3.py @@ -120,8 +120,9 @@ def to_actions(dp

[Ryu-devel] [PATCH v4 10/16] unit/lib/test_ofctl: Fix Flake8 [e731]

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/tests/unit/lib/test_ofctl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ryu/tests/unit/lib/test_ofctl.py b/ryu/tests/unit/lib/test_ofctl.py index 03155a8..3102e1f 100644 --- a/ryu/tests/unit/lib/test_ofctl.py +++ b/ryu/tests/unit/lib

[Ryu-devel] [PATCH v4 04/16] lib/ofctl_v1_4: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_v1_4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ryu/lib/ofctl_v1_4.py b/ryu/lib/ofctl_v1_4.py index faad3e0..515498d 100644 --- a/ryu/lib/ofctl_v1_4.py +++ b/ryu/lib/ofctl_v1_4.py @@ -19,7 +19,6 @@ import netaddr impo

[Ryu-devel] [PATCH v4 05/16] ofproto/nx_actions: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/ofproto/nx_actions.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ryu/ofproto/nx_actions.py b/ryu/ofproto/nx_actions.py index 9d32df6..791f64c 100644 --- a/ryu/ofproto/nx_actions.py +++ b/ryu/ofproto/nx_actions.py @@ -28,8 +28,6 @@

[Ryu-devel] [PATCH v4 07/16] ofproto/ofproto_v1_2_parser: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/ofproto/ofproto_v1_2_parser.py | 10 -- 1 file changed, 10 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index 2da5195..6c418b4 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofpro

[Ryu-devel] [PATCH v4 08/16] ofproto/ofproto_v1_3_parser: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/ofproto/ofproto_v1_3_parser.py | 23 +++ 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py index cd58cfd..4d37cb2 100644 --- a/ryu/ofproto/ofproto_v1_3_par

[Ryu-devel] [PATCH v4 12/16] lib/ofctl_*: Consolidate `send_stats_requst`

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_utils.py | 23 +++ ryu/lib/ofctl_v1_0.py | 35 +++--- ryu/lib/ofctl_v1_2.py | 43 +++--- ryu/lib/ofctl_v1_3.py | 51 +++-

[Ryu-devel] [PATCH v4 13/16] lib/ofctl_v1_3: Allow caller to disable conversion

2016-03-29 Thread Jason Kölker
Paramaterizes type converions in function to allow calling code to specify if responses should be converted to user friendly display (strings) or type perserved. Signed-off-by: Jason Kölker --- ryu/lib/ofctl_v1_3.py | 296 -- 1 file changed, 212 in

[Ryu-devel] [PATCH v4 14/16] lib/ofctl_v1_3: Support nicira extensions

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_nicira_ext.py| 156 + ryu/lib/ofctl_v1_3.py | 9 ++ .../of13/4-12-ofp_flow_stats_reply.packet.json | 2 +- 3 files changed, 166 insertions(+), 1 deletion(-) create mode

[Ryu-devel] [PATCH v4 15/16] lib/ofctl_v1_[34]: Consolidate common functions

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_utils.py | 153 - ryu/lib/ofctl_v1_3.py | 166 - ryu/lib/ofctl_v1_4.py | 161 +++ 3 files changed, 198 insertions

[Ryu-devel] [PATCH v4 09/16] ofproto/ofproto_v1_4_parser: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/ofproto/ofproto_v1_4_parser.py | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py index 97426d7..9478fba 100644 --- a/ryu/ofproto/ofproto_v1_4_parser.py +++

[Ryu-devel] [PATCH v4 02/16] lib/ofctl_v1_2: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_v1_2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py index cd64378..cb21bb6 100644 --- a/ryu/lib/ofctl_v1_2.py +++ b/ryu/lib/ofctl_v1_2.py @@ -104,8 +104,9 @@ def to_actions(dp

[Ryu-devel] [PATCH v4 01/16] lib/ofctl_v1_0: Flake8 Fixes

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_v1_0.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ryu/lib/ofctl_v1_0.py b/ryu/lib/ofctl_v1_0.py index e75e51a..7f36305 100644 --- a/ryu/lib/ofctl_v1_0.py +++ b/ryu/lib/ofctl_v1_0.py @@ -258,8 +258,8 @@ def match_to_st

[Ryu-devel] [PATCH v4 16/16] lib/ofctl_v1_[234]: Consolidate send_experimenter

2016-03-29 Thread Jason Kölker
Signed-off-by: Jason Kölker --- ryu/lib/ofctl_utils.py | 34 ++ ryu/lib/ofctl_v1_2.py | 17 ++--- ryu/lib/ofctl_v1_3.py | 16 ++-- ryu/lib/ofctl_v1_4.py | 17 ++--- 4 files changed, 32 insertions(+), 52 deletions(-) diff --gi

[Ryu-devel] [PATCH v4 00/16] Various fixes to ofctl and parsers

2016-03-29 Thread Jason Kölker
I am working to get more of our internal codebase upstreamable. We more or less had an exact copy of lib/ofctl_v1_3 without the REST api string conversion. This series cleans up Flake8 errors as they were found, introduces the 'to_user' paramater to lib/ofctl_v1_3 to control string conversion, and

Re: [Ryu-devel] [PATCH v3 00/16] Various fixes to ofctl and parsers

2016-03-29 Thread Jason Kölker
On Tue, Mar 29, 2016 at 6:47 PM, FUJITA Tomonori wrote: > On Tue, 29 Mar 2016 02:31:55 + > Jason Kölker wrote: > >> I am working to get more of our internal codebase upstreamable. We more or > > So you guys internally use ofctl stuff, nice! > >> less had an exact copy of lib/ofctl_v1_3 withou

Re: [Ryu-devel] [PATCH v3 00/16] Various fixes to ofctl and parsers

2016-03-29 Thread FUJITA Tomonori
On Tue, 29 Mar 2016 02:31:55 + Jason Kölker wrote: > I am working to get more of our internal codebase upstreamable. We more or So you guys internally use ofctl stuff, nice! > less had an exact copy of lib/ofctl_v1_3 without the REST api string > conversion. This series cleans up Flake8 err

Re: [Ryu-devel] [PATCH 0/5] Some fixes about lib/ofctl_*.py

2016-03-29 Thread FUJITA Tomonori
On Fri, 25 Mar 2016 16:58:23 +0900 Minoru TAKAHASHI wrote: > Minoru TAKAHASHI (5): > lib/ofctl_v1_0: Fix a small bug in get_desc_stats() and > get_aggregate_flow_stats() > lib/ofctl_v1_4: Fix a small bug in mod_group_entry() > lib/ofctl_v1_4: Fix an omission in OFPTFPT_* > lib/ofctl_v

Re: [Ryu-devel] [PATCH] packet/tcp: Add TCP Control Flags

2016-03-29 Thread FUJITA Tomonori
On Sat, 26 Mar 2016 02:26:27 + Jason Kölker wrote: > Add the control flags constants and a helper function to test which > flags are on. > > Signed-off-by: Jason Kölker > --- > ryu/lib/packet/tcp.py | 25 + > 1 file changed, 25 insertions(+) Looks nice improvement,

Re: [Ryu-devel] 'OVS' distribution was not found and is required by ryu

2016-03-29 Thread Rajasekaran, Monica
Hi Jason, Thanks a lot! That fixed it. -Original Message- From: Jason Kölker [mailto:[email protected]] Sent: Tuesday, March 29, 2016 12:12 PM To: Rajasekaran, Monica Cc: [email protected] Subject: Re: [Ryu-devel] 'OVS' distribution was not found and is required by ryu O

Re: [Ryu-devel] 'OVS' distribution was not found and is required by ryu

2016-03-29 Thread Jason Kölker
On Tue, Mar 29, 2016 at 4:05 PM, Rajasekaran, Monica wrote: > I installed ryu using the RyuInstallHelper > (https://github.com/muzixing/ryuInstallHelper-1) . And, I already have the > latest and fully configured OVS 2.5.0. I am trying to run the controller and > it keeps giving me the following er

[Ryu-devel] 'OVS' distribution was not found and is required by ryu

2016-03-29 Thread Rajasekaran, Monica
Hi, I installed ryu using the RyuInstallHelper (https://github.com/muzixing/ryuInstallHelper-1) . And, I already have the latest and fully configured OVS 2.5.0. I am trying to run the controller and it keeps giving me the following error: root@monica-HP-Z400-Workstation:/home/monica/Downloads/

[Ryu-devel] Ryu4.0 get portdesc error when using ofctl_rest api

2016-03-29 Thread mark
Dear All, i'm testing the new Ryu4.0 with OpenFlow1.4 version. when start ryu.app.ofctl_rest.py, i can see switch register well on ryu, but if i query switch portdesc, i get error, below. could you please help to verify this issue? BR< Mark +