Hello everyone,
In my application I want to get all the dpid and datapath object that are 
connected with the controller. I am not good in python that's why it seems 
difficult to me to write the code. I tried something like the following but it 
did not work-
from ryu.controller import dpset
..........@set_ev_cls(EventLinkAdd, MAIN_DISPATCHER)
 def _link_add_handler(self, ev):         .........         .........        
datapath_list = dpset.DPSet()
        print "Datapath instances in a list:", datapath_list.get_all()
I thought datapath_list.get_all() will give me the list of the tuple of (dpid, 
datapath). But it did not work. Can anyone please tell me what should be the 
code to get the (dpid, datapath) list by using the get_all() method of DPSet 
class?
Thanking you 
Sakib

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to