diff options
author | Monthadar Al-Jaberi <Monthadar.Al-Jaberi@infinera.com> | 2016-09-09 19:11:46 +0000 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-09-21 21:24:04 +0900 |
commit | 513a9d93b2004dda02bfa0ee5f29e9b65337e5ef (patch) | |
tree | 8f3bac60f6904cc3ef79764f6f46d2cf2d8ae6c4 | |
parent | 827138298f366792e3f893d3e6b09670e8649cc8 (diff) |
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>
-rw-r--r-- | ryu/tests/switch/tester.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |