diff options
-rw-r--r-- | ryu/tests/switch/tester.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ryu/tests/switch/tester.py b/ryu/tests/switch/tester.py index dd05050b..4b12e291 100644 --- a/ryu/tests/switch/tester.py +++ b/ryu/tests/switch/tester.py @@ -793,8 +793,12 @@ class OfTester(app_manager.RyuApp): # when mask is all one bits, remove mask if mbytes == '\xff' * ofb.type.size: united_value = value + # when mask is all zero bits, remove field. + elif mbytes == '\x00' * ofb.type.size: + united_value = None break - match_fields.append((key, united_value)) + if united_value is not None: + match_fields.append((key, united_value)) return match_fields attr_list = ['cookie', 'priority', 'hard_timeout', 'idle_timeout', |