mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-25 10:32:03 +01:00
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:
parent
eb07d4bf81
commit
8fd3959d06
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user