Skip to content
Snippets Groups Projects
Commit 9a32ba5e authored by sanjivininaikar's avatar sanjivininaikar
Browse files

Update InstructionUtils.java

Support for IPv6
parent 59fb2a66
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,8 @@ package net.floodlightcontroller.util; ...@@ -3,6 +3,8 @@ package net.floodlightcontroller.util;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import net.floodlightcontroller.staticflowentry.HeaderFieldsException;
import org.projectfloodlight.openflow.protocol.OFFactories; import org.projectfloodlight.openflow.protocol.OFFactories;
import org.projectfloodlight.openflow.protocol.OFFlowMod; import org.projectfloodlight.openflow.protocol.OFFlowMod;
import org.projectfloodlight.openflow.protocol.instruction.OFInstruction; import org.projectfloodlight.openflow.protocol.instruction.OFInstruction;
...@@ -29,12 +31,12 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException; ...@@ -29,12 +31,12 @@ import sun.reflect.generics.reflectiveObjects.NotImplementedException;
*/ */
public class InstructionUtils { public class InstructionUtils {
public static final String STR_GOTO_TABLE = "goto_table"; public static final String STR_GOTO_TABLE = "goto_table";
public static final String STR_WRITE_METADATA = "instruction_write_metadata"; public static final String STR_WRITE_METADATA = "write_metadata";
public static final String STR_WRITE_ACTIONS = "instruction_write_actions"; public static final String STR_WRITE_ACTIONS = "write_actions";
public static final String STR_APPLY_ACTIONS = "instruction_apply_actions"; public static final String STR_APPLY_ACTIONS = "apply_actions";
public static final String STR_CLEAR_ACTIONS = "instruction_clear_actions"; public static final String STR_CLEAR_ACTIONS = "clear_actions";
public static final String STR_GOTO_METER = "instruction_goto_meter"; public static final String STR_GOTO_METER = "goto_meter";
public static final String STR_EXPERIMENTER = "instruction_experimenter"; public static final String STR_EXPERIMENTER = "experimenter";
private static final String STR_SUB_WRITE_METADATA_METADATA = "metadata"; private static final String STR_SUB_WRITE_METADATA_METADATA = "metadata";
private static final String STR_SUB_WRITE_METADATA_MASK = "mask"; private static final String STR_SUB_WRITE_METADATA_MASK = "mask";
...@@ -169,7 +171,7 @@ public class InstructionUtils { ...@@ -169,7 +171,7 @@ public class InstructionUtils {
* @param log * @param log
* @return * @return
*/ */
public static String writeActionsToString(OFInstructionWriteActions inst, Logger log) { public static String writeActionsToString(OFInstructionWriteActions inst, Logger log) throws HeaderFieldsException {
return ActionUtils.actionsToString(inst.getActions(), log); return ActionUtils.actionsToString(inst.getActions(), log);
} }
...@@ -200,8 +202,8 @@ public class InstructionUtils { ...@@ -200,8 +202,8 @@ public class InstructionUtils {
* @param log * @param log
* @return * @return
*/ */
public static String applyActionsToString(OFInstructionApplyActions inst, Logger log) { public static String applyActionsToString(OFInstructionApplyActions inst, Logger log) throws HeaderFieldsException{
return ActionUtils.actionsToString(inst.getActions(), log); return ActionUtils.actionsToString(inst.getActions(), log);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment