Hi Derek, In C/C++, you can make use of datapathmem in netapps/networkstate. I would personally discourage you from maintaining your own list and extend datapathmem for use in Python. Unfortunately, I do not use Python in NOX enough for me to swigify the component. I am happy to push your patch if you decide to reuse components.
Regards KK On 24 November 2010 23:52, Murphy McCauley <jam...@nau.edu> wrote: > 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 > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org