Run sFlow-RT with the script:
Now start Mininet:
sudo mn --custom sflow-rt/extras/sflow.py
You can now query for the DPID using the REST API:
This example just contains a single helper function, but you could add additional methods to simplify your Python controller.