You can do this by simply handling datapath join and leave events and keeping a list. IIRC, components just keep their own lists for the most part. For a Python example, look at pyswitch. For a C++ example, I think both authenticator and topology (and other things) do this.
-- Murphy On Nov 24, 2010, at 11:06 PM, Derek Cormier wrote: > If I write a NOX component in python, are there any methods for returning the > datapath ID of all connected switches? As I was browsing through the core API > and components, I saw that many methods take a dpid, but I couldn't find any > for retrieving them in the first place. > > Thanks, > -Derek > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org