> 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

ofctl_v1_2.py needs the same fix?

YAMAMOTO Takashi

> 
> Signed-off-by: Satoshi Kobayashi <[email protected]>
> ---
>  ryu/lib/ofctl_v1_3.py |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py
> index 3e2713e..1f2a271 100644
> --- a/ryu/lib/ofctl_v1_3.py
> +++ b/ryu/lib/ofctl_v1_3.py
> @@ -872,7 +872,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))
> -- 
> 1.7.1
> 
> 
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to