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 <monthadar.al-jaberi@infinera.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Monthadar Al-Jaberi 2016-09-09 19:11:46 +00:00 committed by FUJITA Tomonori
parent 827138298f
commit 513a9d93b2

View File

@ -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: