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
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
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
_