[Ryu-devel] Cannot detect the node failure

2018-07-19 Thread Soe Ye Htet
Dear, Please kindly suggest me how to detect node failure. I follow the following code to detect the node failure by writing the event.EventSwitchLeave but I can only detect the switch enter. When I shut down the node, the leaved switch cannot be detected. from operator import attrgetter from ryu

[Ryu-devel] Help with running BGP

2018-07-19 Thread Marcio
Dear, I have a question using the BGPSpeaker. I instantiate a BGPSpeaker using the example code in Ryu Documentation. I want to know how could I perform another task while BGP is running and when I achieve some results I need to request BGPSpeaker to perform some tasks. Could you help me with it

Re: [Ryu-devel] Cannot detect the node failure

2018-07-19 Thread MA Moyeen
def remove_flows(self, datapath, table_id): """Removing all flow entries.""" parser = datapath.ofproto_parser ofproto = datapath.ofproto empty_match = parser.OFPMatch() instructions = [] flow_mod = self.remove_table_flows(datapath, table_id,

Re: [Ryu-devel] Cannot detect the node failure

2018-07-19 Thread Fernando Farias
Hi, you need to enable the switch context for doing that. take a sample this: _CONTEXTS = { 'switches': switches.Switches, } def __init__(self, *args, **kwargs): super(AppTest, self).__init__(*args, **kwargs) self.switches = kwargs['switches'] this module enables switchEnter a s

Re: [Ryu-devel] Cannot detect the node failure

2018-07-19 Thread Soe Ye Htet
Dear, Thanks you so much for your reply. But currently event of switch enter can be applied but event of switch leave cannot be applied. I will follow your sugestion too. Thanks you Best regards, Soe Ye Htet On Thu, Jul 19, 2018, 10:43 PM Fernando Farias wrote: > Hi, > > you need to enable the

Re: [Ryu-devel] get packet tcp

2018-07-19 Thread Thomas William
Thanks for your answer, my doubt is that I print the packages before this line, but they do not appear with tcp. Will it be a problem in my setup? Em qua, 18 de jul de 2018 às 22:45, IWAMOTO Toshihiro escreveu: > On Thu, 19 Jul 2018 07:34:36 +0900, > Thomas William wrote: > > > > [1 ] > > [1.1

Re: [Ryu-devel] get packet tcp

2018-07-19 Thread Thomas William
I discovered my problem, it was in openvswitch configuration .. Sorry for the inconvenience. And thank you. Em qua, 18 de jul de 2018 às 22:45, IWAMOTO Toshihiro escreveu: > On Thu, 19 Jul 2018 07:34:36 +0900, > Thomas William wrote: > > > > [1 ] > > [1.1 ] > > Hello, I've been having a proble

Re: [Ryu-devel] Help with running BGP

2018-07-19 Thread Yusuke Iwase
Hi Marcio, Does the following document help you? http://ryu.readthedocs.io/en/latest/app/bgp_application.html Thanks, Iwase 2018/07/19 23:58、Marcio のメール: > Dear, > > I have a question using the BGPSpeaker. I instantiate a BGPSpeaker using the > example code in Ryu Documentation. > > I want t

[Ryu-devel] ovs bridge library + ovsswitch version compatibilty issue

2018-07-19 Thread knet solutions
Hi, I am facing a strange issue with OVS Switches version with RYU OVS library compatibility I am using ovsbridge library api to get/delete controllers. This works fine in OVS 2.5 version (default version in ubunut 16.04) OVSDB address is "tcp:127.0.0.1:6632" But in ubuntu 14.04 OVS versi

Re: [Ryu-devel] Help with running BGP

2018-07-19 Thread Marcio
I think not. I'd like to know if is possible the BGPSpeaker receive events generated by other sources and receive data from it. Let me do an example. While BGP is running I need to have another task(could be in same code or in another .py file) running to verify something and when a specific thing

Re: [Ryu-devel] ovs bridge library + ovsswitch version compatibilty issue

2018-07-19 Thread IWAMOTO Toshihiro
On Fri, 20 Jul 2018 10:05:14 +0900, knet solutions wrote: > > [1 ] > [1.1 ] > Hi, > > I am facing a strange issue with OVS Switches version with RYU OVS library > compatibility > > > I am using ovsbridge library api to get/delete controllers. This works > fine in OVS 2.5 version (default v

Re: [Ryu-devel] ovs bridge library + ovsswitch version compatibilty issue

2018-07-19 Thread knet solutions
Hi IWAMOTO, May be thats the another issue. But my problem is, Any idea, which port number is used in OVSDB in 2.0.2 version? I dont see any tcp listenings ports . Also, is it possible to configure the OVSDB port number , if yes, how? Thanks suresh On Fri, Jul 20, 2018 at 7:02 AM, IWAMOT