mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
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:
parent
2214fae178
commit
de5099fc2f
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user