Committed by
Gerrit Code Review
Changed back to used Apply Actions to find the actions
Change-Id: Ia08d60d623656bb12c8380d7ca0597a7fc4e89ce
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -49,7 +49,7 @@ import org.projectfloodlight.openflow.protocol.action.OFActionSetNwSrc; | ... | @@ -49,7 +49,7 @@ import org.projectfloodlight.openflow.protocol.action.OFActionSetNwSrc; |
49 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanPcp; | 49 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanPcp; |
50 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanVid; | 50 | import org.projectfloodlight.openflow.protocol.action.OFActionSetVlanVid; |
51 | import org.projectfloodlight.openflow.protocol.instruction.OFInstruction; | 51 | import org.projectfloodlight.openflow.protocol.instruction.OFInstruction; |
52 | -import org.projectfloodlight.openflow.protocol.instruction.OFInstructionWriteActions; | 52 | +import org.projectfloodlight.openflow.protocol.instruction.OFInstructionApplyActions; |
53 | import org.projectfloodlight.openflow.protocol.match.Match; | 53 | import org.projectfloodlight.openflow.protocol.match.Match; |
54 | import org.projectfloodlight.openflow.protocol.match.MatchField; | 54 | import org.projectfloodlight.openflow.protocol.match.MatchField; |
55 | import org.projectfloodlight.openflow.protocol.oxm.OFOxmOchSigidBasic; | 55 | import org.projectfloodlight.openflow.protocol.oxm.OFOxmOchSigidBasic; |
... | @@ -120,8 +120,8 @@ public class FlowEntryBuilder { | ... | @@ -120,8 +120,8 @@ public class FlowEntryBuilder { |
120 | case OF_13: | 120 | case OF_13: |
121 | List<OFInstruction> ins = entry.getInstructions(); | 121 | List<OFInstruction> ins = entry.getInstructions(); |
122 | for (OFInstruction in : ins) { | 122 | for (OFInstruction in : ins) { |
123 | - if (in.getType().equals(OFInstructionType.WRITE_ACTIONS)) { | 123 | + if (in.getType().equals(OFInstructionType.APPLY_ACTIONS)) { |
124 | - OFInstructionWriteActions apply = (OFInstructionWriteActions) in; | 124 | + OFInstructionApplyActions apply = (OFInstructionApplyActions) in; |
125 | return apply.getActions(); | 125 | return apply.getActions(); |
126 | } | 126 | } |
127 | } | 127 | } | ... | ... |
-
Please register or login to post a comment