> How does it happen?

i'm not sure what you want to know.

a switch can have unrelated flows unless dedicated to this application.
the code in question can be executed even if the application is enabled
(in the sense of /firewall/module/enable REST API) for the switch.

YAMAMOTO Takashi

> 
> On Wed, Jun 12, 2013 at 01:04:02PM +0900, YAMAMOTO Takashi wrote:
>> avoid crashing when the switch happens to have flows with
>> non OFPInstructionActions instructions.
>> 
>> Signed-off-by: YAMAMOTO Takashi <[email protected]>
>> ---
>>  ryu/lib/ofctl_v1_2.py | 3 +++
>>  1 file changed, 3 insertions(+)
>> 
>> diff --git a/ryu/lib/ofctl_v1_2.py b/ryu/lib/ofctl_v1_2.py
>> index 0789bf6..d08bb21 100644
>> --- a/ryu/lib/ofctl_v1_2.py
>> +++ b/ryu/lib/ofctl_v1_2.py
>> @@ -50,6 +50,9 @@ def actions_to_str(instructions):
>>      actions = []
>>  
>>      for instruction in instructions:
>> +        if not isinstance(instruction,
>> +                          ofproto_v1_2_parser.OFPInstructionActions):
>> +            continue
>>          for a in instruction.actions:
>>              action_type = a.cls_action_type
>>  
>> -- 
>> 1.8.1.5
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Windows:
>> 
>> Build for Windows Store.
>> 
>> http://p.sf.net/sfu/windows-dev2dev
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>> 
> 
> -- 
> yamahata

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to