diff options
author | Satoshi Kobayashi <satoshi-k@stratosphere.co.jp> | 2014-03-14 19:20:02 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-03-16 20:38:45 +0900 |
commit | e95a684aeeb736e6f97b4a08311ce68ef4dbe9fc (patch) | |
tree | dc73e26db3fcfe6c4e7bd8e49aa313be50fc2cf8 | |
parent | 8fd3959d0680db272a040e0fe8c0a8a31f457518 (diff) |
ofctl_v1_2: Fix unsuitable log
When using type 'ALL', the log unsuitable is outputted:
Unknown type: ALL
Signed-off-by: Satoshi Kobayashi <satoshi-k@stratosphere.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/lib/ofctl_v1_2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py index 6b1d4478..335709db 100644 --- a/ryu/lib/ofctl_v1_2.py +++ b/ryu/lib/ofctl_v1_2.py @@ -650,7 +650,7 @@ def mod_group_entry(dp, group, cmd): 'FF': dp.ofproto.OFPGT_FF} type_ = type_convert.get(group.get('type')) - if not type_: + if type_ is None: LOG.debug('Unknown type: %s', group.get('type')) group_id = int(group.get('group_id', 0)) |