Re: [Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-27 Thread Iwase Yusuke
Hi Carlos, I guess you also need to specify "maximum_unreplied_echo_requests" to enable this feature. I'm sorry I misunderstood. This feature seems to be disabled by the default. On my environment, I could send Echo message periodically with; $ cat etc/ryu/ryu.conf # Sample configuration file

Re: [Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-27 Thread Carlos Ferreira
Hello again Iwase, Modifying the echo-request-interval and socket-timeout at the ryu.conf file, doesn't seem to do anything. Ryu still takes more than 2 minutes to detect a Switch Timeout. This is what I have at ryu.conf [DEFAULT] echo_request_interval=1 socket_timeout=3 Carlos On 27 November

Re: [Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-27 Thread Carlos Ferreira
Thank you Iwase I also found those parameters in the code you just highlighted to me, but as you said, they are not configurable via CLI options. I will try to use ryu.cfg. Carlos On 27 November 2017 at 07:39, Iwase Yusuke wrote: > Hi Carlos, > > Ryu will detect the switch disconnection with se

Re: [Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-26 Thread Iwase Yusuke
Hi Carlos, Ryu will detect the switch disconnection with sending OPFEchoRequest messages periodically, because eventlet's socket does not seem to raise the disconnection immediately (due to the non-blocking mode?). If you need to detect switch disconnection more faster, please configure the f

Re: [Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-24 Thread Carlos Ferreira
Btw, when I ask for the Controller timout being configurable, I meant for the socket timeout configuration. Carlos Miguel Ferreira On 24 November 2017 at 14:41, Carlos Ferreira wrote: > Hello to all again. > > I'm having an issue regarding the way ryu detects a switch disconnect. > When I remove

[Ryu-devel] Switch Disconnect Event - Takes too long to detect a disconnect.

2017-11-24 Thread Carlos Ferreira
Hello to all again. I'm having an issue regarding the way ryu detects a switch disconnect. When I remove the control ethernet cable, which my Zodiac FX switch uses to connect to the Ryu controller, Ryu only generates the disconnect event after some time (over a minute). Shouldn't Ryu be generatin

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

[Ryu-devel] SWITCH MIGRATION

2017-10-07 Thread vincenzoprov1990--- via Ryu-devel
Hi, is it possible to migrate switch from one controller to another in a sdn with the ryu framework? How can I do this? Thanks a lot-- Check out the vibrant tech community on one of the world's most engaging tech sites, Sl

[Ryu-devel] switch features ev version: 0x1 msg_type 0x6 in OpenFlow10

2015-09-22 Thread Vishlesh Patel
Hi there, I am using RYU controller with flowvisor. As flowvisor do not support any other version other than openflow v1. I am using openflow v1 in my project. I have topology of 3 ovs switches and controller sits in one of server conataining ovs bridge. Other two ovs bridge in other servers conn

[Ryu-devel] Switch ports information dump

2015-04-14 Thread Ruchika Luthra
Hello, Is it possible to dump information to find out which of the ports of the switches are connected to the host and which are connected to other switch? I dont want manual interpretation. But some direct information stating, say port 3 of switch 1 is connected to port 3 of switch 2. port 1 and

[Ryu-devel] switch

2014-08-12 Thread formore
Hi:    Good day!   Dear my friend,this is Ellen here.   We produce all kinds of switch, can also according to customer's brand.   If you are interested in our products,pls contact me.   Wait your reply and look cooperation with you.Best regardsEllenSKYPE :zhaoyuanzhu ---

[Ryu-devel] switch

2014-08-12 Thread formore
Hi:    Good day!   Dear my friend,this is Ellen here.   We produce all kinds of switch, can also according to customer's brand.   If you are interested in our products,pls contact me.   Wait your reply and look cooperation with you.Best regardsEllenSKYPE :zhaoyuanzhu ---

[Ryu-devel] switch

2014-08-12 Thread formore
Hi:    Good day!   Dear my friend,this is Ellen here.   We produce all kinds of switch, can also according to customer's brand.   If you are interested in our products,pls contact me.   Wait your reply and look cooperation with you.Best regardsEllenSKYPE :zhaoyuanzhu ---

Re: [Ryu-devel] Switch feature request

2014-04-20 Thread FUJITA Tomonori
On Thu, 17 Apr 2014 18:57:35 +0200 Hanieh Rajabi wrote: > As I explained before in my project I should add some extra functionality > to the ryu controller in order to handle this feature in my openflow > switch. > So in this direction in ofproto_v1_3.py and ofproto_v1_3_parser.py I added > 2 ext

Re: [Ryu-devel] Switch feature request

2014-04-17 Thread Hanieh Rajabi
Thanks Fujita, I solved the switch feature problem but!!! As I explained before in my project I should add some extra functionality to the ryu controller in order to handle this feature in my openflow switch. So in this direction in ofproto_v1_3.py and ofproto_v1_3_parser.py I added 2 extra struct

Re: [Ryu-devel] Switch feature request

2014-04-14 Thread FUJITA Tomonori
Hi, On Fri, 11 Apr 2014 12:48:35 +0200 Hanieh Rajabi wrote: > Since I have added extra functionality to my openflow 1.3, I need the > controller app send the feature request to the switch to inquiry about the > new added feature. > But by running > > @set_ev_cls(ofp_event.EventOFPSwitchFeature

[Ryu-devel] Switch feature request

2014-04-11 Thread Hanieh Rajabi
Hi all, I am a newbie in developing an application using Ryu. Since I have added extra functionality to my openflow 1.3, I need the controller app send the feature request to the switch to inquiry about the new added feature. But by running @set_ev_cls(ofp_event.EventOFPSwitchFeatures, CONFIG_DI

Re: [Ryu-devel] Switch Connection Up Event

2014-02-26 Thread FUJITA Tomonori
On Mon, 24 Feb 2014 17:18:29 -0800 vinay pai wrote: > Thank you so much for the response. That helped alot. One other small issue > is that Im trying to match on TCP source port for IPv6. The match > parameters I give is TCP source port = 2000+protocol=6(for > TCP)+ethertype=0x86DD(for IPv6). How

Re: [Ryu-devel] Switch Connection Up Event

2014-02-24 Thread vinay pai
Hi Fujita, Thank you so much for the response. That helped alot. One other small issue is that Im trying to match on TCP source port for IPv6. The match parameters I give is TCP source port = 2000+protocol=6(for TCP)+ethertype=0x86DD(for IPv6). However the controller reports an error when it tries

Re: [Ryu-devel] Switch Connection Up Event

2014-02-18 Thread FUJITA Tomonori
On Mon, 17 Feb 2014 12:31:51 -0800 vinay pai wrote: > What I am trying to achieve is incrementally pass flow with the combination > of matches. For Example, I first pass a flow with match on ethertype, next > with match on ethertype and source MAC, then with match on ethertype, > source MAC and d

Re: [Ryu-devel] Switch Connection Up Event

2014-02-17 Thread vinay pai
Hi Fujita, Thank you so much for the response. What I am trying to achieve is incrementally pass flow with the combination of matches. For Example, I first pass a flow with match on ethertype, next with match on ethertype and source MAC, then with match on ethertype, source MAC and destination MA

Re: [Ryu-devel] Switch Connection Up Event

2014-02-13 Thread FUJITA Tomonori
On Thu, 13 Feb 2014 17:15:44 -0800 vinay pai wrote: > mod = parser.OFPFlowMod(datapath=datapath, priority=priority, > match = match, instructions=inst) You can specify table number as table_id argument here like. mod = parser.OFPFlowMod(datapath=datapath, table_i

Re: [Ryu-devel] Switch Connection Up Event

2014-02-13 Thread vinay pai
Hi Fujita, Few more details are: The flow programs fine in L2 mode of the switch because there is only 1 table. However we are suspecting that always table 0 goes out because of which the L3 mode of the switch is rejecting the flow. Regards, Vinay Pai B.H. On Thu, Feb 13, 2014 at 5:15 PM, vina

Re: [Ryu-devel] Switch Connection Up Event

2014-02-13 Thread vinay pai
Hi Fujita, Thanks for the response. I wanted to know if we can specify the table number on the switch side when we are trying to install the flow? The switch architecture is different compared to traditional Openflow switches. We have a L2 mode where we can install only L2 flows and L3 mode where

Re: [Ryu-devel] Switch Connection Up Event

2014-02-12 Thread FUJITA Tomonori
On Wed, 12 Feb 2014 20:06:16 -0800 vinay pai wrote: > I have another small query. When I pass the flow onto my switch I see the > error on my switch as follows: > > Debug: |1|00705|connmgr|INFO|sw1<->tcp:172.28.243.51:6633%management: > sending OFPBRC_EPERM error reply to OFPT_FLOW_MOD message >

Re: [Ryu-devel] Switch Connection Up Event

2014-02-12 Thread vinay pai
Hi Fujita, Thank you so much for your response! It worked perfectly with that change! I have another small query. When I pass the flow onto my switch I see the error on my switch as follows: Debug: |1|00705|connmgr|INFO|sw1<->tcp:172.28.243.51:6633%management: sending OFPBRC_EPERM error reply to

Re: [Ryu-devel] Switch Connection Up Event

2014-02-12 Thread FUJITA Tomonori
On Wed, 12 Feb 2014 14:49:02 -0800 vinay pai wrote: > class SwitchEventApp(app_manager.RyuApp): > _CONTEXTS = { > 'switches': switches.Switches, > } > > @set_ev_cls(EventSwitchEnter) > def _ev_switch_enter_handler(self, ev): > print('enter: %s' % ev) > datapath = ev.msg.datap

Re: [Ryu-devel] Switch Connection Up Event

2014-02-12 Thread vinay pai
Hi Satoshi, Thank you so much for the response. My end goal is to pass a flow to the switch as soon as its up using OFv1.3. I have written the following snippet of code but Im not sure where I am going wrong. I would be obliged if you could help me out in this regard. from ryu.base import app_ma

Re: [Ryu-devel] Switch Connection Up Event

2014-02-11 Thread Satoshi Kobayashi
Hi Vinay, You can use EventSwitchEnter and EventSwitchLeave. (Note that this API is supported only by OpenFlow 1.0 and 1.3) -- from ryu.base import app_manager from ryu.controller.handler import set_ev_cls from ryu.topology import switches from ryu.topology.event import EventSwitchEnter,

[Ryu-devel] Switch Connection Up Event

2014-02-11 Thread vinay pai
Hi All, I am traditionally a POX user and am more familiar with the APIs used there. I have recently started using Ryu and am finding difficulty in finding the appropriate APIs. In POX there is an API which is called when a switch connects to the controller. It is _handle_ConnectionUp(). I am sear

[Ryu-devel] Switch to Apache v2.0 license

2012-04-05 Thread FUJITA Tomonori
Hi, To make further integration into IaaS OSS (OpenStack and CloudStack) easier, we switch to Apache 2.0 license. I've just sent the diff stat since no interesting things are there. = COPYING| 674 LICENSE