[Ryu-devel] ovsdb api del_port_by_name patch

2017-09-11 Thread Matthew Moskowitz
Hello, I hope this list is still the proper avenue for submitting a patch. I believe I've fixed a bug in the ovsdb api (ryu/services/protocols/ovsdb/api.py) in which a lambda function had an extra parameter causing an error when using the del_port_by_name function. I've attached the patch. Thank

Re: [Ryu-devel] FlowMod x PacketOut

2017-09-15 Thread Matthew Moskowitz
OFPFlowMod is used to create and modify OpenFlow rules on the switch. PacketOut is used to send a packet that has reached the openflow controller (ryu) back to the switch. You can find them both documented here http://ryu.readthedocs.io/en/latest/ofproto_v1_3_ref.html. There is also an example of

[Ryu-devel] Have Ryu application function as client instead of server?

2017-10-03 Thread Matthew Moskowitz
Hi, By default when a Ryu application is started, it is listening for a connection request that comes from the switch. (For instance, using ovs, you would run ovs-vsctl set-controller to tell it where to talk to the Ryu application). However, OpenvSwitch can also behave like a server and wait for

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-03 Thread Matthew Moskowitz
not the other way around? >> >> Carlos Ferreira >> >> On 4 October 2017 at 00:42, Iwase Yusuke wrote: >> >>> >>> Hi Matt, >>> >>> As far as I know, Ryu does not provide such feature (only do wait >>> incoming connection

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-04 Thread Matthew Moskowitz
resses on switch side. > > Thanks, > Iwase > > > On 2017年10月04日 10:56, Matthew Moskowitz wrote: > >> Thanks Iwase and Carlos for your thoughts, >> >> 2 cases that this feature is interesting to me for would be: >> >> Integrating Ryu with other software

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-05 Thread Matthew Moskowitz
/controller-Support_ > proactive_connection > > But, the amount of task should not differ so much from this branch, I > guess. > > Thanks, > Iwase > > > On 2017年10月05日 15:16, Matthew Moskowitz wrote: > >> Thank you for the advice on the failover Iwase. >> >> As far

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-06 Thread Matthew Moskowitz
es not aware of whether connections is reactive or > proactive, > so it is not recommended to use them simultaneously against the same > switch. > The connection might be duplicated. > > Thanks, > Iwase > > > On 2017年10月06日 07:24, Matthew Moskowitz wrote: > >>

[Ryu-devel] Patch - use proper exception type to avoid misleading message

2017-10-06 Thread Matthew Moskowitz
Hello, I found a misleading error message in a try except block. This message should only be printed in the case of a poorly formed openflow message, however it was being printed for almost every exception. Patch is attached. Thanks, Matt From 8424e0ee215767e6ec767b21d229f0c15dd512fc Mon Sep 17 0

Re: [Ryu-devel] SWITCH MIGRATION

2017-10-07 Thread Matthew Moskowitz
Hi, Someone else on this list can probably give you a more complete answer. It should be possible by using ryu to write to ovsdb to change the switches controller (probably by using the set_controller method in ryu/services/protocols/ovsdb/api.py). There is also some code being worked on that will

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-08 Thread Matthew Moskowitz
t;, 21: >, 25: >, 27: >, 29: >, 30: >, 31: >, 32: >, 33: >, 35: >} On Fri, Oct 6, 2017 at 9:32 AM, Matthew Moskowitz wrote: > Hi Iwase, > > Great, I will test this out today. > > On Thu, Oct 5, 2017 at 7:43 PM, Iwase Yusuke > wrote: > >

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-09 Thread Matthew Moskowitz
Fortunately I have an update on the issue from above. The class OFPFeaturesRequest(MsgBase): appears to be missing the @_register_parser decorator. I can push a patch for this but I will continue testing the code today. On Sun, Oct 8, 2017 at 3:50 PM, Matthew Moskowitz wrote: > Hi Iwase, &g

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-09 Thread Matthew Moskowitz
erver simultaneously. I am not sure if this is desirable or not so please advise. https://github.com/MMoskowitz9/ryu/tree/controller-Support_proactive_connection Thanks, Matt On Mon, Oct 9, 2017 at 9:58 AM, Matthew Moskowitz wrote: > Fortunately I have an update on the issue from above. T

Re: [Ryu-devel] Have Ryu application function as client instead of server?

2017-10-10 Thread Matthew Moskowitz
I probably misled you with my patch comment, I want to > avoid having Ryu act as > server and client simultaneously against the "same" switch. > e.g.) > OK: switchA(client)---(server)Ryu(client)---(server)switchB > NG: switchA(client AND server)---(server AND client)Ryu &g

Re: [Ryu-devel] Patch - use proper exception type to avoid misleading message

2017-10-25 Thread Matthew Moskowitz
proto_v1_*_parser.py", > can raise too various exceptions (mostly "struct.error", I guess), so > except "Exception" here. > > We need detect all exception types, if specify exception class. > > Thanks, > Iwase > > > > On 2017年10月07日 12:17, Matthew

Re: [Ryu-devel] Unexpected keyword argument

2017-11-08 Thread Matthew Moskowitz
What version of OpenFlow are you using? Some appear not to support table_id. For instance: https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_0_parser.py On Wed, Nov 8, 2017 at 2:03 PM, Scott Reeve wrote: > Strange error: > > flow_mod_msg=ofp_parser.OFPFlowMod(datapath=dp,table_ > id

Re: [Ryu-devel] Ryu doesn't show informations

2017-12-07 Thread Matthew Moskowitz
Hi Jose, Can you be more specific about what kind of information you are looking for? There are a lot of utilities for viewing stats about existing openflow rules/ groups, etc. Matt On Thu, Dec 7, 2017 at 12:02 PM, Jose Carlos Ferreira de Melo Junior < jc...@cin.ufpe.br> wrote: > Hi everyone, >

Re: [Ryu-devel] app

2018-03-19 Thread Matthew Moskowitz
Sami, I think you are asking 'How can I interact with Ryu from another application?' I'd recommend using ofctl_rest api (1st link) or adding your own (2nd link). http://ryu.readthedocs.io/en/latest/app/ofctl_rest.html https://osrg.github.io/ryu-book/en/html/rest_api.html On Fri, Mar 16, 2018 at