예제 #1
0
 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))
예제 #2
0
 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))