fix traceroute notification regression

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2013-10-10 06:18:25 +09:00
parent b337333afc
commit 824069e3d0

View File

@ -164,13 +164,13 @@ class OFWireRpcSession(object):
self.ofp_handle_request(m)
elif m[2] == 'monitor_port':
self.monitor_port(m)
elif m[0] == RpcMessage.RESPONSE:
pass
elif m[0] == RpcMessage.NOTIFY:
if m[1] == 'traceroute':
self._tr_handle_notify(m)
else:
print "invalid type", m[0]
elif m[0] == RpcMessage.RESPONSE:
pass
elif m[0] == RpcMessage.NOTIFY:
if m[1] == 'traceroute':
self._tr_handle_notify(m)
else:
print "invalid type", m[0]
def serve(self):
while True: