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 <arti...@gmail.com> 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 right one. > > Regards > Maen > > On Tue, Feb 19, 2019, 5:22 PM Praveen Fernando <p...@zips.uakron.edu > wrote: > >> 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 particular switch instance. >> >> Note : POX cntroller has a method to do the above using >> *connection.features.ports*. >> Therefore please let me know any workaround for this. >> >> Regards. >> -- >> Mututhanthrige Praveen Sameera Fernando >> Graduate Research Assistant >> Department of electrical and computer engineering >> The University of Akron >> Mobile : +94 077-517-3454 | +1 330-319-0215 >> _______________________________________________ >> Ryu-devel mailing list >> Ryu-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> > -- Mututhanthrige Praveen Sameera Fernando Graduate Research Assistant Department of electrical and computer engineering The University of Akron Mobile : +94 077-517-3454 | +1 330-319-0215
_______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel