Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
floodlight
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croft1
floodlight
Commits
9a32ba5e
Commit
9a32ba5e
authored
10 years ago
by
sanjivininaikar
Browse files
Options
Downloads
Patches
Plain Diff
Update InstructionUtils.java
Support for IPv6
parent
59fb2a66
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/net/floodlightcontroller/util/InstructionUtils.java
+11
-9
11 additions, 9 deletions
.../java/net/floodlightcontroller/util/InstructionUtils.java
with
11 additions
and
9 deletions
src/main/java/net/floodlightcontroller/util/InstructionUtils.java
+
11
−
9
View file @
9a32ba5e
...
@@ -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
);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment