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
Marc De Leenheer
2014-10-23 14:15:49 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9eb47ec124a96100de30e66589fd4cb6418be49c
9eb47ec1
1 parent
09e5f648
Working lambda treatment & selectors
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
apps/optical/src/main/java/org/onlab/onos/optical/cfg/OpticalConfigProvider.java
apps/optical/src/main/java/org/onlab/onos/optical/testapp/LambdaForwarding.java
providers/openflow/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/FlowModBuilder.java
apps/optical/src/main/java/org/onlab/onos/optical/cfg/OpticalConfigProvider.java
View file @
9eb47ec
...
...
@@ -93,9 +93,9 @@ public class OpticalConfigProvider extends AbstractProvider implements DevicePro
log
.
info
(
"Starting optical network configuration process..."
);
log
.
info
(
"Optical config file set to {}"
,
configFileName
);
loadOpticalConfig
();
parseOpticalConfig
();
publishOpticalConfig
();
//
loadOpticalConfig();
//
parseOpticalConfig();
//
publishOpticalConfig();
}
@Deactivate
...
...
apps/optical/src/main/java/org/onlab/onos/optical/testapp/LambdaForwarding.java
View file @
9eb47ec
...
...
@@ -54,12 +54,17 @@ public class LambdaForwarding {
public
void
activate
()
{
appId
=
coreService
.
registerApplication
(
"org.onlab.onos.fwd"
);
deviceService
.
addListener
(
listener
);
uglyMap
.
put
(
DeviceId
.
deviceId
(
"of:0000ffffffffff01"
),
1
);
uglyMap
.
put
(
DeviceId
.
deviceId
(
"of:0000ffffffffff02"
),
2
);
uglyMap
.
put
(
DeviceId
.
deviceId
(
"of:0000ffffffffff03"
),
3
);
deviceService
.
addListener
(
listener
);
for
(
Device
d
:
deviceService
.
getDevices
())
{
pushRules
(
d
);
}
log
.
info
(
"Started with Application ID {}"
,
appId
.
id
());
}
...
...
@@ -101,9 +106,6 @@ public class LambdaForwarding {
break
;
default
:
}
sbuilder
.
matchLambda
((
short
)
25
).
matchInport
(
PortNumber
.
portNumber
(
5
));
tbuilder
.
setOutput
(
PortNumber
.
portNumber
(
5
));
TrafficTreatment
treatement
=
tbuilder
.
build
();
TrafficSelector
selector
=
sbuilder
.
build
();
...
...
providers/openflow/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/FlowModBuilder.java
View file @
9eb47ec
...
...
@@ -143,6 +143,7 @@ public class FlowModBuilder {
return
new
LinkedList
<>();
case
L0MODIFICATION:
acts
.
add
(
buildL0Modification
(
i
));
break
;
case
L2MODIFICATION:
acts
.
add
(
buildL2Modification
(
i
));
break
;
...
...
Please
register
or
login
to post a comment