> Match's from_jsondict() requres 'mask' in JSON even if the match
> doesn't have 'mask'.

looks fine to me, thanks.

YAMAMOTO Takashi

> 
>  from_jsondict
>     in dict_['oxm_fields']]
>   File "/Users/fujita/git/ryu/ryu/ofproto/oxm_fields.py", line 230, in 
> from_jsondict
>     mask = tlv['mask']
> KeyError: 'mask'
> 
> Signed-off-by: FUJITA Tomonori <[email protected]>
> ---
>  ryu/ofproto/oxm_fields.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ryu/ofproto/oxm_fields.py b/ryu/ofproto/oxm_fields.py
> index f2f4a7c..73b55a2 100644
> --- a/ryu/ofproto/oxm_fields.py
> +++ b/ryu/ofproto/oxm_fields.py
> @@ -227,7 +227,7 @@ def from_jsondict(j):
>      tlv = j['OXMTlv']
>      field = tlv['field']
>      value = tlv['value']
> -    mask = tlv['mask']
> +    mask = tlv.get('mask')
>      if mask is None:
>          uv = value
>      else:
> -- 
> 1.7.12.4 (Apple Git-37)
> 
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to