sw test tool: correct error message

When test tool receives a malformed packet(length value is unusual,
 for example), detecting differences between expected and received is
 a failure.  In this case, 'Internal error.' is not suitable as a log
 message and should notify tool receives a malformed packet.

Signed-off-by: WATANABE Fumitaka <watanabe.fumitaka1@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
WATANABE Fumitaka 2014-02-07 19:52:35 +09:00 committed by FUJITA Tomonori
parent 66f825ac47
commit 0a2a4b4008

View File

@ -592,8 +592,8 @@ class OfTester(app_manager.RyuApp):
if msg:
return '/'.join(msg)
else:
raise RyuException('Internal error.'
' receive packet is matching.')
return ('Encounter an error during packet comparison.'
' it is malformed.')
def _wait(self):
""" Wait until specific OFP message received