Re: [Ryu-devel] REQUESTING PORT LIST OF A SWITCH AT SWITCH NEGOTIATION PHASE

2019-02-19 Thread Praveen Fernando
Yes. It returns an empty list in CONFIG_DISPATCHER. Thanks for letting me know. Regards, On Tue, Feb 19, 2019 at 4:45 PM Maen Artimy wrote: > You can use: > ports = datapath.ports.values() > > But it won't return a populated list except in the MAIN_DISPATCHER so > maybe your approach is the

Re: [Ryu-devel] REQUESTING PORT LIST OF A SWITCH AT SWITCH NEGOTIATION PHASE

2019-02-19 Thread Maen Artimy
You can use: ports = datapath.ports.values() But it won't return a populated list except in the MAIN_DISPATCHER so maybe your approach is the right one. Regards Maen On Tue, Feb 19, 2019, 5:22 PM Praveen Fernando Hi, > > I am developing a RYU application, and I need to get the list of ports o

[Ryu-devel] REQUESTING PORT LIST OF A SWITCH AT SWITCH NEGOTIATION PHASE

2019-02-19 Thread Praveen Fernando
Hi, I am developing a RYU application, and I need to get the list of ports of a SDN switch at *CONFIG_DISPATCHER* phase. Currently I can't find any method to do this, and my current workaround is to use *ofp_event.EventOFPPortStatsReply *to get the port list of a switch and send the list to the pa