Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
alshabib
2014-09-16 18:04:18 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f1cd879934fd966210784485ab895128bd2980da
f1cd8799
1 parent
64231f6a
what to do without a buffer
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
providers/of/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/OpenFlowRuleProvider.java
providers/of/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/OpenFlowRuleProvider.java
View file @
f1cd879
...
...
@@ -48,6 +48,7 @@ import org.projectfloodlight.openflow.types.EthType;
import
org.projectfloodlight.openflow.types.IPv4Address
;
import
org.projectfloodlight.openflow.types.IpProtocol
;
import
org.projectfloodlight.openflow.types.MacAddress
;
import
org.projectfloodlight.openflow.types.OFBufferId
;
import
org.projectfloodlight.openflow.types.OFPort
;
import
org.projectfloodlight.openflow.types.OFVlanVidMatch
;
import
org.projectfloodlight.openflow.types.VlanPcp
;
...
...
@@ -110,6 +111,7 @@ public class OpenFlowRuleProvider extends AbstractProvider implements FlowRulePr
//TODO: what to do without bufferid? do we assume that there will be a pktout as well?
OFFlowMod
fm
=
sw
.
factory
().
buildFlowModify
()
.
setBufferId
(
OFBufferId
.
NO_BUFFER
)
.
setActions
(
actions
)
.
setMatch
(
match
)
.
setFlags
(
Collections
.
singleton
(
OFFlowModFlags
.
SEND_FLOW_REM
))
...
...
@@ -128,7 +130,7 @@ public class OpenFlowRuleProvider extends AbstractProvider implements FlowRulePr
switch
(
i
.
type
())
{
case
DROP:
log
.
warn
(
"Saw drop action; assigning drop action"
);
return
acts
;
return
new
LinkedList
<>()
;
case
L2MODIFICATION:
acts
.
add
(
buildL2Modification
(
i
,
factory
));
case
L3MODIFICATION:
...
...
Please
register
or
login
to post a comment