Python ryu.controller.ofp_event.EventOFPSwitchFeatures() Examples

The following are 1 code examples of ryu.controller.ofp_event.EventOFPSwitchFeatures(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module ryu.controller.ofp_event , or try the search function .
Example #1
Source File: Chapter11_1.py    From Mastering-Python-Networking with MIT License 5 votes vote down vote up
def switch_features_handler(self, ev):

        print("EventOFPSwitchFeatures: datapath_id {}, n_buffers {} capabilities {}".format(ev.msg.datapath_id,
                                                                                            ev.msg.n_buffers,
                                                                                            ev.msg.capabilities))