mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-10 14:56:11 +02:00
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:
parent
66f825ac47
commit
0a2a4b4008
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user