def handle_feature_request(self, req): device_info = yield self.rpc.get_device_info(self.device_id) kw = pb2dict(device_info.switch_features) self.cxn.send(ofp.message.features_reply( xid=req.xid, datapath_id=self.datapath_id, **kw))
def handle_device_description_request(self, req): device_info = yield self.rpc.get_device_info(self.device_id) kw = pb2dict(device_info.desc) self.cxn.send(ofp.message.desc_stats_reply(xid=req.xid, **kw))