ofctl_v1_2.actions_to_str: ignore unknown instructions

avoid crashing when the switch happens to have flows with
non OFPInstructionActions instructions.

Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
YAMAMOTO Takashi 2013-06-18 16:35:32 +09:00 committed by FUJITA Tomonori
parent 2214fae178
commit de5099fc2f

View File

@ -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