diff options
-rw-r--r-- | ryu/app/ofctl/service.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ryu/app/ofctl/service.py b/ryu/app/ofctl/service.py index 119e9b39..3e24170b 100644 --- a/ryu/app/ofctl/service.py +++ b/ryu/app/ofctl/service.py @@ -124,4 +124,7 @@ class OfctlService(app_manager.RyuApp): except KeyError: self.logger.error('unknown dpid %s' % (datapath.id,)) return - si.results[xid] = ev.msg + try: + si.results[msg.xid] = ev.msg + except KeyError: + self.logger.error('unknown error xid %s' % (msg.xid,)) |