From 513a9d93b2004dda02bfa0ee5f29e9b65337e5ef Mon Sep 17 00:00:00 2001 From: Monthadar Al-Jaberi Date: Fri, 9 Sep 2016 19:11:46 +0000 Subject: [PATCH] tests/switch: fix bug in _diff_packets function This fixes the problem of the payload being always shown when another field differs between ingress and egress test. Signed-off-by: Monthadar Al Jaberi Signed-off-by: FUJITA Tomonori --- ryu/tests/switch/tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index 22238b8d..f9075557 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -972,7 +972,7 @@ class OfTester(app_manager.RyuApp): else: model_p = '' for p in model_pkt.protocols: - if isinstance(rcv_p, six.binary_type): + if isinstance(p, six.binary_type): model_p = p break if model_p != rcv_p: