To be a better coder
分类: LINUX
2019-09-20 13:58:47
# ...(snip)... import ryu.app.ofctl.api as ofctl_api class MyApp(app_manager.RyuApp): def _my_handler(self, ev): # Get all datapath objects result = ofctl_api.get_datapath(self) # Get the datapath object which has the given dpid result = ofctl_api.get_datapath(self, dpid=1)