On Fri, 07 Feb 2014 14:11:37 +0900
"watanabe.fumitaka" <[email protected]> wrote:

> 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 <[email protected]>
> ---
>  ryu/tests/switch/tester.py |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py
> index 8556b52..4b2b42a 100644
> --- a/ryu/tests/switch/tester.py
> +++ b/ryu/tests/switch/tester.py
> @@ -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.')

Applied, but I think that 'the packet is malformed' is more simpler
and clear.

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to