mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-25 02:21:45 +01:00
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:
parent
827138298f
commit
513a9d93b2
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user