diff --git a/Torpedo/src/etri/sdn/controller/module/staticentrymanager/StaticFlowEntry.java b/Torpedo/src/etri/sdn/controller/module/staticentrymanager/StaticFlowEntry.java index 6329dd5a..6c485f46 100644 --- a/Torpedo/src/etri/sdn/controller/module/staticentrymanager/StaticFlowEntry.java +++ b/Torpedo/src/etri/sdn/controller/module/staticentrymanager/StaticFlowEntry.java @@ -693,9 +693,12 @@ else if (inststr.toLowerCase().equals("apply_actions")) { instructions.add(inst); } else if (inststr.toLowerCase().equals("clear_actions")) { - OFInstructionClearActions inst = - fac.instructions().clearActions(); - instructions.add(inst); + boolean clearActions = (boolean) entry.get("clear_actions"); + if (clearActions) { + OFInstructionClearActions inst = + fac.instructions().clearActions(); + instructions.add(inst); + } } else { throw new StaticFlowEntryException("Unexpected instruction " + inststr);