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>
This commit is contained in:
Satoshi Kobayashi 2014-03-14 19:20:02 +09:00 committed by FUJITA Tomonori
parent 8fd3959d06
commit e95a684aee

View File

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