ofctl_v1_3: Fix unsuitable log

ofproto_v1_3.OFPGT_ALL is 0 and 0 is False on Python. When using type 'ALL', the following is set to True.

if not type_:
    LOG.debug('Unknown type: %s', group.get('type'))

Therefore, 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-13 07:04:50 +00:00 committed by FUJITA Tomonori
parent eb07d4bf81
commit 8fd3959d06

View File

@ -863,7 +863,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))